@@ -0,0 +1,1394 @@
1+<?xml version="1.0" encoding="utf-8" ?>
3+<article xmlns="http://docbook.org/ns/docbook" version="5.0">
5+ <title>Pandoc Test Suite</title>
8+ <firstname>John</firstname>
9+ <surname>MacFarlane</surname>
12+ <firstname></firstname>
13+ <surname>Anonymous</surname>
16+ <date>July 17, 2006</date>
19+ This is a set of tests for pandoc. Most of them are adapted from John
20+ 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 <ulink url="/url">embedded link</ulink></title>
26+ <section id="level-3-with-emphasis">
27+ <title>Level 3 with <emphasis>emphasis</emphasis></title>
28+ <section id="level-4">
29+ <title>Level 4</title>
30+ <section id="level-5">
31+ <title>Level 5</title>
39+<section id="level-1">
40+ <title>Level 1</title>
41+ <section id="level-2-with-emphasis">
42+ <title>Level 2 with <emphasis>emphasis</emphasis></title>
43+ <section id="level-3">
44+ <title>Level 3</title>
50+ <section id="level-2">
51+ <title>Level 2</title>
57+<section id="paragraphs">
58+ <title>Paragraphs</title>
60+ Here’s a regular paragraph.
63+ In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
64+ item. Because a hard-wrapped line in the middle of a paragraph looked like
68+ Here’s one with a bullet. * criminey.
70+<literallayout>There should be a hard line break
73+<section id="block-quotes">
74+ <title>Block Quotes</title>
80+ This is a block quote. It is pretty short.
85+ Code in a block quote:
89+ print "working";
95+ <orderedlist numeration="arabic" spacing="compact">
108+ Nested block quotes:
122+ This should not be a block quote: 2 > 1.
125+ And a following paragraph.
128+<section id="code-blocks">
129+ <title>Code Blocks</title>
134+---- (should be four hyphens)
137+ print "working";
140+this code block is indented by one tab
146+ this code block is indented by two tabs
148+These should not be escaped: \$ \\ \> \[ \{
152+ <title>Lists</title>
153+ <section id="unordered">
154+ <title>Unordered</title>
158+ <itemizedlist spacing="compact">
198+ <itemizedlist spacing="compact">
238+ <itemizedlist spacing="compact">
276+ <section id="ordered">
277+ <title>Ordered</title>
281+ <orderedlist numeration="arabic" spacing="compact">
301+ <orderedlist numeration="arabic" spacing="compact">
321+ <orderedlist numeration="arabic">
341+ <orderedlist numeration="arabic">
359+ Multiple paragraphs:
361+ <orderedlist numeration="arabic">
367+ Item 1. graf two. The quick brown fox jumped over the lazy dog’s
383+ <section id="nested">
384+ <title>Nested</title>
385+ <itemizedlist spacing="compact">
390+ <itemizedlist spacing="compact">
395+ <itemizedlist spacing="compact">
409+ <orderedlist numeration="arabic" spacing="compact">
419+ <itemizedlist spacing="compact">
444+ Same thing but with paragraphs:
446+ <orderedlist numeration="arabic">
456+ <itemizedlist spacing="compact">
481+ <section id="tabs-and-spaces">
482+ <title>Tabs and spaces</title>
486+ this is a list item indented with tabs
491+ this is a list item indented with spaces
496+ this is an example list item indented with tabs
501+ this is an example list item indented with spaces
508+ <section id="fancy-list-markers">
509+ <title>Fancy list markers</title>
510+ <orderedlist numeration="arabic">
511+ <listitem override="2">
523+ <orderedlist numeration="lowerroman" spacing="compact">
524+ <listitem override="4">
526+ sublist with roman numerals, starting with 4
533+ <orderedlist numeration="upperalpha" spacing="compact">
552+ <orderedlist numeration="upperalpha" spacing="compact">
557+ <orderedlist numeration="upperroman" spacing="compact">
562+ <orderedlist numeration="arabic" spacing="compact">
563+ <listitem override="6">
565+ Decimal start with 6
567+ <orderedlist numeration="loweralpha" spacing="compact">
568+ <listitem override="3">
570+ Lower alpha with paren
583+ <orderedlist spacing="compact">
593+ <orderedlist spacing="compact">
603+ Should not be a list item:
613+<section id="definition-lists">
614+ <title>Definition Lists</title>
618+ <variablelist spacing="compact">
653+ <variablelist spacing="compact">
721+ Multiple blocks with italics:
726+ <emphasis>apple</emphasis>
733+ contains seeds, crisp, pleasant to taste
739+ <emphasis>orange</emphasis>
746+{ orange code block }
757+ Multiple definitions, tight:
759+ <variablelist spacing="compact">
788+ Multiple definitions, loose:
819+ Blank line after term, indented marker, alternate markers:
843+ <orderedlist numeration="arabic" spacing="compact">
859+<section id="html-blocks">
860+ <title>HTML Blocks</title>
862+ Simple block on one line:
868+ And nested without indentation:
877+ Interpreted markdown in a table:
879+ This is <emphasis>emphasized</emphasis>
880+ And this is <emphasis role="strong">strong</emphasis>
882+ Here’s a simple block:
888+ This should be a code block, though:
899+<div>foo</div>
908+ This should just be an HTML comment:
917+<!-- Comment -->
920+ Just plain comment, with trailing spaces on the line:
932+<section id="inline-markup">
933+ <title>Inline Markup</title>
935+ This is <emphasis>emphasized</emphasis>, and so <emphasis>is
939+ This is <emphasis role="strong">strong</emphasis>, and so
940+ <emphasis role="strong">is this</emphasis>.
943+ An <emphasis><ulink url="/url">emphasized link</ulink></emphasis>.
946+ <emphasis role="strong"><emphasis>This is strong and
947+ em.</emphasis></emphasis>
950+ So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
953+ <emphasis role="strong"><emphasis>This is strong and
954+ em.</emphasis></emphasis>
957+ So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
960+ This is code: <literal>></literal>, <literal>$</literal>,
961+ <literal>\</literal>, <literal>\$</literal>,
962+ <literal><html></literal>.
965+ <emphasis role="strikethrough">This is
966+ <emphasis>strikeout</emphasis>.</emphasis>
969+ Superscripts: a<superscript>bc</superscript>d
970+ a<superscript><emphasis>hello</emphasis></superscript>
971+ a<superscript>hello there</superscript>.
974+ Subscripts: H<subscript>2</subscript>O, H<subscript>23</subscript>O,
975+ H<subscript>many of them</subscript>O.
978+ These should not be superscripts or subscripts, because of the unescaped
979+ spaces: a^b c^d, a~b c~d.
982+<section id="smart-quotes-ellipses-dashes">
983+ <title>Smart quotes, ellipses, dashes</title>
985+ <quote>Hello,</quote> said the spider. <quote><quote>Shelob</quote> is my
989+ <quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are letters.
992+ <quote>Oak,</quote> <quote>elm,</quote> and <quote>beech</quote> are names
993+ of trees. So is <quote>pine.</quote>
996+ <quote>He said, <quote>I want to go.</quote></quote> Were you alive in the
1000+ Here is some quoted <quote><literal>code</literal></quote> and a
1001+ <quote><ulink url="http://example.com/?foo=1&bar=2">quoted
1002+ link</ulink></quote>.
1005+ Some dashes: one—two — three—four — five.
1008+ Dashes between numbers: 5–7, 255–66, 1987–1999.
1014+<section id="latex">
1015+ <title>LaTeX</title>
1016+ <itemizedlist spacing="compact">
1028+ <emphasis>x</emphasis> ∈ <emphasis>y</emphasis>
1033+ <emphasis>α</emphasis> ∧ <emphasis>ω</emphasis>
1043+ <emphasis>p</emphasis>-Tree
1048+ Here’s some display math:
1049+ $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
1054+ Here’s one that has a line break in it:
1055+ <emphasis>α</emphasis> + <emphasis>ω</emphasis> × <emphasis>x</emphasis><superscript>2</superscript>.
1060+ These shouldn’t be math:
1062+ <itemizedlist spacing="compact">
1065+ To get the famous equation, write <literal>$e = mc^2$</literal>.
1070+ $22,000 is a <emphasis>lot</emphasis> of money. So is $34,000. (It
1071+ worked if <quote>lot</quote> is emphasized.)
1076+ Shoes ($20) and socks ($5).
1081+ Escaped <literal>$</literal>: $73 <emphasis>this should be
1082+ emphasized</emphasis> 23$.
1087+ Here’s a LaTeX table:
1090+<section id="special-characters">
1091+ <title>Special Characters</title>
1093+ Here is some unicode:
1095+ <itemizedlist spacing="compact">
1123+ AT&T has an ampersand in their name.
1126+ AT&T is another way to write it.
1186+<section id="links">
1187+ <title>Links</title>
1188+ <section id="explicit">
1189+ <title>Explicit</title>
1191+ Just a <ulink url="/url/">URL</ulink>.
1194+ <ulink url="/url/">URL and title</ulink>.
1197+ <ulink url="/url/">URL and title</ulink>.
1200+ <ulink url="/url/">URL and title</ulink>.
1203+ <ulink url="/url/">URL and title</ulink>
1206+ <ulink url="/url/">URL and title</ulink>
1209+ <ulink url="/url/with_underscore">with_underscore</ulink>
1212+ Email link (<email>nobody@nowhere.net</email>)
1215+ <ulink url="">Empty</ulink>.
1218+ <section id="reference">
1219+ <title>Reference</title>
1221+ Foo <ulink url="/url/">bar</ulink>.
1224+ Foo <ulink url="/url/">bar</ulink>.
1227+ Foo <ulink url="/url/">bar</ulink>.
1230+ With <ulink url="/url/">embedded [brackets]</ulink>.
1233+ <ulink url="/url/">b</ulink> by itself should be a link.
1236+ Indented <ulink url="/url">once</ulink>.
1239+ Indented <ulink url="/url">twice</ulink>.
1242+ Indented <ulink url="/url">thrice</ulink>.
1245+ This should [not][] be a link.
1251+ Foo <ulink url="/url/">bar</ulink>.
1254+ Foo <ulink url="/url/">biz</ulink>.
1257+ <section id="with-ampersands">
1258+ <title>With ampersands</title>
1260+ Here’s a <ulink url="http://example.com/?foo=1&bar=2">link with an
1261+ ampersand in the URL</ulink>.
1264+ Here’s a link with an amersand in the link text:
1265+ <ulink url="http://att.com/">AT&T</ulink>.
1268+ Here’s an <ulink url="/script?foo=1&bar=2">inline link</ulink>.
1271+ Here’s an <ulink url="/script?foo=1&bar=2">inline link in pointy
1275+ <section id="autolinks">
1276+ <title>Autolinks</title>
1279+ <ulink url="http://example.com/?foo=1&bar=2">http://example.com/?foo=1&bar=2</ulink>
1281+ <itemizedlist spacing="compact">
1289+ <ulink url="http://example.com/">http://example.com/</ulink>
1299+ An e-mail address: <email>nobody@nowhere.net</email>
1304+ <ulink url="http://example.com/">http://example.com/</ulink>
1308+ Auto-links should not occur here:
1309+ <literal><http://example.com/></literal>
1312+or here: <http://example.com/>
1316+<section id="images">
1317+ <title>Images</title>
1319+ From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):
1322+ <title>lalune</title>
1325+ <imagedata fileref="lalune.jpg" />
1327+ <textobject><phrase>lalune</phrase></textobject>
1331+ Here is a movie <inlinemediaobject>
1333+ <imagedata fileref="movie.jpg" />
1335+ </inlinemediaobject> icon.
1338+<section id="footnotes">
1339+ <title>Footnotes</title>
1341+ Here is a footnote reference,<footnote>
1343+ Here is the footnote. It can go anywhere after the footnote reference.
1344+ It need not be placed at the end of the document.
1346+ </footnote> and another.<footnote>
1348+ Here’s the long note. This one contains multiple blocks.
1351+ Subsequent blocks are indented to show that they belong to the
1352+ footnote (as with list items).
1358+ If you want, you can indent every line, but you can also be lazy and
1359+ just indent the first line of each block.
1361+ </footnote> This should <emphasis>not</emphasis> be a footnote reference,
1362+ because it contains a space.[^my note] Here is an inline note.<footnote>
1364+ This is <emphasis>easier</emphasis> to type. Inline notes may contain
1365+ <ulink url="http://google.com">links</ulink> and <literal>]</literal>
1366+ verbatim characters, as well as [bracketed text].
1372+ Notes can go in quotes.<footnote>
1379+ <orderedlist numeration="arabic" spacing="compact">
1382+ And in list items.<footnote>
1391+ This paragraph should not be part of the note, as it is not indented.