1<?xml version="1.0" encoding="utf-8" ?>
2<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
6 <title>Pandoc Test Suite</title>
10 <firstname>John</firstname>
11 <surname>MacFarlane</surname>
16 <firstname></firstname>
17 <surname>Anonymous</surname>
21 <date>July 17, 2006</date>
24 This is a set of tests for pandoc. Most of them are adapted from John
25 Gruber’s markdown test suite.
28 <title>Headers</title>
29 <sect2 id="level-2-with-an-embedded-link">
30 <title>Level 2 with an <ulink url="/url">embedded link</ulink></title>
31 <sect3 id="level-3-with-emphasis">
32 <title>Level 3 with <emphasis>emphasis</emphasis></title>
34 <title>Level 4</title>
36 <title>Level 5</title>
45 <title>Level 1</title>
46 <sect2 id="level-2-with-emphasis">
47 <title>Level 2 with <emphasis>emphasis</emphasis></title>
49 <title>Level 3</title>
56 <title>Level 2</title>
62 <sect1 id="paragraphs">
63 <title>Paragraphs</title>
65 Here’s a regular paragraph.
68 In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
69 item. Because a hard-wrapped line in the middle of a paragraph looked
73 Here’s one with a bullet. * criminey.
75<literallayout>There should be a hard line break
78 <sect1 id="block-quotes">
79 <title>Block Quotes</title>
85 This is a block quote. It is pretty short.
90 Code in a block quote:
94 print "working";
100 <orderedlist numeration="arabic" spacing="compact">
127 This should not be a block quote: 2 > 1.
130 And a following paragraph.
133 <sect1 id="code-blocks">
134 <title>Code Blocks</title>
139---- (should be four hyphens)
142 print "working";
145this code block is indented by one tab
151 this code block is indented by two tabs
153These should not be escaped: \$ \\ \> \[ \{
158 <sect2 id="unordered">
159 <title>Unordered</title>
163 <itemizedlist spacing="compact">
203 <itemizedlist spacing="compact">
243 <itemizedlist spacing="compact">
282 <title>Ordered</title>
286 <orderedlist numeration="arabic" spacing="compact">
306 <orderedlist numeration="arabic" spacing="compact">
326 <orderedlist numeration="arabic">
346 <orderedlist numeration="arabic">
366 <orderedlist numeration="arabic">
372 Item 1. graf two. The quick brown fox jumped over the lazy dog’s
389 <title>Nested</title>
390 <itemizedlist spacing="compact">
395 <itemizedlist spacing="compact">
400 <itemizedlist spacing="compact">
414 <orderedlist numeration="arabic" spacing="compact">
424 <itemizedlist spacing="compact">
449 Same thing but with paragraphs:
451 <orderedlist numeration="arabic">
461 <itemizedlist spacing="compact">
486 <sect2 id="tabs-and-spaces">
487 <title>Tabs and spaces</title>
491 this is a list item indented with tabs
496 this is a list item indented with spaces
501 this is an example list item indented with tabs
506 this is an example list item indented with spaces
513 <sect2 id="fancy-list-markers">
514 <title>Fancy list markers</title>
515 <orderedlist numeration="arabic">
516 <listitem override="2">
528 <orderedlist numeration="lowerroman" spacing="compact">
529 <listitem override="4">
531 sublist with roman numerals, starting with 4
538 <orderedlist numeration="upperalpha" spacing="compact">
557 <orderedlist numeration="upperalpha" spacing="compact">
562 <orderedlist numeration="upperroman" spacing="compact">
567 <orderedlist numeration="arabic" spacing="compact">
568 <listitem override="6">
572 <orderedlist numeration="loweralpha" spacing="compact">
573 <listitem override="3">
575 Lower alpha with paren
588 <orderedlist spacing="compact">
598 <orderedlist spacing="compact">
608 Should not be a list item:
618 <sect1 id="definition-lists">
619 <title>Definition Lists</title>
623 <variablelist spacing="compact">
658 <variablelist spacing="compact">
726 Multiple blocks with italics:
731 <emphasis>apple</emphasis>
738 contains seeds, crisp, pleasant to taste
744 <emphasis>orange</emphasis>
762 Multiple definitions, tight:
764 <variablelist spacing="compact">
793 Multiple definitions, loose:
824 Blank line after term, indented marker, alternate markers:
848 <orderedlist numeration="arabic" spacing="compact">
864 <sect1 id="html-blocks">
865 <title>HTML Blocks</title>
867 Simple block on one line:
873 And nested without indentation:
882 Interpreted markdown in a table:
887 This is <emphasis>emphasized</emphasis>
890 And this is <emphasis role="strong">strong</emphasis>
894 <script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
896 Here’s a simple block:
902 This should be a code block, though:
913<div>foo</div>
922 This should just be an HTML comment:
933 This is another comment.
939<!-- Comment -->
942 Just plain comment, with trailing spaces on the line:
960 <hr class="foo" id="bar" />
961 <hr class="foo" id="bar" />
962 <hr class="foo" id="bar">
964 <sect1 id="inline-markup">
965 <title>Inline Markup</title>
967 This is <emphasis>emphasized</emphasis>, and so <emphasis>is
971 This is <emphasis role="strong">strong</emphasis>, and so
972 <emphasis role="strong">is this</emphasis>.
975 An <emphasis><ulink url="/url">emphasized link</ulink></emphasis>.
978 <emphasis role="strong"><emphasis>This is strong and
979 em.</emphasis></emphasis>
982 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
985 <emphasis role="strong"><emphasis>This is strong and
986 em.</emphasis></emphasis>
989 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
992 This is code: <literal>></literal>, <literal>$</literal>,
993 <literal>\</literal>, <literal>\$</literal>,
994 <literal><html></literal>.
997 <emphasis role="strikethrough">This is
998 <emphasis>strikeout</emphasis>.</emphasis>
1001 Superscripts: a<superscript>bc</superscript>d
1002 a<superscript><emphasis>hello</emphasis></superscript>
1003 a<superscript>hello there</superscript>.
1006 Subscripts: H<subscript>2</subscript>O, H<subscript>23</subscript>O,
1007 H<subscript>many of them</subscript>O.
1010 These should not be superscripts or subscripts, because of the unescaped
1011 spaces: a^b c^d, a~b c~d.
1014 <sect1 id="smart-quotes-ellipses-dashes">
1015 <title>Smart quotes, ellipses, dashes</title>
1017 <quote>Hello,</quote> said the spider. <quote><quote>Shelob</quote> is
1021 <quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are letters.
1024 <quote>Oak,</quote> <quote>elm,</quote> and <quote>beech</quote> are
1025 names of trees. So is <quote>pine.</quote>
1028 <quote>He said, <quote>I want to go.</quote></quote> Were you alive in
1032 Here is some quoted <quote><literal>code</literal></quote> and a
1033 <quote><ulink url="http://example.com/?foo=1&bar=2">quoted
1034 link</ulink></quote>.
1037 Some dashes: one—two — three—four — five.
1040 Dashes between numbers: 5–7, 255–66, 1987–1999.
1047 <title>LaTeX</title>
1048 <itemizedlist spacing="compact">
1060 <emphasis>x</emphasis> ∈ <emphasis>y</emphasis>
1065 <emphasis>α</emphasis> ∧ <emphasis>ω</emphasis>
1075 <emphasis>p</emphasis>-Tree
1080 Here’s some display math:
1081 $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
1086 Here’s one that has a line break in it:
1087 <emphasis>α</emphasis> + <emphasis>ω</emphasis> × <emphasis>x</emphasis><superscript>2</superscript>.
1092 These shouldn’t be math:
1094 <itemizedlist spacing="compact">
1097 To get the famous equation, write <literal>$e = mc^2$</literal>.
1102 $22,000 is a <emphasis>lot</emphasis> of money. So is $34,000. (It
1103 worked if <quote>lot</quote> is emphasized.)
1108 Shoes ($20) and socks ($5).
1113 Escaped <literal>$</literal>: $73 <emphasis>this should be
1114 emphasized</emphasis> 23$.
1119 Here’s a LaTeX table:
1122 <sect1 id="special-characters">
1123 <title>Special Characters</title>
1125 Here is some unicode:
1127 <itemizedlist spacing="compact">
1155 AT&T has an ampersand in their name.
1158 AT&T is another way to write it.
1219 <title>Links</title>
1220 <sect2 id="explicit">
1221 <title>Explicit</title>
1223 Just a <ulink url="/url/">URL</ulink>.
1226 <ulink url="/url/">URL and title</ulink>.
1229 <ulink url="/url/">URL and title</ulink>.
1232 <ulink url="/url/">URL and title</ulink>.
1235 <ulink url="/url/">URL and title</ulink>
1238 <ulink url="/url/">URL and title</ulink>
1241 <ulink url="/url/with_underscore">with_underscore</ulink>
1244 Email link (<email>nobody@nowhere.net</email>)
1247 <ulink url="">Empty</ulink>.
1250 <sect2 id="reference">
1251 <title>Reference</title>
1253 Foo <ulink url="/url/">bar</ulink>.
1256 With <ulink url="/url/">embedded [brackets]</ulink>.
1259 <ulink url="/url/">b</ulink> by itself should be a link.
1262 Indented <ulink url="/url">once</ulink>.
1265 Indented <ulink url="/url">twice</ulink>.
1268 Indented <ulink url="/url">thrice</ulink>.
1271 This should [not][] be a link.
1277 Foo <ulink url="/url/">bar</ulink>.
1280 Foo <ulink url="/url/">biz</ulink>.
1283 <sect2 id="with-ampersands">
1284 <title>With ampersands</title>
1286 Here’s a <ulink url="http://example.com/?foo=1&bar=2">link with an
1287 ampersand in the URL</ulink>.
1290 Here’s a link with an amersand in the link text:
1291 <ulink url="http://att.com/">AT&T</ulink>.
1294 Here’s an <ulink url="/script?foo=1&bar=2">inline link</ulink>.
1297 Here’s an <ulink url="/script?foo=1&bar=2">inline link in pointy
1301 <sect2 id="autolinks">
1302 <title>Autolinks</title>
1305 <ulink url="http://example.com/?foo=1&bar=2" role="uri">http://example.com/?foo=1&bar=2</ulink>
1307 <itemizedlist spacing="compact">
1315 <ulink url="http://example.com/" role="uri">http://example.com/</ulink>
1325 An e-mail address: <email>nobody@nowhere.net</email>
1330 <ulink url="http://example.com/" role="uri">http://example.com/</ulink>
1334 Auto-links should not occur here:
1335 <literal><http://example.com/></literal>
1338or here: <http://example.com/>
1343 <title>Images</title>
1345 From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):
1348 <title>lalune</title>
1351 <imagedata fileref="lalune.jpg" />
1353 <textobject><phrase>lalune</phrase></textobject>
1357 Here is a movie <inlinemediaobject>
1359 <imagedata fileref="movie.jpg" />
1361 </inlinemediaobject> icon.
1364 <sect1 id="footnotes">
1365 <title>Footnotes</title>
1367 Here is a footnote reference,<footnote>
1369 Here is the footnote. It can go anywhere after the footnote
1370 reference. It need not be placed at the end of the document.
1372 </footnote> and another.<footnote>
1374 Here’s the long note. This one contains multiple blocks.
1377 Subsequent blocks are indented to show that they belong to the
1378 footnote (as with list items).
1384 If you want, you can indent every line, but you can also be lazy and
1385 just indent the first line of each block.
1387 </footnote> This should <emphasis>not</emphasis> be a footnote
1388 reference, because it contains a space.[^my note] Here is an inline
1391 This is <emphasis>easier</emphasis> to type. Inline notes may
1392 contain <ulink url="http://google.com">links</ulink> and
1393 <literal>]</literal> verbatim characters, as well as [bracketed
1400 Notes can go in quotes.<footnote>
1407 <orderedlist numeration="arabic" spacing="compact">
1410 And in list items.<footnote>
1419 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