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">
6 <title>Pandoc Test Suite</title>
9 <firstname>John</firstname>
10 <surname>MacFarlane</surname>
13 <firstname></firstname>
14 <surname>Anonymous</surname>
17 <date>July 17, 2006</date>
20 This is a set of tests for pandoc. Most of them are adapted from John
21 Gruber’s markdown test suite.
24 <title>Headers</title>
25 <sect2 id="level-2-with-an-embedded-link">
26 <title>Level 2 with an <ulink url="/url">embedded link</ulink></title>
27 <sect3 id="level-3-with-emphasis">
28 <title>Level 3 with <emphasis>emphasis</emphasis></title>
30 <title>Level 4</title>
32 <title>Level 5</title>
42 <title>Level 1</title>
43 <sect2 id="level-2-with-emphasis">
44 <title>Level 2 with <emphasis>emphasis</emphasis></title>
46 <title>Level 3</title>
53 <title>Level 2</title>
59<sect1 id="paragraphs">
60 <title>Paragraphs</title>
62 Here’s a regular paragraph.
65 In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
66 item. Because a hard-wrapped line in the middle of a paragraph looked like
70 Here’s one with a bullet. * criminey.
73<sect1 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";
93% <command>ls</command>
98 <orderedlist numeration="arabic">
125 This should not be a block quote: 2 > 1.
128 And a following paragraph.
131<sect1 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 <sect2 id="unordered">
157 <title>Unordered</title>
220 <title>Ordered</title>
221 <orderedlist numeration="arabic">
241 <orderedlist numeration="arabic">
261 <orderedlist numeration="arabic">
267 Item 1. graf two. The quick brown fox jumped over the lazy dog’s
284 <title>Nested</title>
309 <orderedlist numeration="arabic">
344 Same thing but with paragraphs:
346 <orderedlist numeration="arabic">
381 <sect2 id="tabs-and-spaces">
382 <title>Tabs and spaces</title>
386 this is a list item indented with tabs
391 this is a list item indented with spaces
396 this is an example list item indented with tabs
401 this is an example list item indented with spaces
408 <sect2 id="fancy-list-markers">
409 <title>Fancy list markers</title>
410 <orderedlist numeration="arabic">
411 <listitem override="2">
423 <orderedlist numeration="lowerroman">
424 <listitem override="4">
426 sublist with roman numerals, starting with 4
433 <orderedlist numeration="upperalpha">
452 <orderedlist numeration="upperalpha">
457 <orderedlist numeration="upperroman">
462 <orderedlist numeration="arabic">
463 <listitem override="6">
467 <orderedlist numeration="loweralpha">
468 <listitem override="3">
470 Lower alpha with paren
503 Should not be a list item:
513 <title>Callout</title>
516 <callout arearefs="loop1-letrec-co" id="loop1-letrec">
517 <para id="x_QA1">A <code>__letrec</code> is equivalent to a normal
518 Haskell &let;.</para>
520 <callout arearefs="loop1-def-co" id="loop1-def">
521 <para id="x_RA1">&GHC; compiled the body of our list comprehension into
522 a loop named <function>go_s1YC</function>.</para>
524 <callout arearefs="loop1-pat-empty-co" id="loop1-pat-empty">
525 <para id="x_SA1">If our &case; expression matches the empty list, we
526 return the empty list. This is reassuringly
532<sect1 id="definition-lists">
533 <title>Definition Lists</title>
567 Multiple blocks with italics:
572 <emphasis>apple</emphasis>
579 contains seeds, crisp, pleasant to taste
585 <emphasis>orange</emphasis>
603 Multiple definitions, loose:
638 Blank line after term, indented marker, alternate markers:
664 <orderedlist numeration="arabic">
680<sect1 id="inline-markup">
681 <title>Inline Markup</title>
683 This is <emphasis>emphasized</emphasis>, and so <emphasis>is
687 This is <emphasis role="strong">strong</emphasis>, and so
688 <emphasis role="strong">is this</emphasis>.
691 An <emphasis><ulink url="/url">emphasized link</ulink></emphasis>.
694 <emphasis role="strong"><emphasis>This is strong and
695 em.</emphasis></emphasis>
698 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
701 <emphasis role="strong"><emphasis>This is strong and
702 em.</emphasis></emphasis>
705 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
708 This is code: <literal>></literal>, <literal>$</literal>,
709 <literal>\</literal>, <literal>\$</literal>,
710 <literal><html></literal>.
713 More code: <classname>Class</classname> and <type>Type</type>
716 <emphasis role="strikethrough">This is
717 <emphasis>strikeout</emphasis>.</emphasis>
720 Superscripts: a<superscript>bc</superscript>d
721 a<superscript><emphasis>hello</emphasis></superscript>
722 a<superscript>hello there</superscript>.
725 Subscripts: H<subscript>2</subscript>O, H<subscript>23</subscript>O,
726 H<subscript>many of them</subscript>O.
729 These should not be superscripts or subscripts, because of the unescaped
730 spaces: a^b c^d, a~b c~d.
733<sect1 id="smart-quotes-ellipses-dashes">
734 <title>Smart quotes, ellipses, dashes</title>
736 <quote>Hello,</quote> said the spider. <quote><quote>Shelob</quote> is my
740 <quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are letters.
743 <quote>He said, <quote>I want to go.</quote></quote> Were you alive in the
747 Some dashes: one—two — three—four — five.
750 Dashes between numbers: 5–7, 255–66, 1987–1999.
804<sect1 id="special-characters">
805 <title>Special Characters</title>
807 Here is some unicode:
837 AT&T has an ampersand in their name.
840 AT&T is another way to write it.
902 <sect2 id="explicit">
903 <title>Explicit</title>
905 Just a <ulink url="/url/">URL</ulink>.
908 <ulink url="/url/">URL and title</ulink>.
911 <ulink url="/url/">URL and title</ulink>.
914 <ulink url="/url/">URL and title</ulink>.
917 <ulink url="/url/">URL and title</ulink>
920 <ulink url="/url/">URL and title</ulink>
923 <ulink url="/url/with_underscore">with_underscore</ulink>
926 <email>nobody@nowhere.net</email>
929 <ulink url="">Empty</ulink>.
932 <sect2 id="reference">
933 <title>Reference</title>
935 Foo <ulink url="/url/">bar</ulink>.
938 Foo <ulink url="/url/">bar</ulink>.
941 Foo <ulink url="/url/">bar</ulink>.
944 With <ulink url="/url/">embedded [brackets]</ulink>.
947 <ulink url="/url/">b</ulink> by itself should be a link.
950 Indented <ulink url="/url">once</ulink>.
953 Indented <ulink url="/url">twice</ulink>.
956 Indented <ulink url="/url">thrice</ulink>.
959 This should [not][] be a link.
965 Foo <ulink url="/url/">bar</ulink>.
968 Foo <ulink url="/url/">biz</ulink>.
971 <sect2 id="with-ampersands">
972 <title>With ampersands</title>
974 Here’s a <ulink url="http://example.com/?foo=1&bar=2">link with an
975 ampersand in the URL</ulink>.
978 Here’s a link with an amersand in the link text:
979 <ulink url="http://att.com/">AT&T</ulink>.
982 Here’s an <ulink url="/script?foo=1&bar=2">inline link</ulink>.
985 Here’s an <ulink url="/script?foo=1&bar=2">inline link in pointy
989 <sect2 id="autolinks">
990 <title>Autolinks</title>
993 <ulink url="http://example.com/?foo=1&bar=2">http://example.com/?foo=1&bar=2</ulink>
1003 <ulink url="http://example.com/">http://example.com/</ulink>
1013 An e-mail address: <email>nobody@nowhere.net</email>
1018 <ulink url="http://example.com/">http://example.com/</ulink>
1022 Auto-links should not occur here:
1023 <literal><http://example.com/></literal>
1026or here: <http://example.com/>
1031 <title>Images</title>
1033 From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):
1036 <title>lalune fig caption</title>
1039 <imagedata fileref="lalune.jpg" />
1041 <textobject><phrase>lalune alt text shadowed by fig caption</phrase></textobject>
1045 Here is a movie <inlinemediaobject>
1047 <imagedata fileref="movie.jpg" />
1049 </inlinemediaobject> icon.
1050 And here a second movie <inlinemediaobject>
1053 <imagedata fileref="movie.jpg" />
1055 </inlinemediaobject> icon.
1056 And here a third movie <inlinemediaobject>
1057 <textobject><phrase>alt text</phrase></textobject>
1059 <imagedata fileref="movie.jpg" />
1061 </inlinemediaobject> icon.
1065 <imagedata fileref="lalune.jpg" />
1067 <textobject><phrase>lalune no figure alt text</phrase></textobject>
1070<sect1 id="footnotes">
1071 <title>Footnotes</title>
1073 Here is a footnote reference,<footnote>
1075 Here is the footnote. It can go anywhere after the footnote reference.
1076 It need not be placed at the end of the document.
1078 </footnote> and another.<footnote>
1080 Here’s the long note. This one contains multiple blocks.
1083 Subsequent blocks are indented to show that they belong to the
1084 footnote (as with list items).
1090 If you want, you can indent every line, but you can also be lazy and
1091 just indent the first line of each block.
1093 </footnote> This should <emphasis>not</emphasis> be a footnote reference,
1094 because it contains a space.[^my note] Here is an inline note.<footnote>
1096 This is <emphasis>easier</emphasis> to type. Inline notes may contain
1097 <ulink url="http://google.com">links</ulink> and <literal>]</literal>
1098 verbatim characters, as well as [bracketed text].
1104 Notes can go in quotes.<footnote>
1111 <orderedlist numeration="arabic">
1114 And in list items.<footnote>
1123 This paragraph should not be part of the note, as it is not indented.
1127 <title>Tables</title>
1129 Simple table with caption:
1133 Demonstration of simple table syntax.
1136 <colspec align="right" />
1137 <colspec align="left" />
1138 <colspec align="center" />
1139 <colspec align="left" />
1203 Simple table without caption:
1207 <colspec align="right" />
1208 <colspec align="left" />
1209 <colspec align="center" />
1210 <colspec align="left" />
1274 Simple table indented two spaces:
1278 Demonstration of simple table syntax.
1281 <colspec align="right" />
1282 <colspec align="left" />
1283 <colspec align="center" />
1284 <colspec align="left" />
1348 Multiline table with caption:
1352 Here's the caption. It may span multiple lines.
1355 <colspec colwidth="2*" align="center" />
1356 <colspec colwidth="2*" align="left" />
1357 <colspec colwidth="3*" align="right" />
1358 <colspec colwidth="3*" align="left" />
1387 Example of a row that spans multiple lines.
1401 Here's another one. Note the blank line between rows.
1408 Multiline table without caption:
1412 <colspec colwidth="1*" align="center" />
1413 <colspec colwidth="2*" align="left" />
1414 <colspec colwidth="3*" align="right" />
1415 <colspec colwidth="4*" align="left" />
1444 Example of a row that spans multiple lines.
1458 Here's another one. Note the blank line between rows.
1465 Table without column headers:
1469 <colspec align="right" />
1470 <colspec align="left" />
1471 <colspec align="center" />
1472 <colspec align="right" />
1520 Multiline table without column headers:
1524 <colspec colwidth="10*" align="center" />
1525 <colspec colwidth="10*" align="left" />
1526 <colspec colwidth="10*" align="right" />
1527 <colspec colwidth="10*" align="left" />
1540 Example of a row that spans multiple lines.
1554 Here's another one. Note the blank line between rows.
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