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>
51 <title>Level 4</title>
53 An unnumbered section.
59 <title>Level 2</title>
65<sect1 id="paragraphs">
66 <title>Paragraphs</title>
68 Here’s a regular paragraph.
71 In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
72 item. Because a hard-wrapped line in the middle of a paragraph looked like
76 Here’s one with a bullet. * criminey.
79<sect1 id="block-quotes">
80 <title>Block Quotes</title>
86 This is a block quote. It is pretty short.
91 Code in a block quote:
95 print "working";
99% <command>ls</command>
104 <orderedlist numeration="arabic">
131 This should not be a block quote: 2 > 1.
134 And a following paragraph.
137<sect1 id="code-blocks">
138 <title>Code Blocks</title>
143---- (should be four hyphens)
146 print "working";
149this code block is indented by one tab
155 this code block is indented by two tabs
157These should not be escaped: \$ \\ \> \[ \{
162 <sect2 id="unordered">
163 <title>Unordered</title>
226 <title>Ordered</title>
227 <orderedlist numeration="arabic">
247 <orderedlist numeration="arabic">
267 <orderedlist numeration="arabic">
273 Item 1. graf two. The quick brown fox jumped over the lazy dog’s
290 <title>Nested</title>
315 <orderedlist numeration="arabic">
350 Same thing but with paragraphs:
352 <orderedlist numeration="arabic">
387 <sect2 id="tabs-and-spaces">
388 <title>Tabs and spaces</title>
392 this is a list item indented with tabs
397 this is a list item indented with spaces
402 this is an example list item indented with tabs
407 this is an example list item indented with spaces
414 <sect2 id="fancy-list-markers">
415 <title>Fancy list markers</title>
416 <orderedlist numeration="arabic">
417 <listitem override="2">
429 <orderedlist numeration="lowerroman">
430 <listitem override="4">
432 sublist with roman numerals, starting with 4
439 <orderedlist numeration="upperalpha">
458 <orderedlist numeration="upperalpha">
463 <orderedlist numeration="upperroman">
468 <orderedlist numeration="arabic">
469 <listitem override="6">
473 <orderedlist numeration="loweralpha">
474 <listitem override="3">
476 Lower alpha with paren
509 Should not be a list item:
519 <title>Callout</title>
522 <callout arearefs="loop1-letrec-co" id="loop1-letrec">
523 <para id="x_QA1">A <code>__letrec</code> is equivalent to a normal
524 Haskell &let;.</para>
526 <callout arearefs="loop1-def-co" id="loop1-def">
527 <para id="x_RA1">&GHC; compiled the body of our list comprehension into
528 a loop named <function>go_s1YC</function>.</para>
530 <callout arearefs="loop1-pat-empty-co" id="loop1-pat-empty">
531 <para id="x_SA1">If our &case; expression matches the empty list, we
532 return the empty list. This is reassuringly
538<sect1 id="definition-lists">
539 <title>Definition Lists</title>
573 Multiple blocks with italics:
578 <emphasis>apple</emphasis>
585 contains seeds, crisp, pleasant to taste
591 <emphasis>orange</emphasis>
609 Multiple definitions, loose:
644 Blank line after term, indented marker, alternate markers:
670 <orderedlist numeration="arabic">
686<sect1 id="inline-markup">
687 <title>Inline Markup</title>
689 This is <emphasis>emphasized</emphasis>, and so <emphasis>is
693 This is <emphasis role="strong">strong</emphasis>, and so
694 <emphasis role="strong">is this</emphasis>.
697 An <emphasis><ulink url="/url">emphasized link</ulink></emphasis>.
700 <emphasis role="strong"><emphasis>This is strong and
701 em.</emphasis></emphasis>
704 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
707 <emphasis role="strong"><emphasis>This is strong and
708 em.</emphasis></emphasis>
711 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
714 This is code: <literal>></literal>, <literal>$</literal>,
715 <literal>\</literal>, <literal>\$</literal>,
716 <literal><html></literal>.
719 More code: <classname>Class</classname> and <type>Type</type>
722 <emphasis role="strikethrough">This is
723 <emphasis>strikeout</emphasis>.</emphasis>
726 Superscripts: a<superscript>bc</superscript>d
727 a<superscript><emphasis>hello</emphasis></superscript>
728 a<superscript>hello there</superscript>.
731 Subscripts: H<subscript>2</subscript>O, H<subscript>23</subscript>O,
732 H<subscript>many of them</subscript>O.
735 These should not be superscripts or subscripts, because of the unescaped
736 spaces: a^b c^d, a~b c~d.
739<sect1 id="smart-quotes-ellipses-dashes">
740 <title>Smart quotes, ellipses, dashes</title>
742 <quote>Hello,</quote> said the spider. <quote><quote>Shelob</quote> is my
746 <quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are letters.
749 <quote>He said, <quote>I want to go.</quote></quote> Were you alive in the
753 Some dashes: one—two — three—four — five.
756 Dashes between numbers: 5–7, 255–66, 1987–1999.
810<sect1 id="special-characters">
811 <title>Special Characters</title>
813 Here is some unicode:
843 AT&T has an ampersand in their name.
846 AT&T is another way to write it.
908 <sect2 id="explicit">
909 <title>Explicit</title>
911 Just a <ulink url="/url/">URL</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/">URL and title</ulink>
926 <ulink url="/url/">URL and title</ulink>
929 <ulink url="/url/with_underscore">with_underscore</ulink>
932 <email>nobody@nowhere.net</email>
935 <ulink url="">Empty</ulink>.
938 <sect2 id="reference">
939 <title>Reference</title>
941 Foo <ulink url="/url/">bar</ulink>.
944 Foo <ulink url="/url/">bar</ulink>.
947 Foo <ulink url="/url/">bar</ulink>.
950 With <ulink url="/url/">embedded [brackets]</ulink>.
953 <ulink url="/url/">b</ulink> by itself should be a link.
956 Indented <ulink url="/url">once</ulink>.
959 Indented <ulink url="/url">twice</ulink>.
962 Indented <ulink url="/url">thrice</ulink>.
965 This should [not][] be a link.
971 Foo <ulink url="/url/">bar</ulink>.
974 Foo <ulink url="/url/">biz</ulink>.
977 <sect2 id="with-ampersands">
978 <title>With ampersands</title>
980 Here’s a <ulink url="http://example.com/?foo=1&bar=2">link with an
981 ampersand in the URL</ulink>.
984 Here’s a link with an amersand in the link text:
985 <ulink url="http://att.com/">AT&T</ulink>.
988 Here’s an <ulink url="/script?foo=1&bar=2">inline link</ulink>.
991 Here’s an <ulink url="/script?foo=1&bar=2">inline link in pointy
995 <sect2 id="autolinks">
996 <title>Autolinks</title>
999 <ulink url="http://example.com/?foo=1&bar=2">http://example.com/?foo=1&bar=2</ulink>
1009 <ulink url="http://example.com/">http://example.com/</ulink>
1019 An e-mail address: <email>nobody@nowhere.net</email>
1024 <ulink url="http://example.com/">http://example.com/</ulink>
1028 Auto-links should not occur here:
1029 <literal><http://example.com/></literal>
1032or here: <http://example.com/>
1037 <title>Images</title>
1039 From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):
1042 <title>lalune fig caption</title>
1045 <imagedata fileref="lalune.jpg" />
1047 <textobject><phrase>lalune alt text shadowed by fig caption</phrase></textobject>
1051 Here is a movie <inlinemediaobject>
1053 <imagedata fileref="movie.jpg" />
1055 </inlinemediaobject> icon.
1056 And here a second movie <inlinemediaobject>
1059 <imagedata fileref="movie.jpg" />
1061 </inlinemediaobject> icon.
1062 And here a third movie <inlinemediaobject>
1063 <textobject><phrase>alt text</phrase></textobject>
1065 <imagedata fileref="movie.jpg" />
1067 </inlinemediaobject> icon.
1071 <imagedata fileref="lalune.jpg" />
1073 <textobject><phrase>lalune no figure alt text</phrase></textobject>
1076<sect1 id="footnotes">
1077 <title>Footnotes</title>
1079 Here is a footnote reference,<footnote>
1081 Here is the footnote. It can go anywhere after the footnote reference.
1082 It need not be placed at the end of the document.
1084 </footnote> and another.<footnote>
1086 Here’s the long note. This one contains multiple blocks.
1089 Subsequent blocks are indented to show that they belong to the
1090 footnote (as with list items).
1096 If you want, you can indent every line, but you can also be lazy and
1097 just indent the first line of each block.
1099 </footnote> This should <emphasis>not</emphasis> be a footnote reference,
1100 because it contains a space.[^my note] Here is an inline note.<footnote>
1102 This is <emphasis>easier</emphasis> to type. Inline notes may contain
1103 <ulink url="http://google.com">links</ulink> and <literal>]</literal>
1104 verbatim characters, as well as [bracketed text].
1110 Notes can go in quotes.<footnote>
1117 <orderedlist numeration="arabic">
1120 And in list items.<footnote>
1129 This paragraph should not be part of the note, as it is not indented.
1133 <title>Tables</title>
1135 Simple table with caption:
1139 Demonstration of simple table syntax.
1142 <colspec align="right" />
1143 <colspec align="left" />
1144 <colspec align="center" />
1145 <colspec align="left" />
1209 Simple table without caption:
1213 <colspec align="right" />
1214 <colspec align="left" />
1215 <colspec align="center" />
1216 <colspec align="left" />
1280 Simple table indented two spaces:
1284 Demonstration of simple table syntax.
1287 <colspec align="right" />
1288 <colspec align="left" />
1289 <colspec align="center" />
1290 <colspec align="left" />
1354 Multiline table with caption:
1358 Here's the caption. It may span multiple lines.
1361 <colspec colwidth="2*" align="center" />
1362 <colspec colwidth="2*" align="left" />
1363 <colspec colwidth="3*" align="right" />
1364 <colspec colwidth="3*" align="left" />
1393 Example of a row that spans multiple lines.
1407 Here's another one. Note the blank line between rows.
1414 Multiline table without caption:
1418 <colspec colwidth="1*" align="center" />
1419 <colspec colwidth="2*" align="left" />
1420 <colspec colwidth="3*" align="right" />
1421 <colspec colwidth="4*" align="left" />
1450 Example of a row that spans multiple lines.
1464 Here's another one. Note the blank line between rows.
1471 Table without column headers:
1475 <colspec align="right" />
1476 <colspec align="left" />
1477 <colspec align="center" />
1478 <colspec align="right" />
1526 Multiline table without column headers:
1530 <colspec colwidth="10*" align="center" />
1531 <colspec colwidth="10*" align="left" />
1532 <colspec colwidth="10*" align="right" />
1533 <colspec colwidth="10*" align="left" />
1546 Example of a row that spans multiple lines.
1560 Here's another one. Note the blank line between rows.
1566 <procedure><title>An Example Procedure</title>
1579 Substeps can be nested indefinitely deep.
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