@@ -0,0 +1,898 @@
1+<?xml version="1.0" encoding="utf-8" ?>
2+<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.2 20190208//EN"
3+ "JATS-publishing1.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">
10+<publisher-name></publisher-name>
15+<article-title>Pandoc Test Suite</article-title>
18+<contrib contrib-type="author">
19+<string-name>John MacFarlane</string-name>
21+<contrib contrib-type="author">
22+<string-name>Anonymous</string-name>
25+<pub-date pub-type="epub" iso-8601-date="2006-07-17">
33+<p>This is a set of tests for pandoc. Most of them are adapted from John
34+Gruber’s markdown test suite.</p>
36+ <title>Headers</title>
37+ <sec id="level-2-with-an-embedded-link">
38+ <title>Level 2 with an
39+ <ext-link ext-link-type="uri" xlink:href="/url">embedded
40+ link</ext-link></title>
41+ <sec id="level-3-with-emphasis">
42+ <title>Level 3 with <italic>emphasis</italic></title>
44+ <title>Level 4</title>
46+ <title>Level 5</title>
53+ <title>Level 1</title>
54+ <sec id="level-2-with-emphasis">
55+ <title>Level 2 with <italic>emphasis</italic></title>
57+ <title>Level 3</title>
58+ <p>with no blank line</p>
62+ <title>Level 2</title>
63+ <p>with no blank line</p>
67+ <title>Paragraphs</title>
68+ <p>Here’s a regular paragraph.</p>
69+ <p>In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
70+ item. Because a hard-wrapped line in the middle of a paragraph looked like a
72+ <p>Here’s one with a bullet. * criminey.</p>
73+ <p>There should be a hard line break
76+<sec id="block-quotes">
77+ <title>Block Quotes</title>
80+ <p>This is a block quote. It is pretty short.</p>
83+ <p>Code in a block quote:</p>
84+ <preformat>sub status {
85+ print "working";
88+ <list list-type="order">
96+ <p>Nested block quotes:</p>
104+ <p>This should not be a block quote: 2 > 1.</p>
105+ <p>And a following paragraph.</p>
107+<sec id="code-blocks">
108+ <title>Code Blocks</title>
110+ <preformat>---- (should be four hyphens)
113+ print "working";
116+this code block is indented by one tab</preformat>
118+ <preformat> this code block is indented by two tabs
120+These should not be escaped: \$ \\ \> \[ \{</preformat>
123+ <title>Lists</title>
124+ <sec id="unordered">
125+ <title>Unordered</title>
126+ <p>Asterisks tight:</p>
127+ <list list-type="bullet">
138+ <p>Asterisks loose:</p>
139+ <list list-type="bullet">
150+ <p>Pluses tight:</p>
151+ <list list-type="bullet">
162+ <p>Pluses loose:</p>
163+ <list list-type="bullet">
174+ <p>Minuses tight:</p>
175+ <list list-type="bullet">
186+ <p>Minuses loose:</p>
187+ <list list-type="bullet">
200+ <title>Ordered</title>
202+ <list list-type="order">
214+ <list list-type="order">
225+ <p>Loose using tabs:</p>
226+ <list list-type="order">
237+ <p>and using spaces:</p>
238+ <list list-type="order">
249+ <p>Multiple paragraphs:</p>
250+ <list list-type="order">
252+ <p>Item 1, graf one.</p>
253+ <p>Item 1. graf two. The quick brown fox jumped over the lazy dog’s
265+ <title>Nested</title>
266+ <list list-type="bullet">
269+ <list list-type="bullet">
272+ <list list-type="bullet">
281+ <p>Here’s another:</p>
282+ <list list-type="order">
288+ <list list-type="bullet">
304+ <p>Same thing but with paragraphs:</p>
305+ <list list-type="order">
311+ <list list-type="bullet">
328+ <sec id="tabs-and-spaces">
329+ <title>Tabs and spaces</title>
330+ <list list-type="bullet">
332+ <p>this is a list item indented with tabs</p>
335+ <p>this is a list item indented with spaces</p>
336+ <list list-type="bullet">
338+ <p>this is an example list item indented with tabs</p>
341+ <p>this is an example list item indented with spaces</p>
347+ <sec id="fancy-list-markers">
348+ <title>Fancy list markers</title>
349+ <list list-type="order">
352+ <p>begins with 2</p>
357+ <p>with a continuation</p>
358+ <list list-type="roman-lower">
361+ <p>sublist with roman numerals, starting with 4</p>
366+ <list list-type="alpha-upper">
381+ <list list-type="alpha-upper">
384+ <list list-type="roman-upper">
387+ <list list-type="order">
390+ <p>Decimal start with 6</p>
391+ <list list-type="alpha-lower">
394+ <p>Lower alpha with paren</p>
403+ <p>Autonumbering:</p>
404+ <list list-type="order">
410+ <list list-type="order">
417+ <p>Should not be a list item:</p>
422+<sec id="definition-lists">
423+ <title>Definition Lists</title>
424+ <p>Tight using spaces:</p>
445+ <p>Tight using tabs:</p>
487+ <p>Multiple blocks with italics:</p>
490+ <term><italic>apple</italic></term>
493+ <p>contains seeds, crisp, pleasant to taste</p>
497+ <term><italic>orange</italic></term>
500+ <p specific-use="wrapper">
501+ <preformat>{ orange code block }</preformat>
503+ <p specific-use="wrapper">
505+ <p>orange block quote</p>
511+ <p>Multiple definitions, tight:</p>
528+ <p>Multiple definitions, loose:</p>
545+ <p>Blank line after term, indented marker, alternate markers:</p>
558+ <p specific-use="wrapper">
559+ <list list-type="order">
572+<sec id="html-blocks">
573+ <title>HTML Blocks</title>
574+ <p>Simple block on one line:</p>
578+ <p>And nested without indentation:</p>
589+ <p>Interpreted markdown in a table:</p>
590+ <p>This is <italic>emphasized</italic></p>
591+ <p>And this is <bold>strong</bold></p>
592+ <p>Here’s a simple block:</p>
596+ <p>This should be a code block, though:</p>
597+ <preformat><div>
599+</div></preformat>
600+ <p>As should this:</p>
601+ <preformat><div>foo</div></preformat>
610+ <p>This should just be an HTML comment:</p>
613+ <preformat><!-- Comment --></preformat>
614+ <p>Just plain comment, with trailing spaces on the line:</p>
616+ <preformat><hr /></preformat>
619+<sec id="inline-markup">
620+ <title>Inline Markup</title>
621+ <p>This is <italic>emphasized</italic>, and so <italic>is this</italic>.</p>
622+ <p>This is <bold>strong</bold>, and so <bold>is this</bold>.</p>
623+ <p>An <italic><ext-link ext-link-type="uri" xlink:href="/url">emphasized
624+ link</ext-link></italic>.</p>
625+ <p><bold><italic>This is strong and em.</italic></bold></p>
626+ <p>So is <bold><italic>this</italic></bold> word.</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>This is code: <monospace>></monospace>, <monospace>$</monospace>,
630+ <monospace>\</monospace>, <monospace>\$</monospace>,
631+ <monospace><html></monospace>.</p>
632+ <p><strike>This is <italic>strikeout</italic>.</strike></p>
633+ <p>Superscripts: a<sup>bc</sup>d a<sup><italic>hello</italic></sup>
634+ a<sup>hello there</sup>.</p>
635+ <p>Subscripts: H<sub>2</sub>O, H<sub>23</sub>O,
636+ H<sub>many of them</sub>O.</p>
637+ <p>These should not be superscripts or subscripts, because of the unescaped
638+ spaces: a^b c^d, a~b c~d.</p>
640+<sec id="smart-quotes-ellipses-dashes">
641+ <title>Smart quotes, ellipses, dashes</title>
642+ <p>“Hello,” said the spider. “‘Shelob’ is my name.”</p>
643+ <p>‘A’, ‘B’, and ‘C’ are letters.</p>
644+ <p>‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’</p>
645+ <p>‘He said, “I want to go.”’ Were you alive in the 70’s?</p>
646+ <p>Here is some quoted ‘<monospace>code</monospace>’ and a
647+ “<ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&bar=2">quoted
648+ link</ext-link>”.</p>
649+ <p>Some dashes: one—two — three—four — five.</p>
650+ <p>Dashes between numbers: 5–7, 255–66, 1987–1999.</p>
651+ <p>Ellipses…and…and….</p>
654+ <title>LaTeX</title>
655+ <list list-type="bullet">
660+ <p><inline-formula><alternatives>
661+ <tex-math><![CDATA[2+2=4]]></tex-math>
662+ <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>
665+ <p><inline-formula><alternatives>
666+ <tex-math><![CDATA[x \in y]]></tex-math>
667+ <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>
670+ <p><inline-formula><alternatives>
671+ <tex-math><![CDATA[\alpha \wedge \omega]]></tex-math>
672+ <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>
675+ <p><inline-formula><alternatives>
676+ <tex-math><![CDATA[223]]></tex-math>
677+ <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mn>223</mml:mn></mml:math></alternatives></inline-formula></p>
680+ <p><inline-formula><alternatives>
681+ <tex-math><![CDATA[p]]></tex-math>
682+ <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>
685+ <p>Here’s some display math: <disp-formula><alternatives>
686+ <tex-math><![CDATA[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}]]></tex-math>
687+ <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>
690+ <p>Here’s one that has a line break in it:
691+ <inline-formula><alternatives>
692+ <tex-math><![CDATA[\alpha + \omega \times x^2]]></tex-math>
693+ <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>
696+ <p>These shouldn’t be math:</p>
697+ <list list-type="bullet">
699+ <p>To get the famous equation, write
700+ <monospace>$e = mc^2$</monospace>.</p>
703+ <p>$22,000 is a <italic>lot</italic> of money. So is $34,000. (It worked
704+ if “lot” is emphasized.)</p>
707+ <p>Shoes ($20) and socks ($5).</p>
710+ <p>Escaped <monospace>$</monospace>: $73 <italic>this should be
711+ emphasized</italic> 23$.</p>
714+ <p>Here’s a LaTeX table:</p>
716+<sec id="special-characters">
717+ <title>Special Characters</title>
718+ <p>Here is some unicode:</p>
719+ <list list-type="bullet">
730+ <p>set membership: ∈</p>
736+ <p>AT&T has an ampersand in their name.</p>
737+ <p>AT&T is another way to write it.</p>
738+ <p>This & that.</p>
744+ <p>Underscore: _</p>
745+ <p>Left brace: {</p>
746+ <p>Right brace: }</p>
747+ <p>Left bracket: [</p>
748+ <p>Right bracket: ]</p>
749+ <p>Left paren: (</p>
750+ <p>Right paren: )</p>
751+ <p>Greater-than: ></p>
759+ <title>Links</title>
761+ <title>Explicit</title>
763+ <ext-link ext-link-type="uri" xlink:href="/url/">URL</ext-link>.</p>
764+ <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title">URL
765+ and title</ext-link>.</p>
766+ <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title preceded by two spaces">URL
767+ and title</ext-link>.</p>
768+ <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title preceded by a tab">URL
769+ and title</ext-link>.</p>
770+ <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title with "quotes" in it">URL
771+ and title</ext-link></p>
772+ <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title with single quotes">URL
773+ and title</ext-link></p>
774+ <p><ext-link ext-link-type="uri" xlink:href="/url/with_underscore">with_underscore</ext-link></p>
775+ <p><ext-link ext-link-type="uri" xlink:href="mailto:nobody@nowhere.net">Email
777+ <p><ext-link ext-link-type="uri" xlink:href="">Empty</ext-link>.</p>
779+ <sec id="reference">
780+ <title>Reference</title>
782+ <ext-link ext-link-type="uri" xlink:href="/url/">bar</ext-link>.</p>
783+ <p>With <ext-link ext-link-type="uri" xlink:href="/url/">embedded
784+ [brackets]</ext-link>.</p>
785+ <p><ext-link ext-link-type="uri" xlink:href="/url/">b</ext-link> by itself
786+ should be a link.</p>
788+ <ext-link ext-link-type="uri" xlink:href="/url">once</ext-link>.</p>
790+ <ext-link ext-link-type="uri" xlink:href="/url">twice</ext-link>.</p>
792+ <ext-link ext-link-type="uri" xlink:href="/url">thrice</ext-link>.</p>
793+ <p>This should [not][] be a link.</p>
794+ <preformat>[not]: /url</preformat>
796+ <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="Title with "quotes" inside">bar</ext-link>.</p>
798+ <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="Title with "quote" inside">biz</ext-link>.</p>
800+ <sec id="with-ampersands">
801+ <title>With ampersands</title>
803+ <ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&bar=2">link
804+ with an ampersand in the URL</ext-link>.</p>
805+ <p>Here’s a link with an amersand in the link text:
806+ <ext-link ext-link-type="uri" xlink:href="http://att.com/" xlink:title="AT&T">AT&T</ext-link>.</p>
808+ <ext-link ext-link-type="uri" xlink:href="/script?foo=1&bar=2">inline
809+ link</ext-link>.</p>
811+ <ext-link ext-link-type="uri" xlink:href="/script?foo=1&bar=2">inline
812+ link in pointy braces</ext-link>.</p>
814+ <sec id="autolinks">
815+ <title>Autolinks</title>
816+ <p>With an ampersand:
817+ <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>
818+ <list list-type="bullet">
823+ <p><ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link></p>
829+ <p>An e-mail address: <email>nobody@nowhere.net</email></p>
832+ <ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link></p>
834+ <p>Auto-links should not occur here:
835+ <monospace><http://example.com/></monospace></p>
836+ <preformat>or here: <http://example.com/></preformat>
840+ <title>Images</title>
841+ <p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
843+ <caption><p>lalune</p></caption>
844+ <graphic mimetype="image" mime-subtype="jpeg" xlink:href="lalune.jpg" xlink:title="Voyage dans la Lune" />
847+ <inline-graphic mimetype="image" mime-subtype="jpeg" xlink:href="movie.jpg" />
851+ <title>Footnotes</title>
852+ <p>Here is a footnote reference,<xref ref-type="fn" rid="fn1">1</xref> and
853+ another.<xref ref-type="fn" rid="fn2">2</xref> This should
854+ <italic>not</italic> be a footnote reference, because it contains a
855+ space.[^my note] Here is an inline
856+ note.<xref ref-type="fn" rid="fn3">3</xref></p>
858+ <p>Notes can go in quotes.<xref ref-type="fn" rid="fn4">4</xref></p>
860+ <list list-type="order">
862+ <p>And in list items.<xref ref-type="fn" rid="fn5">5</xref></p>
865+ <p>This paragraph should not be part of the note, as it is not indented.</p>
871+ <p>Here is the footnote. It can go anywhere after the footnote reference.
872+ It need not be placed at the end of the document.</p>
875+ <p>Here’s the long note. This one contains multiple blocks.</p>
876+ <p>Subsequent blocks are indented to show that they belong to the footnote
877+ (as with list items).</p>
878+ <p specific-use="wrapper">
879+ <preformat> { <code> }</preformat>
881+ <p>If you want, you can indent every line, but you can also be lazy and
882+ just indent the first line of each block.</p>
885+ <p>This is <italic>easier</italic> to type. Inline notes may contain
886+ <ext-link ext-link-type="uri" xlink:href="http://google.com">links</ext-link>
887+ and <monospace>]</monospace> verbatim characters, as well as [bracketed