1<?xml version="1.0" encoding="utf-8" ?>
2<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
7 <title>Pandoc Test Suite</title>
9 <firstname>John</firstname>
10 <surname>MacFarlane</surname>
13 <firstname></firstname>
14 <surname>Anonymous</surname>
16 <date>July 17, 2006</date>
19 This is a set of tests for pandoc. Most of them are adapted from
20 John Gruber's markdown test suite.
22 <section id="headers">
23 <title>Headers</title>
24 <section id="level-2-with-an-embedded-link">
25 <title>Level 2 with an
26 <ulink url="/url">embedded link</ulink></title>
27 <section id="level-3-with-emphasis">
28 <title>Level 3 with <emphasis>emphasis</emphasis></title>
29 <section id="level-4">
30 <title>Level 4</title>
31 <section id="level-5">
32 <title>Level 5</title>
40 <section id="level-1">
41 <title>Level 1</title>
42 <section id="level-2-with-emphasis">
43 <title>Level 2 with <emphasis>emphasis</emphasis></title>
44 <section id="level-3">
45 <title>Level 3</title>
51 <section id="level-2">
52 <title>Level 2</title>
58 <section id="paragraphs">
59 <title>Paragraphs</title>
61 Here's a regular paragraph.
64 In Markdown 1.0.0 and earlier. Version 8. This line turns into a
65 list item. Because a hard-wrapped line in the middle of a paragraph
66 looked like a list item.
69 Here's one with a bullet. * criminey.
72 There should be a hard line
73 break<literallayout></literallayout>here.
76 <section id="block-quotes">
77 <title>Block Quotes</title>
83 This is a block quote. It is pretty short.
88 Code in a block quote:
92 print "working";
98 <orderedlist numeration="arabic">
125 This should not be a block quote: 2 > 1.
128 And a following paragraph.
131 <section id="code-blocks">
132 <title>Code Blocks</title>
137---- (should be four hyphens)
140 print "working";
143this code block is indented by one tab
149 this code block is indented by two tabs
151These should not be escaped: \$ \\ \> \[ \{
156 <section id="unordered">
157 <title>Unordered</title>
279 <section id="ordered">
280 <title>Ordered</title>
284 <orderedlist numeration="arabic">
304 <orderedlist numeration="arabic">
324 <orderedlist numeration="arabic">
344 <orderedlist numeration="arabic">
364 <orderedlist numeration="arabic">
370 Item 1. graf two. The quick brown fox jumped over the lazy dog's
386 <section id="nested">
387 <title>Nested</title>
412 <orderedlist numeration="arabic">
447 Same thing but with paragraphs:
449 <orderedlist numeration="arabic">
484 <section id="tabs-and-spaces">
485 <title>Tabs and spaces</title>
489 this is a list item indented with tabs
494 this is a list item indented with spaces
499 this is an example list item indented with tabs
504 this is an example list item indented with spaces
511 <section id="fancy-list-markers">
512 <title>Fancy list markers</title>
513 <orderedlist numeration="arabic">
514 <listitem override="2">
526 <orderedlist numeration="lowerroman">
527 <listitem override="4">
529 sublist with roman numerals, starting with 4
536 <orderedlist numeration="upperalpha">
555 <orderedlist numeration="upperalpha">
560 <orderedlist numeration="upperroman">
565 <orderedlist numeration="arabic">
566 <listitem override="6">
570 <orderedlist numeration="loweralpha">
571 <listitem override="3">
573 Lower alpha with paren
606 Should not be a list item:
616 <section id="definition-lists">
617 <title>Definition Lists</title>
724 Multiple blocks with italics:
729 <emphasis>apple</emphasis>
736 contains seeds, crisp, pleasant to taste
742 <emphasis>orange</emphasis>
760 Multiple definitions, tight:
791 Multiple definitions, loose:
822 Blank line after term, indented marker, alternate markers:
846 <orderedlist numeration="arabic">
862 <section id="html-blocks">
863 <title>HTML Blocks</title>
865 Simple block on one line:
872 And nested without indentation:
886 Interpreted markdown in a table:
891 This is <emphasis>emphasized</emphasis>
894 And this is <emphasis role="strong">strong</emphasis>
899<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
902 Here's a simple block:
910 This should be a code block, though:
921<div>foo</div>
936 This should just be an HTML comment:
949 This is another comment.
956<!-- Comment -->
959 Just plain comment, with trailing spaces on the line:
984<hr class="foo" id="bar" />
986<hr class="foo" id="bar" />
988<hr class="foo" id="bar">
991 <section id="inline-markup">
992 <title>Inline Markup</title>
994 This is <emphasis>emphasized</emphasis>, and so
995 <emphasis>is this</emphasis>.
998 This is <emphasis role="strong">strong</emphasis>, and so
999 <emphasis role="strong">is this</emphasis>.
1002 An <emphasis><ulink url="/url">emphasized link</ulink></emphasis>.
1005 <emphasis role="strong"><emphasis>This is strong and em.</emphasis></emphasis>
1008 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis>
1012 <emphasis role="strong"><emphasis>This is strong and em.</emphasis></emphasis>
1015 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis>
1019 This is code: <literal>></literal>, <literal>$</literal>,
1020 <literal>\</literal>, <literal>\$</literal>,
1021 <literal><html></literal>.
1024 <emphasis role="strikethrough">This is <emphasis>strikeout</emphasis>.</emphasis>
1027 Superscripts: a<superscript>bc</superscript>d
1028 a<superscript><emphasis>hello</emphasis></superscript>
1029 a<superscript>hello there</superscript>.
1032 Subscripts: H<subscript>2</subscript>O,
1033 H<subscript>23</subscript>O,
1034 H<subscript>many of them</subscript>O.
1037 These should not be superscripts or subscripts, because of the
1038 unescaped spaces: a^b c^d, a~b c~d.
1041 <section id="smart-quotes-ellipses-dashes">
1042 <title>Smart quotes, ellipses, dashes</title>
1044 <quote>Hello,</quote> said the spider.
1045 <quote><quote>Shelob</quote> is my name.</quote>
1048 <quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are
1052 <quote>Oak,</quote> <quote>elm,</quote> and <quote>beech</quote>
1053 are names of trees. So is <quote>pine.</quote>
1056 <quote>He said, <quote>I want to go.</quote></quote> Were you alive
1060 Here is some quoted <quote><literal>code</literal></quote> and a
1061 <quote><ulink url="http://example.com/?foo=1&bar=2">quoted link</ulink></quote>.
1064 Some dashes: one—two — three—four — five.
1067 Dashes between numbers: 5–7, 255–66, 1987–1999.
1070 Ellipses…and…and….
1073 <section id="latex">
1074 <title>LaTeX</title>
1087 <emphasis>x</emphasis> ∈ <emphasis>y</emphasis>
1102 <emphasis>p</emphasis>-Tree
1107 Here's some display math:
1108 \frac{<emphasis>d</emphasis>}{<emphasis>dx</emphasis>}<emphasis>f</emphasis>(<emphasis>x</emphasis>)=\lim<subscript><emphasis>h</emphasis> → 0</subscript>\frac{<emphasis>f</emphasis>(<emphasis>x</emphasis>+<emphasis>h</emphasis>)-<emphasis>f</emphasis>(<emphasis>x</emphasis>)}{<emphasis>h</emphasis>}
1113 Here's one that has a line break in it:
1114 α+ω × <emphasis>x</emphasis><superscript>2</superscript>.
1119 These shouldn't be math:
1124 To get the famous equation, write <literal>$e = mc^2$</literal>.
1129 $22,000 is a <emphasis>lot</emphasis> of money. So is $34,000. (It
1130 worked if <quote>lot</quote> is emphasized.)
1135 Shoes ($20) and socks ($5).
1140 Escaped <literal>$</literal>: $73
1141 <emphasis>this should be emphasized</emphasis> 23$.
1146 Here's a LaTeX table:
1151 <section id="special-characters">
1152 <title>Special Characters</title>
1154 Here is some unicode:
1184 AT&T has an ampersand in their name.
1187 AT&T is another way to write it.
1247 <section id="links">
1248 <title>Links</title>
1249 <section id="explicit">
1250 <title>Explicit</title>
1252 Just a <ulink url="/url/">URL</ulink>.
1255 <ulink url="/url/">URL and title</ulink>.
1258 <ulink url="/url/">URL and title</ulink>.
1261 <ulink url="/url/">URL and title</ulink>.
1264 <ulink url="/url/">URL and title</ulink>
1267 <ulink url="/url/">URL and title</ulink>
1270 <ulink url="/url/with_underscore">with_underscore</ulink>
1273 Email link (<email>nobody@nowhere.net</email>)
1276 <ulink url="">Empty</ulink>.
1279 <section id="reference">
1280 <title>Reference</title>
1282 Foo <ulink url="/url/">bar</ulink>.
1285 Foo <ulink url="/url/">bar</ulink>.
1288 Foo <ulink url="/url/">bar</ulink>.
1291 With <ulink url="/url/">embedded [brackets]</ulink>.
1294 <ulink url="/url/">b</ulink> by itself should be a link.
1297 Indented <ulink url="/url">once</ulink>.
1300 Indented <ulink url="/url">twice</ulink>.
1303 Indented <ulink url="/url">thrice</ulink>.
1306 This should [not][] be a link.
1312 Foo <ulink url="/url/">bar</ulink>.
1315 Foo <ulink url="/url/">biz</ulink>.
1318 <section id="with-ampersands">
1319 <title>With ampersands</title>
1322 <ulink url="http://example.com/?foo=1&bar=2">link with an ampersand in the URL</ulink>.
1325 Here's a link with an amersand in the link text:
1326 <ulink url="http://att.com/">AT&T</ulink>.
1329 Here's an <ulink url="/script?foo=1&bar=2">inline link</ulink>.
1333 <ulink url="/script?foo=1&bar=2">inline link in pointy braces</ulink>.
1336 <section id="autolinks">
1337 <title>Autolinks</title>
1340 <ulink url="http://example.com/?foo=1&bar=2"><literal>http://example.com/?foo=1&bar=2</literal></ulink>
1350 <ulink url="http://example.com/"><literal>http://example.com/</literal></ulink>
1360 An e-mail address: <email>nobody@nowhere.net</email>
1365 <ulink url="http://example.com/"><literal>http://example.com/</literal></ulink>
1369 Auto-links should not occur here:
1370 <literal><http://example.com/></literal>
1373or here: <http://example.com/>
1377 <section id="images">
1378 <title>Images</title>
1380 From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):
1390 <imagedata fileref="lalune.jpg" />
1392 </inlinemediaobject>
1398 <imagedata fileref="movie.jpg" />
1400 </inlinemediaobject>
1404 <section id="footnotes">
1405 <title>Footnotes</title>
1408 reference,<footnote>
1410 Here is the footnote. It can go anywhere after the footnote
1411 reference. It need not be placed at the end of the document.
1417 Here's the long note. This one contains multiple blocks.
1420 Subsequent blocks are indented to show that they belong to the
1421 footnote (as with list items).
1427 If you want, you can indent every line, but you can also be lazy
1428 and just indent the first line of each block.
1431 This should <emphasis>not</emphasis> be a footnote reference,
1432 because it contains a space.[^my note] Here is an inline
1435 This is <emphasis>easier</emphasis> to type. Inline notes may
1436 contain <ulink url="http://google.com">links</ulink> and
1437 <literal>]</literal> verbatim characters, as well as [bracketed
1452 <orderedlist numeration="arabic">
1465 This paragraph should not be part of the note, as it is not
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