1<?xml version="1.0" encoding="utf-8" ?>
2<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.0 20120330//EN"
3 "JATS-journalpublishing1.dtd">
4<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.0" article-type="other">
10<publisher-name></publisher-name>
15<article-title>Pandoc Test Suite</article-title>
18 <contrib contrib-type="author">
20 <surname>MacFarlane</surname>
21 <given-names>John</given-names>
23 <contrib contrib-type="author">
25 <surname>Anonymous</surname>
32<p>This is a set of tests for pandoc. Most of them are adapted from John Gruber's markdown test suite.</p>
34 <title>Headers</title>
35 <sec id="level-2-with-an-embedded-link">
36 <title>Level 2 with an
37 <ext-link ext-link-type="uri" xlink:href="/url">embedded
38 link</ext-link></title>
39 <sec id="level-3-with-emphasis">
40 <title>Level 3 with <italic>emphasis</italic></title>
42 <title>Level 4</title>
44 <title>Level 5</title>
51 <title>Level 1</title>
52 <sec id="level-2-with-emphasis">
53 <title>Level 2 with <italic>emphasis</italic></title>
55 <title>Level 3</title>
56 <p>with no blank line</p>
60 <title>Level 2</title>
61 <p>with no blank line</p>
65 <title>Paragraphs</title>
66 <p>Here's a regular paragraph.</p>
67 <p>In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item.</p>
68 <p>Here's one with a bullet. * criminey.</p>
69 <p>There should be a hard line break<break />here.</p>
71<sec id="block-quotes">
72 <title>Block Quotes</title>
75 <p>This is a block quote. It is pretty short.</p>
78 <p>Code in a block quote:</p>
79 <preformat>sub status {
80 print "working";
83 <list list-type="order">
91 <p>Nested block quotes:</p>
99 <p>This should not be a block quote: 2 > 1.</p>
103 <preformat>sub status {
104 print "working";
108 <list list-type="order">
113 <p>take out the trash</p>
117 <p>Here's a nested one:</p>
121 <p>Don't quote me.</p>
124 <p>And a following paragraph.</p>
126<sec id="code-blocks">
127 <title>Code Blocks</title>
129 <preformat>---- (should be four hyphens)
132 print "working";
135this code block is indented by one tab</preformat>
137 <preformat> this code block is indented by two tabs
139These should not be escaped: \$ \\ \> \[ \{</preformat>
144 <title>Unordered</title>
145 <p>Asterisks tight:</p>
146 <list list-type="bullet">
157 <p>Asterisks loose:</p>
158 <list list-type="bullet">
170 <list list-type="bullet">
182 <list list-type="bullet">
193 <p>Minuses tight:</p>
194 <list list-type="bullet">
205 <p>Minuses loose:</p>
206 <list list-type="bullet">
219 <title>Ordered</title>
221 <list list-type="order">
233 <list list-type="order">
244 <p>Loose using tabs:</p>
245 <list list-type="order">
256 <p>and using spaces:</p>
257 <list list-type="order">
268 <p>Multiple paragraphs:</p>
269 <list list-type="order">
271 <p>Item 1, graf one.</p>
272 <p>Item 1. graf two. The quick brown fox jumped over the lazy
283 <list list-type="order"></list>
284 <list list-type="roman-lower"></list>
287 <title>Nested</title>
288 <list list-type="bullet">
291 <list list-type="bullet">
294 <list list-type="bullet">
303 <p>Here's another:</p>
304 <list list-type="order">
310 <list list-type="bullet">
326 <p>Same thing but with paragraphs:</p>
327 <list list-type="order">
333 <list list-type="bullet">
350 <sec id="tabs-and-spaces">
351 <title>Tabs and spaces</title>
352 <list list-type="bullet">
354 <p>this is a list item indented with tabs</p>
357 <p>this is a list item indented with spaces</p>
358 <list list-type="bullet">
360 <p>this is an example list item indented with tabs</p>
363 <p>this is an example list item indented with spaces</p>
369 <sec id="fancy-list-markers">
370 <title>Fancy list markers</title>
371 <p>Autonumbering:</p>
372 <list list-type="order">
378 <list list-type="order">
386 <sec id="definition">
387 <title>Definition</title>
394 <p>Stringed musical instrument.</p>
395 <p>Torture device.</p>
400 Cello<break />Violoncello
403 <p>Low-voiced stringed instrument.</p>
409<sec id="inline-markup">
410 <title>Inline Markup</title>
411 <p>This is <italic>emphasized</italic>, and so <italic>is
413 <p>This is <bold role="strong">strong</bold>, and so
414 <bold role="strong">is this</bold>.</p>
415 <p>Empty <bold role="strong"></bold> and <italic></italic>.</p>
417 <italic><ext-link ext-link-type="uri" xlink:href="/url">emphasized
418 link</ext-link></italic>.</p>
419 <p><bold role="strong"><italic>This is strong and em.</italic></bold></p>
420 <p>So is <bold role="strong"><italic>this</italic></bold> word.</p>
421 <p><bold role="strong"><italic>This is strong and em.</italic></bold></p>
422 <p>So is <bold role="strong"><italic>this</italic></bold> word.</p>
423 <p>This is code: <monospace>></monospace>, <monospace>$</monospace>,
424 <monospace>\</monospace>, <monospace>\$</monospace>,
425 <monospace><html></monospace>.</p>
426 <p>This is <sc role="smallcaps">small caps</sc>.</p>
427 <p>These are all underlined: foo and bar.</p>
428 <p>These are all strikethrough: <strike>foo</strike>,
429 <strike>bar</strike>, and <strike>baz</strike>.</p>
431<sec id="smart-quotes-ellipses-dashes">
432 <title>Smart quotes, ellipses, dashes</title>
433 <p>"Hello," said the spider. "'Shelob' is my name."</p>
434 <p>'A', 'B', and 'C' are letters.</p>
435 <p>'Oak,' 'elm,' and 'beech' are names of trees. So is 'pine.'</p>
436 <p>'He said, "I want to go."' Were you alive in the 70's?</p>
437 <p>Here is some quoted '<monospace>code</monospace>' and a
438 "<ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&bar=2">quoted
439 link</ext-link>".</p>
440 <p>Some dashes: one---two --- three--four -- five.</p>
441 <p>Dashes between numbers: 5-7, 255-66, 1987-1999.</p>
442 <p>Ellipses...and. . .and . . . .</p>
446 <list list-type="bullet">
448 <p>\cite[22-23]{smith.1899}</p>
451 <p>\doublespacing</p>
460 <p>$\alpha \wedge \omega$</p>
469 <p>$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</p>
472 <p>Here's one that has a line break in it: $\alpha + \omega \times
476 <p>These shouldn't be math:</p>
477 <list list-type="bullet">
479 <p>To get the famous equation, write
480 <monospace>$e = mc^2$</monospace>.</p>
483 <p>$22,000 is a <italic>lot</italic> of money. So is $34,000. (It
484 worked if "lot" is emphasized.)</p>
487 <p>Escaped <monospace>$</monospace>: $73 <italic>this should be
488 emphasized</italic> 23$.</p>
491 <p>Here's a LaTeX table:</p>
492 <p>\begin{tabular}{|l|l|}\hline Animal & Number \\ \hline Dog &
493 2 \\ Cat & 1 \\ \hline \end{tabular}</p>
495<sec id="special-characters">
496 <title>Special Characters</title>
497 <p>Here is some unicode:</p>
498 <list list-type="bullet">
509 <p>set membership: elem</p>
515 <p>AT&T has an ampersand in their name.</p>
516 <p>AT&T is another way to write it.</p>
517 <p>This & that.</p>
525 <p>Right brace: }</p>
526 <p>Left bracket: [</p>
527 <p>Right bracket: ]</p>
529 <p>Right paren: )</p>
530 <p>Greater-than: ></p>
540 <title>Explicit</title>
542 <ext-link ext-link-type="uri" xlink:href="/url/">URL</ext-link>.</p>
543 <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title">URL
544 and title</ext-link>.</p>
545 <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title preceded by two spaces">URL
546 and title</ext-link>.</p>
547 <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title preceded by a tab">URL
548 and title</ext-link>.</p>
549 <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title with "quotes" in it">URL
550 and title</ext-link></p>
551 <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title with single quotes">URL
552 and title</ext-link></p>
553 <p>Email link (nobody [at] nowhere.net)</p>
554 <p><ext-link ext-link-type="uri" xlink:href="">Empty</ext-link>.</p>
557 <title>Reference</title>
559 <ext-link ext-link-type="uri" xlink:href="/url/">bar</ext-link>.</p>
561 <ext-link ext-link-type="uri" xlink:href="/url/">bar</ext-link>.</p>
563 <ext-link ext-link-type="uri" xlink:href="/url/">bar</ext-link>.</p>
564 <p>With <ext-link ext-link-type="uri" xlink:href="/url/">embedded
565 [brackets]</ext-link>.</p>
566 <p><ext-link ext-link-type="uri" xlink:href="/url/">b</ext-link> by
567 itself should be a link.</p>
569 <ext-link ext-link-type="uri" xlink:href="/url">once</ext-link>.</p>
571 <ext-link ext-link-type="uri" xlink:href="/url">twice</ext-link>.</p>
573 <ext-link ext-link-type="uri" xlink:href="/url">thrice</ext-link>.</p>
574 <p>This should [not] be a link.</p>
575 <preformat>[not]: /url</preformat>
577 <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="Title with "quotes" inside">bar</ext-link>.</p>
579 <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="Title with "quote" inside">biz</ext-link>.</p>
581 <sec id="with-ampersands">
582 <title>With ampersands</title>
584 <ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&bar=2">link
585 with an ampersand in the URL</ext-link>.</p>
586 <p>Here's a link with an amersand in the link text:
587 <ext-link ext-link-type="uri" xlink:href="http://att.com/" xlink:title="AT&T">AT&T</ext-link>.</p>
589 <ext-link ext-link-type="uri" xlink:href="/script?foo=1&bar=2">inline
592 <ext-link ext-link-type="uri" xlink:href="/script?foo=1&bar=2">inline
593 link in pointy braces</ext-link>.</p>
596 <title>Autolinks</title>
597 <p>With an ampersand:
598 <ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&bar=2">http://example.com/?foo=1&bar=2</ext-link></p>
599 <list list-type="bullet">
604 <p><ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link></p>
610 <p>An e-mail address: nobody [at] nowhere.net</p>
613 <ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link></p>
615 <p>Auto-links should not occur here:
616 <monospace><http://example.com/></monospace></p>
617 <preformat>or here: <http://example.com/></preformat>
621 <title>Images</title>
622 <p>From "Voyage dans la Lune" by Georges Melies (1902):</p>
623 <p><inline-graphic mimetype="image" mime-subtype="jpeg" xlink:href="lalune.jpg" xlink:title="Voyage dans la Lune" /></p>
625 <inline-graphic mimetype="image" mime-subtype="jpeg" xlink:href="movie.jpg" />
629 <title>Footnotes</title>
630 <p>Here is a footnote reference<xref alt="(1)" rid="note_1">(1)</xref>,
632 another<xref alt="(longnote)" rid="note_longnote">(longnote)</xref>.
633 This should <italic>not</italic> be a footnote reference, because it
634 contains a space^(my note).</p>
635 <p><xref alt="(1)" rid="ref_1">(1)</xref> Here is the footnote. It can
636 go anywhere in the document, not just at the end.</p>
637 <p><xref alt="(longnote)" rid="ref_longnote">(longnote)</xref> Here's
638 the other note. This one contains multiple blocks.</p>
639 <p>Caret characters are used to indicate that the blocks all belong to
640 a single footnote (as with block quotes).</p>
641 <preformat> { <code> }</preformat>
642 <p>If you want, you can use a caret at the beginning of every line, as
643 with blockquotes, but all that you need is a caret at the beginning
644 of the first line of the block and any preceding blank lines.</p>
645 <p>text <italic>Leading space</italic></p>
646 <p><italic>Trailing space</italic> text</p>
647 <p>text <italic>Leading spaces</italic></p>
648 <p><italic>Trailing spaces</italic> text</p>
651 <title>Tables</title>
652 <sec id="tables-with-headers">
653 <title>Tables with Headers</title>
991 <col width="33*" align="left" />
992 <col width="33*" align="left" />
993 <col width="33*" align="left" />
1033 <sec id="tables-without-headers">
1034 <title>Tables without Headers</title>
1036 <col align="left" />
1037 <col align="left" />
1038 <col align="left" />
1065 <col align="left" />
1066 <col align="left" />
1067 <col align="left" />
1094 <col align="left" />
1095 <col align="left" />
1096 <col align="left" />
1123 <col align="left" />
1124 <col align="left" />
1125 <col align="left" />
1152 <sec id="empty-tables">
1153 <title>Empty Tables</title>
1154 <p>This section should be empty.</p>
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list