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"
11 <title>Pandoc Test Suite</title>
14 <firstname>John</firstname>
15 <surname>MacFarlane</surname>
18 <firstname></firstname>
19 <surname>Anonymous</surname>
22 <date>July 17, 2006</date>
25 This is a set of tests for pandoc. Most of them are adapted from John
26 Gruber’s markdown test suite.
29 <title>Headers</title>
30 <sect2 id="level-2-with-an-embedded-link">
31 <title>Level 2 with an <ulink url="/url">embedded link</ulink></title>
32 <sect3 id="level-3-with-emphasis">
33 <title>Level 3 with <emphasis>emphasis</emphasis></title>
35 <title>Level 4</title>
37 <title>Level 5</title>
47 <title>Level 1</title>
48 <sect2 id="level-2-with-emphasis">
49 <title>Level 2 with <emphasis>emphasis</emphasis></title>
51 <title>Level 3</title>
56 <title>Level 4</title>
58 An unnumbered section.
64 <title>Level 2</title>
70<sect1 id="paragraphs">
71 <title>Paragraphs</title>
73 Here’s a regular paragraph.
76 In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
77 item. Because a hard-wrapped line in the middle of a paragraph looked like
81 Here’s one with a bullet. * criminey.
84<sect1 id="block-quotes">
85 <title>Block Quotes</title>
91 This is a block quote. It is pretty short.
96 Code in a block quote:
100 print "working";
104% <command>ls</command>
109 <orderedlist numeration="arabic">
136 This should not be a block quote: 2 > 1.
139 And a following paragraph.
142<sect1 id="code-blocks">
143 <title>Code Blocks</title>
148---- (should be four hyphens)
151 print "working";
154this code block is indented by one tab
160 this code block is indented by two tabs
162These should not be escaped: \$ \\ \> \[ \{
167 <sect2 id="unordered">
168 <title>Unordered</title>
231 <title>Ordered</title>
232 <orderedlist numeration="arabic">
252 <orderedlist numeration="arabic">
272 <orderedlist numeration="arabic">
278 Item 1. graf two. The quick brown fox jumped over the lazy dog’s
295 <title>Nested</title>
320 <orderedlist numeration="arabic">
355 Same thing but with paragraphs:
357 <orderedlist numeration="arabic">
392 <sect2 id="tabs-and-spaces">
393 <title>Tabs and spaces</title>
397 this is a list item indented with tabs
402 this is a list item indented with spaces
407 this is an example list item indented with tabs
412 this is an example list item indented with spaces
419 <sect2 id="fancy-list-markers">
420 <title>Fancy list markers</title>
421 <orderedlist numeration="arabic">
422 <listitem override="2">
434 <orderedlist numeration="lowerroman">
435 <listitem override="4">
437 sublist with roman numerals, starting with 4
444 <orderedlist numeration="upperalpha">
463 <orderedlist numeration="upperalpha">
468 <orderedlist numeration="upperroman">
473 <orderedlist numeration="arabic">
474 <listitem override="6">
478 <orderedlist numeration="loweralpha">
479 <listitem override="3">
481 Lower alpha with paren
514 Should not be a list item:
524 <title>Callout</title>
527 <callout arearefs="loop1-letrec-co" id="loop1-letrec">
528 <para id="x_QA1">A <code>__letrec</code> is equivalent to a normal
529 Haskell &let;.</para>
531 <callout arearefs="loop1-def-co" id="loop1-def">
532 <para id="x_RA1">&GHC; compiled the body of our list comprehension into
533 a loop named <function>go_s1YC</function>.</para>
535 <callout arearefs="loop1-pat-empty-co" id="loop1-pat-empty">
536 <para id="x_SA1">If our &case; expression matches the empty list, we
537 return the empty list. This is reassuringly
543<sect1 id="definition-lists">
544 <title>Definition Lists</title>
578 Multiple blocks with italics:
583 <emphasis>apple</emphasis>
590 contains seeds, crisp, pleasant to taste
596 <emphasis>orange</emphasis>
614 Multiple definitions, loose:
649 Blank line after term, indented marker, alternate markers:
675 <orderedlist numeration="arabic">
691<sect1 id="inline-markup">
692 <title>Inline Markup</title>
694 This is <emphasis>emphasized</emphasis>, and so <emphasis>is
698 This is <emphasis role="strong">strong</emphasis>, and so
699 <emphasis role="strong">is this</emphasis>.
702 An <emphasis><ulink url="/url">emphasized link</ulink></emphasis>.
705 <emphasis role="strong"><emphasis>This is strong and
706 em.</emphasis></emphasis>
709 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
712 <emphasis role="strong"><emphasis>This is strong and
713 em.</emphasis></emphasis>
716 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
719 This is code: <literal>></literal>, <literal>$</literal>,
720 <literal>\</literal>, <literal>\$</literal>,
721 <literal><html></literal>.
724 More code: <classname>Class</classname> and <type>Type</type>
727 <emphasis role="strikethrough">This is
728 <emphasis>strikeout</emphasis>.</emphasis>
731 Superscripts: a<superscript>bc</superscript>d
732 a<superscript><emphasis>hello</emphasis></superscript>
733 a<superscript>hello there</superscript>.
736 Subscripts: H<subscript>2</subscript>O, H<subscript>23</subscript>O,
737 H<subscript>many of them</subscript>O.
740 These should not be superscripts or subscripts, because of the unescaped
741 spaces: a^b c^d, a~b c~d.
744<sect1 id="smart-quotes-ellipses-dashes">
745 <title>Smart quotes, ellipses, dashes</title>
747 <quote>Hello,</quote> said the spider. <quote><quote>Shelob</quote> is my
751 <quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are letters.
754 <quote>He said, <quote>I want to go.</quote></quote> Were you alive in the
758 Some dashes: one—two — three—four — five.
761 Dashes between numbers: 5–7, 255–66, 1987–1999.
815<sect1 id="special-characters">
816 <title>Special Characters</title>
818 Here is some unicode:
848 AT&T has an ampersand in their name.
851 AT&T is another way to write it.
913 <sect2 id="explicit">
914 <title>Explicit</title>
916 Just a <ulink url="/url/">URL</ulink>.
919 <ulink url="/url/">URL and title</ulink>.
922 <ulink url="/url/">URL and title</ulink>.
925 <ulink url="/url/">URL and title</ulink>.
928 <ulink url="/url/">URL and title</ulink>
931 <ulink url="/url/">URL and title</ulink>
934 <ulink url="/url/with_underscore">with_underscore</ulink>
937 <email>nobody@nowhere.net</email>
940 <ulink url="">Empty</ulink>.
943 <sect2 id="reference">
944 <title>Reference</title>
946 Foo <ulink url="/url/">bar</ulink>.
949 Foo <ulink url="/url/">bar</ulink>.
952 Foo <ulink url="/url/">bar</ulink>.
955 With <ulink url="/url/">embedded [brackets]</ulink>.
958 <ulink url="/url/">b</ulink> by itself should be a link.
961 Indented <ulink url="/url">once</ulink>.
964 Indented <ulink url="/url">twice</ulink>.
967 Indented <ulink url="/url">thrice</ulink>.
970 This should [not][] be a link.
976 Foo <ulink url="/url/">bar</ulink>.
979 Foo <ulink url="/url/">biz</ulink>.
982 <sect2 id="with-ampersands">
983 <title>With ampersands</title>
985 Here’s a <ulink url="http://example.com/?foo=1&bar=2">link with an
986 ampersand in the URL</ulink>.
989 Here’s a link with an amersand in the link text:
990 <ulink url="http://att.com/">AT&T</ulink>.
993 Here’s an <ulink url="/script?foo=1&bar=2">inline link</ulink>.
996 Here’s an <ulink url="/script?foo=1&bar=2">inline link in pointy
1000 <sect2 id="autolinks">
1001 <title>Autolinks</title>
1004 <ulink url="http://example.com/?foo=1&bar=2">http://example.com/?foo=1&bar=2</ulink>
1014 <ulink url="http://example.com/">http://example.com/</ulink>
1024 An e-mail address: <email>nobody@nowhere.net</email>
1029 <ulink url="http://example.com/">http://example.com/</ulink>
1033 Auto-links should not occur here:
1034 <literal><http://example.com/></literal>
1037or here: <http://example.com/>
1042 <title>Images</title>
1044 From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):
1047 <title>lalune fig caption</title>
1050 <imagedata fileref="lalune.jpg" />
1052 <textobject><phrase>lalune alt text shadowed by fig caption</phrase></textobject>
1056 Here is a movie <inlinemediaobject>
1058 <imagedata fileref="movie.jpg" />
1060 </inlinemediaobject> icon.
1061 And here a second movie <inlinemediaobject>
1064 <imagedata fileref="movie.jpg" />
1066 </inlinemediaobject> icon.
1067 And here a third movie <inlinemediaobject>
1068 <textobject><phrase>alt text</phrase></textobject>
1070 <imagedata fileref="movie.jpg" />
1072 </inlinemediaobject> icon.
1076 <imagedata fileref="lalune.jpg" />
1078 <textobject><phrase>lalune no figure alt text</phrase></textobject>
1081<sect1 id="footnotes">
1082 <title>Footnotes</title>
1084 Here is a footnote reference,<footnote>
1086 Here is the footnote. It can go anywhere after the footnote reference.
1087 It need not be placed at the end of the document.
1089 </footnote> and another.<footnote>
1091 Here’s the long note. This one contains multiple blocks.
1094 Subsequent blocks are indented to show that they belong to the
1095 footnote (as with list items).
1101 If you want, you can indent every line, but you can also be lazy and
1102 just indent the first line of each block.
1104 </footnote> This should <emphasis>not</emphasis> be a footnote reference,
1105 because it contains a space.[^my note] Here is an inline note.<footnote>
1107 This is <emphasis>easier</emphasis> to type. Inline notes may contain
1108 <ulink url="http://google.com">links</ulink> and <literal>]</literal>
1109 verbatim characters, as well as [bracketed text].
1115 Notes can go in quotes.<footnote>
1122 <orderedlist numeration="arabic">
1125 And in list items.<footnote>
1134 This paragraph should not be part of the note, as it is not indented.
1138 <title>Tables</title>
1140 Simple table with caption:
1144 Demonstration of simple table syntax.
1147 <colspec align="right" />
1148 <colspec align="left" />
1149 <colspec align="center" />
1150 <colspec align="left" />
1214 Simple table without caption:
1218 <colspec align="right" />
1219 <colspec align="left" />
1220 <colspec align="center" />
1221 <colspec align="left" />
1285 Simple table indented two spaces:
1289 Demonstration of simple table syntax.
1292 <colspec align="right" />
1293 <colspec align="left" />
1294 <colspec align="center" />
1295 <colspec align="left" />
1359 Multiline table with caption:
1363 Here's the caption. It may span multiple lines.
1366 <colspec colwidth="2*" align="center" />
1367 <colspec colwidth="2*" align="left" />
1368 <colspec colwidth="3*" align="right" />
1369 <colspec colwidth="3*" align="left" />
1398 Example of a row that spans multiple lines.
1412 Here's another one. Note the blank line between rows.
1419 Multiline table without caption:
1423 <colspec colwidth="1*" align="center" />
1424 <colspec colwidth="2*" align="left" />
1425 <colspec colwidth="3*" align="right" />
1426 <colspec colwidth="4*" align="left" />
1455 Example of a row that spans multiple lines.
1469 Here's another one. Note the blank line between rows.
1476 Table without column headers:
1480 <colspec align="right" />
1481 <colspec align="left" />
1482 <colspec align="center" />
1483 <colspec align="right" />
1531 Multiline table without column headers:
1535 <colspec colwidth="10*" align="center" />
1536 <colspec colwidth="10*" align="left" />
1537 <colspec colwidth="10*" align="right" />
1538 <colspec colwidth="10*" align="left" />
1551 Example of a row that spans multiple lines.
1565 Here's another one. Note the blank line between rows.
1571 <procedure><title>An Example Procedure</title>
1584 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