1<?xml version="1.0" encoding="utf-8" ?>
2<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2 20190208//EN"
3 "JATS-archivearticle1.dtd">
4<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.2" article-type="other">
7<journal-id></journal-id>
12<publisher-name></publisher-name>
17<article-title>Pandoc Test Suite</article-title>
20<contrib contrib-type="author">
21<string-name>John MacFarlane</string-name>
23<contrib contrib-type="author">
24<string-name>Anonymous</string-name>
27<pub-date pub-type="epub" iso-8601-date="2006-07-17">
35<p>This is a set of tests for pandoc. Most of them are adapted from John
36Gruber’s markdown test suite.</p>
38 <title>Headers</title>
39 <sec id="level-2-with-an-embedded-link">
40 <title>Level 2 with an
41 <ext-link ext-link-type="uri" xlink:href="/url">embedded
42 link</ext-link></title>
43 <sec id="level-3-with-emphasis">
44 <title>Level 3 with <italic>emphasis</italic></title>
46 <title>Level 4</title>
48 <title>Level 5</title>
55 <title>Level 1</title>
56 <sec id="level-2-with-emphasis">
57 <title>Level 2 with <italic>emphasis</italic></title>
59 <title>Level 3</title>
60 <p>with no blank line</p>
64 <title>Level 2</title>
65 <p>with no blank line</p>
69 <title>Paragraphs</title>
70 <p>Here’s a regular paragraph.</p>
71 <p>In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
72 item. Because a hard-wrapped line in the middle of a paragraph looked like a
74 <p>Here’s one with a bullet. * criminey.</p>
75 <p>There should be a hard line break
78<sec id="block-quotes">
79 <title>Block Quotes</title>
82 <p>This is a block quote. It is pretty short.</p>
85 <p>Code in a block quote:</p>
86 <preformat>sub status {
87 print "working";
90 <list list-type="order">
98 <p>Nested block quotes:</p>
106 <p>This should not be a block quote: 2 > 1.</p>
107 <p>And a following paragraph.</p>
109<sec id="code-blocks">
110 <title>Code Blocks</title>
112 <preformat>---- (should be four hyphens)
115 print "working";
118this code block is indented by one tab</preformat>
120 <preformat> this code block is indented by two tabs
122These should not be escaped: \$ \\ \> \[ \{</preformat>
127 <title>Unordered</title>
128 <p>Asterisks tight:</p>
129 <list list-type="bullet">
140 <p>Asterisks loose:</p>
141 <list list-type="bullet">
153 <list list-type="bullet">
165 <list list-type="bullet">
176 <p>Minuses tight:</p>
177 <list list-type="bullet">
188 <p>Minuses loose:</p>
189 <list list-type="bullet">
202 <title>Ordered</title>
204 <list list-type="order">
216 <list list-type="order">
227 <p>Loose using tabs:</p>
228 <list list-type="order">
239 <p>and using spaces:</p>
240 <list list-type="order">
251 <p>Multiple paragraphs:</p>
252 <list list-type="order">
254 <p>Item 1, graf one.</p>
255 <p>Item 1. graf two. The quick brown fox jumped over the lazy dog’s
267 <title>Nested</title>
268 <list list-type="bullet">
271 <list list-type="bullet">
274 <list list-type="bullet">
283 <p>Here’s another:</p>
284 <list list-type="order">
290 <list list-type="bullet">
306 <p>Same thing but with paragraphs:</p>
307 <list list-type="order">
313 <list list-type="bullet">
330 <sec id="tabs-and-spaces">
331 <title>Tabs and spaces</title>
332 <list list-type="bullet">
334 <p>this is a list item indented with tabs</p>
337 <p>this is a list item indented with spaces</p>
338 <list list-type="bullet">
340 <p>this is an example list item indented with tabs</p>
343 <p>this is an example list item indented with spaces</p>
349 <sec id="fancy-list-markers">
350 <title>Fancy list markers</title>
351 <list list-type="order">
359 <p>with a continuation</p>
360 <list list-type="roman-lower">
363 <p>sublist with roman numerals, starting with 4</p>
368 <list list-type="alpha-upper">
383 <list list-type="alpha-upper">
386 <list list-type="roman-upper">
389 <list list-type="order">
392 <p>Decimal start with 6</p>
393 <list list-type="alpha-lower">
396 <p>Lower alpha with paren</p>
405 <p>Autonumbering:</p>
406 <list list-type="order">
412 <list list-type="order">
419 <p>Should not be a list item:</p>
424<sec id="definition-lists">
425 <title>Definition Lists</title>
426 <p>Tight using spaces:</p>
447 <p>Tight using tabs:</p>
489 <p>Multiple blocks with italics:</p>
492 <term><italic>apple</italic></term>
495 <p>contains seeds, crisp, pleasant to taste</p>
499 <term><italic>orange</italic></term>
502 <p specific-use="wrapper">
503 <preformat>{ orange code block }</preformat>
505 <p specific-use="wrapper">
507 <p>orange block quote</p>
513 <p>Multiple definitions, tight:</p>
530 <p>Multiple definitions, loose:</p>
547 <p>Blank line after term, indented marker, alternate markers:</p>
560 <p specific-use="wrapper">
561 <list list-type="order">
574<sec id="html-blocks">
575 <title>HTML Blocks</title>
576 <p>Simple block on one line:</p>
580 <p>And nested without indentation:</p>
591 <p>Interpreted markdown in a table:</p>
592 <p>This is <italic>emphasized</italic></p>
593 <p>And this is <bold>strong</bold></p>
594 <p>Here’s a simple block:</p>
598 <p>This should be a code block, though:</p>
599 <preformat><div>
601</div></preformat>
602 <p>As should this:</p>
603 <preformat><div>foo</div></preformat>
612 <p>This should just be an HTML comment:</p>
615 <preformat><!-- Comment --></preformat>
616 <p>Just plain comment, with trailing spaces on the line:</p>
618 <preformat><hr /></preformat>
621<sec id="inline-markup">
622 <title>Inline Markup</title>
623 <p>This is <italic>emphasized</italic>, and so <italic>is this</italic>.</p>
624 <p>This is <bold>strong</bold>, and so <bold>is this</bold>.</p>
625 <p>An <italic><ext-link ext-link-type="uri" xlink:href="/url">emphasized
626 link</ext-link></italic>.</p>
627 <p><bold><italic>This is strong and em.</italic></bold></p>
628 <p>So is <bold><italic>this</italic></bold> word.</p>
629 <p><bold><italic>This is strong and em.</italic></bold></p>
630 <p>So is <bold><italic>this</italic></bold> word.</p>
631 <p>This is code: <monospace>></monospace>, <monospace>$</monospace>,
632 <monospace>\</monospace>, <monospace>\$</monospace>,
633 <monospace><html></monospace>.</p>
634 <p><strike>This is <italic>strikeout</italic>.</strike></p>
635 <p>Superscripts: a<sup>bc</sup>d a<sup><italic>hello</italic></sup>
636 a<sup>hello there</sup>.</p>
637 <p>Subscripts: H<sub>2</sub>O, H<sub>23</sub>O,
638 H<sub>many of them</sub>O.</p>
639 <p>These should not be superscripts or subscripts, because of the unescaped
640 spaces: a^b c^d, a~b c~d.</p>
642<sec id="smart-quotes-ellipses-dashes">
643 <title>Smart quotes, ellipses, dashes</title>
644 <p>“Hello,” said the spider. “‘Shelob’ is my name.”</p>
645 <p>‘A’, ‘B’, and ‘C’ are letters.</p>
646 <p>‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’</p>
647 <p>‘He said, “I want to go.”’ Were you alive in the 70’s?</p>
648 <p>Here is some quoted ‘<monospace>code</monospace>’ and a
649 “<ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&bar=2">quoted
650 link</ext-link>”.</p>
651 <p>Some dashes: one—two — three—four — five.</p>
652 <p>Dashes between numbers: 5–7, 255–66, 1987–1999.</p>
653 <p>Ellipses…and…and….</p>
657 <list list-type="bullet">
662 <p><inline-formula><alternatives>
663 <tex-math><![CDATA[2+2=4]]></tex-math>
664 <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mn>2</mml:mn><mml:mo>+</mml:mo><mml:mn>2</mml:mn><mml:mo>=</mml:mo><mml:mn>4</mml:mn></mml:mrow></mml:math></alternatives></inline-formula></p>
667 <p><inline-formula><alternatives>
668 <tex-math><![CDATA[x \in y]]></tex-math>
669 <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>x</mml:mi><mml:mo>∈</mml:mo><mml:mi>y</mml:mi></mml:mrow></mml:math></alternatives></inline-formula></p>
672 <p><inline-formula><alternatives>
673 <tex-math><![CDATA[\alpha \wedge \omega]]></tex-math>
674 <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>α</mml:mi><mml:mo>∧</mml:mo><mml:mi>ω</mml:mi></mml:mrow></mml:math></alternatives></inline-formula></p>
677 <p><inline-formula><alternatives>
678 <tex-math><![CDATA[223]]></tex-math>
679 <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mn>223</mml:mn></mml:math></alternatives></inline-formula></p>
682 <p><inline-formula><alternatives>
683 <tex-math><![CDATA[p]]></tex-math>
684 <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>p</mml:mi></mml:math></alternatives></inline-formula>-Tree</p>
687 <p>Here’s some display math: <disp-formula><alternatives>
688 <tex-math><![CDATA[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}]]></tex-math>
689 <mml:math display="block" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mfrac><mml:mi>d</mml:mi><mml:mrow><mml:mi>d</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:mfrac><mml:mi>f</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>=</mml:mo><mml:munder><mml:mo>lim</mml:mo><mml:mrow><mml:mi>h</mml:mi><mml:mo>→</mml:mo><mml:mn>0</mml:mn></mml:mrow></mml:munder><mml:mfrac><mml:mrow><mml:mi>f</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo>+</mml:mo><mml:mi>h</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>−</mml:mo><mml:mi>f</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow><mml:mi>h</mml:mi></mml:mfrac></mml:mrow></mml:math></alternatives></disp-formula></p>
692 <p>Here’s one that has a line break in it:
693 <inline-formula><alternatives>
694 <tex-math><![CDATA[\alpha + \omega \times x^2]]></tex-math>
695 <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>α</mml:mi><mml:mo>+</mml:mo><mml:mi>ω</mml:mi><mml:mo>×</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:math></alternatives></inline-formula>.</p>
698 <p>These shouldn’t be math:</p>
699 <list list-type="bullet">
701 <p>To get the famous equation, write
702 <monospace>$e = mc^2$</monospace>.</p>
705 <p>$22,000 is a <italic>lot</italic> of money. So is $34,000. (It worked
706 if “lot” is emphasized.)</p>
709 <p>Shoes ($20) and socks ($5).</p>
712 <p>Escaped <monospace>$</monospace>: $73 <italic>this should be
713 emphasized</italic> 23$.</p>
716 <p>Here’s a LaTeX table:</p>
718<sec id="special-characters">
719 <title>Special Characters</title>
720 <p>Here is some unicode:</p>
721 <list list-type="bullet">
732 <p>set membership: ∈</p>
738 <p>AT&T has an ampersand in their name.</p>
739 <p>AT&T is another way to write it.</p>
740 <p>This & that.</p>
748 <p>Right brace: }</p>
749 <p>Left bracket: [</p>
750 <p>Right bracket: ]</p>
752 <p>Right paren: )</p>
753 <p>Greater-than: ></p>
763 <title>Explicit</title>
765 <ext-link ext-link-type="uri" xlink:href="/url/">URL</ext-link>.</p>
766 <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title">URL
767 and title</ext-link>.</p>
768 <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title preceded by two spaces">URL
769 and title</ext-link>.</p>
770 <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title preceded by a tab">URL
771 and title</ext-link>.</p>
772 <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title with "quotes" in it">URL
773 and title</ext-link></p>
774 <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title with single quotes">URL
775 and title</ext-link></p>
776 <p><ext-link ext-link-type="uri" xlink:href="/url/with_underscore">with_underscore</ext-link></p>
777 <p><ext-link ext-link-type="uri" xlink:href="mailto:nobody@nowhere.net">Email
779 <p><ext-link ext-link-type="uri" xlink:href="">Empty</ext-link>.</p>
782 <title>Reference</title>
784 <ext-link ext-link-type="uri" xlink:href="/url/">bar</ext-link>.</p>
785 <p>With <ext-link ext-link-type="uri" xlink:href="/url/">embedded
786 [brackets]</ext-link>.</p>
787 <p><ext-link ext-link-type="uri" xlink:href="/url/">b</ext-link> by itself
788 should be a link.</p>
790 <ext-link ext-link-type="uri" xlink:href="/url">once</ext-link>.</p>
792 <ext-link ext-link-type="uri" xlink:href="/url">twice</ext-link>.</p>
794 <ext-link ext-link-type="uri" xlink:href="/url">thrice</ext-link>.</p>
795 <p>This should [not][] be a link.</p>
796 <preformat>[not]: /url</preformat>
798 <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="Title with "quotes" inside">bar</ext-link>.</p>
800 <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="Title with "quote" inside">biz</ext-link>.</p>
802 <sec id="with-ampersands">
803 <title>With ampersands</title>
805 <ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&bar=2">link
806 with an ampersand in the URL</ext-link>.</p>
807 <p>Here’s a link with an amersand in the link text:
808 <ext-link ext-link-type="uri" xlink:href="http://att.com/" xlink:title="AT&T">AT&T</ext-link>.</p>
810 <ext-link ext-link-type="uri" xlink:href="/script?foo=1&bar=2">inline
813 <ext-link ext-link-type="uri" xlink:href="/script?foo=1&bar=2">inline
814 link in pointy braces</ext-link>.</p>
817 <title>Autolinks</title>
818 <p>With an ampersand:
819 <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>
820 <list list-type="bullet">
825 <p><ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link></p>
831 <p>An e-mail address: <email>nobody@nowhere.net</email></p>
834 <ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link></p>
836 <p>Auto-links should not occur here:
837 <monospace><http://example.com/></monospace></p>
838 <preformat>or here: <http://example.com/></preformat>
842 <title>Images</title>
843 <p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
845 <caption><p>lalune</p></caption>
846 <graphic mimetype="image" mime-subtype="jpeg" xlink:href="lalune.jpg" xlink:title="Voyage dans la Lune" />
849 <inline-graphic mimetype="image" mime-subtype="jpeg" xlink:href="movie.jpg" />
853 <title>Footnotes</title>
854 <p>Here is a footnote reference,<xref ref-type="fn" rid="fn1">1</xref> and
855 another.<xref ref-type="fn" rid="fn2">2</xref> This should
856 <italic>not</italic> be a footnote reference, because it contains a
857 space.[^my note] Here is an inline
858 note.<xref ref-type="fn" rid="fn3">3</xref></p>
860 <p>Notes can go in quotes.<xref ref-type="fn" rid="fn4">4</xref></p>
862 <list list-type="order">
864 <p>And in list items.<xref ref-type="fn" rid="fn5">5</xref></p>
867 <p>This paragraph should not be part of the note, as it is not indented.</p>
873 <p>Here is the footnote. It can go anywhere after the footnote reference.
874 It need not be placed at the end of the document.</p>
877 <p>Here’s the long note. This one contains multiple blocks.</p>
878 <p>Subsequent blocks are indented to show that they belong to the footnote
879 (as with list items).</p>
880 <p specific-use="wrapper">
881 <preformat> { <code> }</preformat>
883 <p>If you want, you can indent every line, but you can also be lazy and
884 just indent the first line of each block.</p>
887 <p>This is <italic>easier</italic> to type. Inline notes may contain
888 <ext-link ext-link-type="uri" xlink:href="http://google.com">links</ext-link>
889 and <monospace>]</monospace> verbatim characters, as well as [bracketed
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