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"
9<article xmlns="http://docbook.org/ns/docbook"
10 xmlns:xlink="http://www.w3.org/1999/xlink"
11 xmlns:mml="http://www.w3.org/1998/Math/MathML">
13 <title>Pandoc Test Suite</title>
16 <firstname>John</firstname>
17 <surname>MacFarlane</surname>
20 <firstname></firstname>
21 <surname>Anonymous</surname>
24 <date>July 17, 2006</date>
27 This is a set of tests for pandoc. Most of them are adapted from John
28 Gruber’s markdown test suite.
31 <title>Headers</title>
32 <sect2 id="level-2-with-an-embedded-link">
33 <title>Level 2 with an <ulink url="/url">embedded link</ulink></title>
34 <sect3 id="level-3-with-emphasis">
35 <title>Level 3 with <emphasis>emphasis</emphasis></title>
37 <title>Level 4</title>
39 <title>Level 5</title>
49 <title>Level 1</title>
50 <sect2 id="level-2-with-emphasis">
51 <title>Level 2 with <emphasis>emphasis</emphasis></title>
53 <title>Level 3</title>
58 <title>Level 4</title>
60 An unnumbered section.
66 <title>Level 2</title>
72<sect1 id="paragraphs">
73 <title>Paragraphs</title>
75 Here’s a regular paragraph.
78 In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
79 item. Because a hard-wrapped line in the middle of a paragraph looked like
83 Here’s one with a bullet. * criminey.
86<sect1 id="block-quotes">
87 <title>Block Quotes</title>
93 This is a block quote. It is pretty short.
98 Code in a block quote:
102 print "working";
106% <command>ls</command>
111 <orderedlist numeration="arabic">
138 This should not be a block quote: 2 > 1.
141 And a following paragraph.
144<sect1 id="code-blocks">
145 <title>Code Blocks</title>
150---- (should be four hyphens)
153 print "working";
156this code block is indented by one tab
162 this code block is indented by two tabs
164These should not be escaped: \$ \\ \> \[ \{
169 <sect2 id="unordered">
170 <title>Unordered</title>
233 <title>Ordered</title>
234 <orderedlist numeration="arabic">
254 <orderedlist numeration="arabic">
274 <orderedlist numeration="arabic">
280 Item 1. graf two. The quick brown fox jumped over the lazy dog’s
297 <title>Nested</title>
322 <orderedlist numeration="arabic">
357 Same thing but with paragraphs:
359 <orderedlist numeration="arabic">
394 <sect2 id="tabs-and-spaces">
395 <title>Tabs and spaces</title>
399 this is a list item indented with tabs
404 this is a list item indented with spaces
409 this is an example list item indented with tabs
414 this is an example list item indented with spaces
421 <sect2 id="fancy-list-markers">
422 <title>Fancy list markers</title>
423 <orderedlist numeration="arabic">
424 <listitem override="2">
436 <orderedlist numeration="lowerroman">
437 <listitem override="4">
439 sublist with roman numerals, starting with 4
446 <orderedlist numeration="upperalpha">
465 <orderedlist numeration="upperalpha">
470 <orderedlist numeration="upperroman">
475 <orderedlist numeration="arabic">
476 <listitem override="6">
480 <orderedlist numeration="loweralpha">
481 <listitem override="3">
483 Lower alpha with paren
516 Should not be a list item:
526 <title>Callout</title>
529 <callout arearefs="loop1-letrec-co" id="loop1-letrec">
530 <para id="x_QA1">A <code>__letrec</code> is equivalent to a normal
531 Haskell &let;.</para>
533 <callout arearefs="loop1-def-co" id="loop1-def">
534 <para id="x_RA1">&GHC; compiled the body of our list comprehension into
535 a loop named <function>go_s1YC</function>.</para>
537 <callout arearefs="loop1-pat-empty-co" id="loop1-pat-empty">
538 <para id="x_SA1">If our &case; expression matches the empty list, we
539 return the empty list. This is reassuringly
545<sect1 id="definition-lists">
546 <title>Definition Lists</title>
580 Multiple blocks with italics:
585 <emphasis>apple</emphasis>
592 contains seeds, crisp, pleasant to taste
598 <emphasis>orange</emphasis>
616 Multiple definitions, loose:
651 Blank line after term, indented marker, alternate markers:
677 <orderedlist numeration="arabic">
693<sect1 id="inline-markup">
694 <title>Inline Markup</title>
696 This is <emphasis>emphasized</emphasis>, and so <emphasis>is
700 This is <emphasis role="strong">strong</emphasis>, and so
701 <emphasis role="strong">is this</emphasis>.
704 An <emphasis><ulink url="/url">emphasized link</ulink></emphasis>.
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 <emphasis role="strong"><emphasis>This is strong and
715 em.</emphasis></emphasis>
718 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
721 This is code: <literal>></literal>, <literal>$</literal>,
722 <literal>\</literal>, <literal>\$</literal>,
723 <literal><html></literal>.
726 More code: <classname>Class</classname> and <type>Type</type>
729 <emphasis role="strikethrough">This is
730 <emphasis>strikeout</emphasis>.</emphasis>
733 Superscripts: a<superscript>bc</superscript>d
734 a<superscript><emphasis>hello</emphasis></superscript>
735 a<superscript>hello there</superscript>.
738 Subscripts: H<subscript>2</subscript>O, H<subscript>23</subscript>O,
739 H<subscript>many of them</subscript>O.
742 These should not be superscripts or subscripts, because of the unescaped
743 spaces: a^b c^d, a~b c~d.
746<sect1 id="smart-quotes-ellipses-dashes">
747 <title>Smart quotes, ellipses, dashes</title>
749 <quote>Hello,</quote> said the spider. <quote><quote>Shelob</quote> is my
753 <quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are letters.
756 <quote>He said, <quote>I want to go.</quote></quote> Were you alive in the
760 Some dashes: one—two — three—four — five.
763 Dashes between numbers: 5–7, 255–66, 1987–1999.
817<sect1 id="special-characters">
818 <title>Special Characters</title>
820 Here is some unicode:
850 AT&T has an ampersand in their name.
853 AT&T is another way to write it.
915 <sect2 id="explicit">
916 <title>Explicit</title>
918 Just a <ulink url="/url/">URL</ulink>.
921 <ulink url="/url/">URL and title</ulink>.
924 <ulink url="/url/">URL and title</ulink>.
927 <ulink url="/url/">URL and title</ulink>.
930 <ulink url="/url/">URL and title</ulink>
933 <ulink url="/url/">URL and title</ulink>
936 <ulink url="/url/with_underscore">with_underscore</ulink>
939 <email>nobody@nowhere.net</email>
942 <ulink url="">Empty</ulink>.
945 <sect2 id="reference">
946 <title>Reference</title>
948 Foo <ulink url="/url/">bar</ulink>.
951 Foo <ulink url="/url/">bar</ulink>.
954 Foo <ulink url="/url/">bar</ulink>.
957 With <ulink url="/url/">embedded [brackets]</ulink>.
960 <ulink url="/url/">b</ulink> by itself should be a link.
963 Indented <ulink url="/url">once</ulink>.
966 Indented <ulink url="/url">twice</ulink>.
969 Indented <ulink url="/url">thrice</ulink>.
972 This should [not][] be a link.
978 Foo <ulink url="/url/">bar</ulink>.
981 Foo <ulink url="/url/">biz</ulink>.
984 <sect2 id="with-ampersands">
985 <title>With ampersands</title>
987 Here’s a <ulink url="http://example.com/?foo=1&bar=2">link with an
988 ampersand in the URL</ulink>.
991 Here’s a link with an amersand in the link text:
992 <ulink url="http://att.com/">AT&T</ulink>.
995 Here’s an <ulink url="/script?foo=1&bar=2">inline link</ulink>.
998 Here’s an <ulink url="/script?foo=1&bar=2">inline link in pointy
1002 <sect2 id="autolinks">
1003 <title>Autolinks</title>
1006 <ulink url="http://example.com/?foo=1&bar=2">http://example.com/?foo=1&bar=2</ulink>
1016 <ulink url="http://example.com/">http://example.com/</ulink>
1026 An e-mail address: <email>nobody@nowhere.net</email>
1031 <ulink url="http://example.com/">http://example.com/</ulink>
1035 Auto-links should not occur here:
1036 <literal><http://example.com/></literal>
1039or here: <http://example.com/>
1044 <title>Images</title>
1046 From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):
1049 <title>lalune fig caption</title>
1052 <imagedata fileref="lalune.jpg" />
1054 <textobject><phrase>lalune alt text shadowed by fig caption</phrase></textobject>
1058 Here is a movie <inlinemediaobject>
1060 <imagedata fileref="movie.jpg" />
1062 </inlinemediaobject> icon.
1063 And here a second movie <inlinemediaobject>
1066 <imagedata fileref="movie.jpg" />
1068 </inlinemediaobject> icon.
1069 And here a third movie <inlinemediaobject>
1070 <textobject><phrase>alt text</phrase></textobject>
1072 <imagedata fileref="movie.jpg" />
1074 </inlinemediaobject> icon.
1078 <imagedata fileref="lalune.jpg" />
1080 <textobject><phrase>lalune no figure alt text</phrase></textobject>
1083<sect1 id="footnotes">
1084 <title>Footnotes</title>
1086 Here is a footnote reference,<footnote>
1088 Here is the footnote. It can go anywhere after the footnote reference.
1089 It need not be placed at the end of the document.
1091 </footnote> and another.<footnote>
1093 Here’s the long note. This one contains multiple blocks.
1096 Subsequent blocks are indented to show that they belong to the
1097 footnote (as with list items).
1103 If you want, you can indent every line, but you can also be lazy and
1104 just indent the first line of each block.
1106 </footnote> This should <emphasis>not</emphasis> be a footnote reference,
1107 because it contains a space.[^my note] Here is an inline note.<footnote>
1109 This is <emphasis>easier</emphasis> to type. Inline notes may contain
1110 <ulink url="http://google.com">links</ulink> and <literal>]</literal>
1111 verbatim characters, as well as [bracketed text].
1117 Notes can go in quotes.<footnote>
1124 <orderedlist numeration="arabic">
1127 And in list items.<footnote>
1136 This paragraph should not be part of the note, as it is not indented.
1140 <title>Tables</title>
1142 Simple table with caption:
1146 Demonstration of simple table syntax.
1149 <colspec align="right" />
1150 <colspec align="left" />
1151 <colspec align="center" />
1152 <colspec align="left" />
1216 Simple table without caption:
1220 <colspec align="right" />
1221 <colspec align="left" />
1222 <colspec align="center" />
1223 <colspec align="left" />
1287 Simple table indented two spaces:
1291 Demonstration of simple table syntax.
1294 <colspec align="right" />
1295 <colspec align="left" />
1296 <colspec align="center" />
1297 <colspec align="left" />
1361 Multiline table with caption:
1365 Here's the caption. It may span multiple lines.
1368 <colspec colwidth="2*" align="center" />
1369 <colspec colwidth="2*" align="left" />
1370 <colspec colwidth="3*" align="right" />
1371 <colspec colwidth="3*" align="left" />
1400 Example of a row that spans multiple lines.
1414 Here's another one. Note the blank line between rows.
1421 Multiline table without caption:
1425 <colspec colwidth="1*" align="center" />
1426 <colspec colwidth="2*" align="left" />
1427 <colspec colwidth="3*" align="right" />
1428 <colspec colwidth="4*" align="left" />
1457 Example of a row that spans multiple lines.
1471 Here's another one. Note the blank line between rows.
1478 Table without column headers:
1482 <colspec align="right" />
1483 <colspec align="left" />
1484 <colspec align="center" />
1485 <colspec align="right" />
1533 Multiline table without column headers:
1537 <colspec colwidth="10*" align="center" />
1538 <colspec colwidth="10*" align="left" />
1539 <colspec colwidth="10*" align="right" />
1540 <colspec colwidth="10*" align="left" />
1553 Example of a row that spans multiple lines.
1567 Here's another one. Note the blank line between rows.
1573 <procedure><title>An Example Procedure</title>
1586 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