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<string-name>John MacFarlane</string-name>
23<contrib contrib-type="author">
25<string-name>Anonymous</string-name>
29<pub-date pub-type="epub">
30<string-date>July 17, 2006</string-date>
36 This is a set of tests for pandoc. Most of them are adapted from John
37 Gruber’s markdown test suite.
40 <title>Headers</title>
41 <sec id="level-2-with-an-embedded-link">
42 <title>Level 2 with an
43 <ext-link ext-link-type="uri" xlink:href="/url">embedded
44 link</ext-link></title>
45 <sec id="level-3-with-emphasis">
46 <title>Level 3 with <italic>emphasis</italic></title>
48 <title>Level 4</title>
50 <title>Level 5</title>
57 <title>Level 1</title>
58 <sec id="level-2-with-emphasis">
59 <title>Level 2 with <italic>emphasis</italic></title>
61 <title>Level 3</title>
68 <title>Level 2</title>
75 <title>Paragraphs</title>
77 Here’s a regular paragraph.
80 In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
81 item. Because a hard-wrapped line in the middle of a paragraph looked like
85 Here’s one with a bullet. * criminey.
88 There should be a hard line break<break />here.
91<sec id="block-quotes">
92 <title>Block Quotes</title>
98 This is a block quote. It is pretty short.
103 Code in a block quote:
105 <preformat>sub status {
106 print "working";
111 <list list-type="order">
138 This should not be a block quote: 2 > 1.
141 And a following paragraph.
144<sec id="code-blocks">
145 <title>Code Blocks</title>
149 <preformat>---- (should be four hyphens)
152 print "working";
155this code block is indented by one tab</preformat>
159 <preformat> this code block is indented by two tabs
161These should not be escaped: \$ \\ \> \[ \{</preformat>
166 <title>Unordered</title>
170 <list list-type="bullet">
190 <list list-type="bullet">
210 <list list-type="bullet">
230 <list list-type="bullet">
250 <list list-type="bullet">
270 <list list-type="bullet">
289 <title>Ordered</title>
293 <list list-type="order">
313 <list list-type="order">
333 <list list-type="order">
353 <list list-type="order">
373 <list list-type="order">
379 Item 1. graf two. The quick brown fox jumped over the lazy dog’s
396 <title>Nested</title>
397 <list list-type="bullet">
402 <list list-type="bullet">
407 <list list-type="bullet">
421 <list list-type="order">
431 <list list-type="bullet">
456 Same thing but with paragraphs:
458 <list list-type="order">
468 <list list-type="bullet">
493 <sec id="tabs-and-spaces">
494 <title>Tabs and spaces</title>
495 <list list-type="bullet">
498 this is a list item indented with tabs
503 this is a list item indented with spaces
505 <list list-type="bullet">
508 this is an example list item indented with tabs
513 this is an example list item indented with spaces
520 <sec id="fancy-list-markers">
521 <title>Fancy list markers</title>
522 <list list-type="order">
541 <list list-type="roman-lower">
547 sublist with roman numerals, starting with 4
557 <list list-type="alpha-upper">
582 <list list-type="alpha-upper">
587 <list list-type="roman-upper">
592 <list list-type="order">
600 <list list-type="alpha-lower">
606 Lower alpha with paren
619 <list list-type="order">
629 <list list-type="order">
639 Should not be a list item:
649<sec id="definition-lists">
650 <title>Definition Lists</title>
757 Multiple blocks with italics:
762 <italic>apple</italic>
769 contains seeds, crisp, pleasant to taste
775 <italic>orange</italic>
781 <preformat>{ orange code block }</preformat>
791 Multiple definitions, tight:
822 Multiple definitions, loose:
853 Blank line after term, indented marker, alternate markers:
877 <list list-type="order">
893<sec id="html-blocks">
894 <title>HTML Blocks</title>
896 Simple block on one line:
904 And nested without indentation:
921 Interpreted markdown in a table:
924 This is <italic>emphasized</italic>
927 And this is <bold role="strong">strong</bold>
930 Here’s a simple block:
938 This should be a code block, though:
940 <preformat><div>
942</div></preformat>
946 <preformat><div>foo</div></preformat>
960 This should just be an HTML comment:
968 <preformat><!-- Comment --></preformat>
970 Just plain comment, with trailing spaces on the line:
975 <preformat><hr /></preformat>
980<sec id="inline-markup">
981 <title>Inline Markup</title>
983 This is <italic>emphasized</italic>, and so <italic>is this</italic>.
986 This is <bold role="strong">strong</bold>, and so <bold role="strong">is
990 An <italic><ext-link ext-link-type="uri" xlink:href="/url">emphasized
991 link</ext-link></italic>.
994 <bold role="strong"><italic>This is strong and em.</italic></bold>
997 So is <bold role="strong"><italic>this</italic></bold> word.
1000 <bold role="strong"><italic>This is strong and em.</italic></bold>
1003 So is <bold role="strong"><italic>this</italic></bold> word.
1006 This is code: <monospace>></monospace>, <monospace>$</monospace>,
1007 <monospace>\</monospace>, <monospace>\$</monospace>,
1008 <monospace><html></monospace>.
1011 <strike>This is <italic>strikeout</italic>.</strike>
1014 Superscripts: a<sup>bc</sup>d a<sup><italic>hello</italic></sup>
1015 a<sup>hello there</sup>.
1018 Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.
1021 These should not be superscripts or subscripts, because of the unescaped
1022 spaces: a^b c^d, a~b c~d.
1025<sec id="smart-quotes-ellipses-dashes">
1026 <title>Smart quotes, ellipses, dashes</title>
1028 “Hello,” said the spider. “‘Shelob’ is my name.”
1031 ‘A’, ‘B’, and ‘C’ are letters.
1034 ‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’
1037 ‘He said, “I want to go.”’ Were you alive in the 70’s?
1040 Here is some quoted ‘<monospace>code</monospace>’ and a
1041 “<ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&bar=2">quoted
1045 Some dashes: one—two — three—four — five.
1048 Dashes between numbers: 5–7, 255–66, 1987–1999.
1055 <title>LaTeX</title>
1056 <list list-type="bullet">
1063 <inline-formula><alternatives>
1064 <tex-math><![CDATA[2+2=4]]></tex-math>
1065 <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>
1070 <inline-formula><alternatives>
1071 <tex-math><![CDATA[x \in y]]></tex-math>
1072 <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>
1077 <inline-formula><alternatives>
1078 <tex-math><![CDATA[\alpha \wedge \omega]]></tex-math>
1079 <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>
1084 <inline-formula><alternatives>
1085 <tex-math><![CDATA[223]]></tex-math>
1086 <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mn>223</mml:mn></mml:math></alternatives></inline-formula>
1091 <inline-formula><alternatives>
1092 <tex-math><![CDATA[p]]></tex-math>
1093 <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>p</mml:mi></mml:math></alternatives></inline-formula>-Tree
1098 Here’s some display math: <disp-formula><alternatives>
1099 <tex-math><![CDATA[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}]]></tex-math>
1100 <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>
1105 Here’s one that has a line break in it: <inline-formula><alternatives>
1106 <tex-math><![CDATA[\alpha + \omega \times x^2]]></tex-math>
1107 <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>.
1112 These shouldn’t be math:
1114 <list list-type="bullet">
1117 To get the famous equation, write <monospace>$e = mc^2$</monospace>.
1122 $22,000 is a <italic>lot</italic> of money. So is $34,000. (It worked
1123 if “lot” is emphasized.)
1128 Shoes ($20) and socks ($5).
1133 Escaped <monospace>$</monospace>: $73 <italic>this should be
1134 emphasized</italic> 23$.
1139 Here’s a LaTeX table:
1142<sec id="special-characters">
1143 <title>Special Characters</title>
1145 Here is some unicode:
1147 <list list-type="bullet">
1175 AT&T has an ampersand in their name.
1178 AT&T is another way to write it.
1239 <title>Links</title>
1241 <title>Explicit</title>
1243 Just a <ext-link ext-link-type="uri" xlink:href="/url/">URL</ext-link>.
1246 <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title">URL
1247 and title</ext-link>.
1250 <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title preceded by two spaces">URL
1251 and title</ext-link>.
1254 <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title preceded by a tab">URL
1255 and title</ext-link>.
1258 <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title with "quotes" in it">URL
1259 and title</ext-link>
1262 <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title with single quotes">URL
1263 and title</ext-link>
1266 <ext-link ext-link-type="uri" xlink:href="/url/with_underscore">with_underscore</ext-link>
1269 <ext-link ext-link-type="uri" xlink:href="mailto:nobody@nowhere.net">Email
1273 <ext-link ext-link-type="uri" xlink:href="">Empty</ext-link>.
1276 <sec id="reference">
1277 <title>Reference</title>
1279 Foo <ext-link ext-link-type="uri" xlink:href="/url/">bar</ext-link>.
1282 With <ext-link ext-link-type="uri" xlink:href="/url/">embedded
1283 [brackets]</ext-link>.
1286 <ext-link ext-link-type="uri" xlink:href="/url/">b</ext-link> by itself
1291 <ext-link ext-link-type="uri" xlink:href="/url">once</ext-link>.
1295 <ext-link ext-link-type="uri" xlink:href="/url">twice</ext-link>.
1299 <ext-link ext-link-type="uri" xlink:href="/url">thrice</ext-link>.
1302 This should [not][] be a link.
1304 <preformat>[not]: /url</preformat>
1307 <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="Title with "quotes" inside">bar</ext-link>.
1311 <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="Title with "quote" inside">biz</ext-link>.
1314 <sec id="with-ampersands">
1315 <title>With ampersands</title>
1318 <ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&bar=2">link
1319 with an ampersand in the URL</ext-link>.
1322 Here’s a link with an amersand in the link text:
1323 <ext-link ext-link-type="uri" xlink:href="http://att.com/" xlink:title="AT&T">AT&T</ext-link>.
1327 <ext-link ext-link-type="uri" xlink:href="/script?foo=1&bar=2">inline
1332 <ext-link ext-link-type="uri" xlink:href="/script?foo=1&bar=2">inline
1333 link in pointy braces</ext-link>.
1336 <sec id="autolinks">
1337 <title>Autolinks</title>
1340 <ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&bar=2">http://example.com/?foo=1&bar=2</ext-link>
1342 <list list-type="bullet">
1350 <ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link>
1360 An e-mail address: <email>nobody@nowhere.net</email>
1365 <ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link>
1369 Auto-links should not occur here:
1370 <monospace><http://example.com/></monospace>
1372 <preformat>or here: <http://example.com/></preformat>
1376 <title>Images</title>
1378 From “Voyage dans la Lune” by Georges Melies (1902):
1381 <caption>lalune</caption>
1382 <graphic mimetype="image" mime-subtype="peg" xlink:href="lalune.jpg" xlink:title="Voyage dans la Lune" />
1386 <inline-graphic mimetype="image" mime-subtype="jpeg" xlink:href="movie.jpg" />
1391 <title>Footnotes</title>
1393 Here is a footnote reference,<fn>
1395 Here is the footnote. It can go anywhere after the footnote reference.
1396 It need not be placed at the end of the document.
1398 </fn> and another.<fn>
1400 Here’s the long note. This one contains multiple blocks.
1403 Subsequent blocks are indented to show that they belong to the
1404 footnote (as with list items).
1406 <preformat> { <code> }</preformat>
1408 If you want, you can indent every line, but you can also be lazy and
1409 just indent the first line of each block.
1411 </fn> This should <italic>not</italic> be a footnote reference, because it
1412 contains a space.[^my note] Here is an inline note.<fn>
1414 This is <italic>easier</italic> to type. Inline notes may contain
1415 <ext-link ext-link-type="uri" xlink:href="http://google.com">links</ext-link>
1416 and <monospace>]</monospace> verbatim characters, as well as
1423 Notes can go in quotes.<fn>
1430 <list list-type="order">
1433 And in list items.<fn>
1442 This paragraph should not be part of the note, as it is not indented.
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