1<?xml version="1.0" encoding="utf-8" ?>
4 xmlns="http://docbook.org/ns/docbook" version="5.0"
5 xmlns:xlink="http://www.w3.org/1999/xlink" >
7 <title>Pandoc Test Suite</title>
10 <firstname>John</firstname>
11 <surname>MacFarlane</surname>
14 <firstname></firstname>
15 <surname>Anonymous</surname>
18 <date>July 17, 2006</date>
21 This is a set of tests for pandoc. Most of them are adapted from John
22 Gruber’s markdown test suite.
24 <section xml:id="headers">
25 <title>Headers</title>
26 <section xml:id="level-2-with-an-embedded-link">
27 <title>Level 2 with an <link xlink:href="/url">embedded
29 <section xml:id="level-3-with-emphasis">
30 <title>Level 3 with <emphasis>emphasis</emphasis></title>
31 <section xml:id="level-4">
32 <title>Level 4</title>
33 <section xml:id="level-5">
34 <title>Level 5</title>
42 <section xml:id="level-1">
43 <title>Level 1</title>
44 <section xml:id="level-2-with-emphasis">
45 <title>Level 2 with <emphasis>emphasis</emphasis></title>
46 <section xml:id="level-3">
47 <title>Level 3</title>
53 <section xml:id="level-2">
54 <title>Level 2</title>
60 <section xml:id="paragraphs">
61 <title>Paragraphs</title>
63 Here’s a regular paragraph.
66 In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
67 item. Because a hard-wrapped line in the middle of a paragraph looked
71 Here’s one with a bullet. * criminey.
73<literallayout>There should be a hard line break
76 <section xml:id="block-quotes">
77 <title>Block Quotes</title>
83 This is a block quote. It is pretty short.
88 Code in a block quote:
92 print "working";
98 <orderedlist numeration="arabic" spacing="compact">
125 This should not be a block quote: 2 > 1.
128 And a following paragraph.
131 <section xml: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: \$ \\ \> \[ \{
154 <section xml:id="lists">
156 <section xml:id="unordered">
157 <title>Unordered</title>
161 <itemizedlist spacing="compact">
201 <itemizedlist spacing="compact">
241 <itemizedlist spacing="compact">
279 <section xml:id="ordered">
280 <title>Ordered</title>
284 <orderedlist numeration="arabic" spacing="compact">
304 <orderedlist numeration="arabic" spacing="compact">
324 <orderedlist numeration="arabic">
344 <orderedlist numeration="arabic">
364 <orderedlist numeration="arabic">
370 Item 1. graf two. The quick brown fox jumped over the lazy dog’s
386 <section xml:id="nested">
387 <title>Nested</title>
388 <itemizedlist spacing="compact">
393 <itemizedlist spacing="compact">
398 <itemizedlist spacing="compact">
412 <orderedlist numeration="arabic" spacing="compact">
422 <itemizedlist spacing="compact">
447 Same thing but with paragraphs:
449 <orderedlist numeration="arabic">
459 <itemizedlist spacing="compact">
484 <section xml:id="tabs-and-spaces">
485 <title>Tabs and spaces</title>
489 this is a list item indented with tabs
494 this is a list item indented with spaces
499 this is an example list item indented with tabs
504 this is an example list item indented with spaces
511 <section xml:id="fancy-list-markers">
512 <title>Fancy list markers</title>
513 <orderedlist numeration="arabic">
514 <listitem override="2">
526 <orderedlist numeration="lowerroman" spacing="compact">
527 <listitem override="4">
529 sublist with roman numerals, starting with 4
536 <orderedlist numeration="upperalpha" spacing="compact">
555 <orderedlist numeration="upperalpha" spacing="compact">
560 <orderedlist numeration="upperroman" spacing="compact">
565 <orderedlist numeration="arabic" spacing="compact">
566 <listitem override="6">
570 <orderedlist numeration="loweralpha" spacing="compact">
571 <listitem override="3">
573 Lower alpha with paren
586 <orderedlist spacing="compact">
596 <orderedlist spacing="compact">
606 Should not be a list item:
616 <section xml:id="definition-lists">
617 <title>Definition Lists</title>
621 <variablelist spacing="compact">
656 <variablelist spacing="compact">
724 Multiple blocks with italics:
729 <emphasis>apple</emphasis>
736 contains seeds, crisp, pleasant to taste
742 <emphasis>orange</emphasis>
760 Multiple definitions, tight:
762 <variablelist spacing="compact">
791 Multiple definitions, loose:
822 Blank line after term, indented marker, alternate markers:
846 <orderedlist numeration="arabic" spacing="compact">
862 <section xml:id="html-blocks">
863 <title>HTML Blocks</title>
865 Simple block on one line:
871 And nested without indentation:
880 Interpreted markdown in a table:
882 This is <emphasis>emphasized</emphasis>
883 And this is <emphasis role="strong">strong</emphasis>
885 Here’s a simple block:
891 This should be a code block, though:
902<div>foo</div>
911 This should just be an HTML comment:
920<!-- Comment -->
923 Just plain comment, with trailing spaces on the line:
935 <section xml:id="inline-markup">
936 <title>Inline Markup</title>
938 This is <emphasis>emphasized</emphasis>, and so <emphasis>is
942 This is <emphasis role="strong">strong</emphasis>, and so
943 <emphasis role="strong">is this</emphasis>.
946 An <emphasis><link xlink:href="/url">emphasized link</link></emphasis>.
949 <emphasis role="strong"><emphasis>This is strong and
950 em.</emphasis></emphasis>
953 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
956 <emphasis role="strong"><emphasis>This is strong and
957 em.</emphasis></emphasis>
960 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
963 This is code: <literal>></literal>, <literal>$</literal>,
964 <literal>\</literal>, <literal>\$</literal>,
965 <literal><html></literal>.
968 <emphasis role="strikethrough">This is
969 <emphasis>strikeout</emphasis>.</emphasis>
972 Superscripts: a<superscript>bc</superscript>d
973 a<superscript><emphasis>hello</emphasis></superscript>
974 a<superscript>hello there</superscript>.
977 Subscripts: H<subscript>2</subscript>O, H<subscript>23</subscript>O,
978 H<subscript>many of them</subscript>O.
981 These should not be superscripts or subscripts, because of the unescaped
982 spaces: a^b c^d, a~b c~d.
985 <section xml:id="smart-quotes-ellipses-dashes">
986 <title>Smart quotes, ellipses, dashes</title>
988 <quote>Hello,</quote> said the spider. <quote><quote>Shelob</quote> is
992 <quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are letters.
995 <quote>Oak,</quote> <quote>elm,</quote> and <quote>beech</quote> are
996 names of trees. So is <quote>pine.</quote>
999 <quote>He said, <quote>I want to go.</quote></quote> Were you alive in
1003 Here is some quoted <quote><literal>code</literal></quote> and a
1004 <quote><link xlink:href="http://example.com/?foo=1&bar=2">quoted
1005 link</link></quote>.
1008 Some dashes: one—two — three—four — five.
1011 Dashes between numbers: 5–7, 255–66, 1987–1999.
1017 <section xml:id="latex">
1018 <title>LaTeX</title>
1019 <itemizedlist spacing="compact">
1031 <emphasis>x</emphasis> ∈ <emphasis>y</emphasis>
1036 <emphasis>α</emphasis> ∧ <emphasis>ω</emphasis>
1046 <emphasis>p</emphasis>-Tree
1051 Here’s some display math:
1052 $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
1057 Here’s one that has a line break in it:
1058 <emphasis>α</emphasis> + <emphasis>ω</emphasis> × <emphasis>x</emphasis><superscript>2</superscript>.
1063 These shouldn’t be math:
1065 <itemizedlist spacing="compact">
1068 To get the famous equation, write <literal>$e = mc^2$</literal>.
1073 $22,000 is a <emphasis>lot</emphasis> of money. So is $34,000. (It
1074 worked if <quote>lot</quote> is emphasized.)
1079 Shoes ($20) and socks ($5).
1084 Escaped <literal>$</literal>: $73 <emphasis>this should be
1085 emphasized</emphasis> 23$.
1090 Here’s a LaTeX table:
1093 <section xml:id="special-characters">
1094 <title>Special Characters</title>
1096 Here is some unicode:
1098 <itemizedlist spacing="compact">
1126 AT&T has an ampersand in their name.
1129 AT&T is another way to write it.
1189 <section xml:id="links">
1190 <title>Links</title>
1191 <section xml:id="explicit">
1192 <title>Explicit</title>
1194 Just a <link xlink:href="/url/">URL</link>.
1197 <link xlink:href="/url/">URL and title</link>.
1200 <link xlink:href="/url/">URL and title</link>.
1203 <link xlink:href="/url/">URL and title</link>.
1206 <link xlink:href="/url/">URL and title</link>
1209 <link xlink:href="/url/">URL and title</link>
1212 <link xlink:href="/url/with_underscore">with_underscore</link>
1215 Email link (<email>nobody@nowhere.net</email>)
1218 <link xlink:href="">Empty</link>.
1221 <section xml:id="reference">
1222 <title>Reference</title>
1224 Foo <link xlink:href="/url/">bar</link>.
1227 With <link xlink:href="/url/">embedded [brackets]</link>.
1230 <link xlink:href="/url/">b</link> by itself should be a link.
1233 Indented <link xlink:href="/url">once</link>.
1236 Indented <link xlink:href="/url">twice</link>.
1239 Indented <link xlink:href="/url">thrice</link>.
1242 This should [not][] be a link.
1248 Foo <link xlink:href="/url/">bar</link>.
1251 Foo <link xlink:href="/url/">biz</link>.
1254 <section xml:id="with-ampersands">
1255 <title>With ampersands</title>
1257 Here’s a <link xlink:href="http://example.com/?foo=1&bar=2">link
1258 with an ampersand in the URL</link>.
1261 Here’s a link with an amersand in the link text:
1262 <link xlink:href="http://att.com/">AT&T</link>.
1265 Here’s an <link xlink:href="/script?foo=1&bar=2">inline
1269 Here’s an <link xlink:href="/script?foo=1&bar=2">inline link in
1270 pointy braces</link>.
1273 <section xml:id="autolinks">
1274 <title>Autolinks</title>
1277 <link xlink:href="http://example.com/?foo=1&bar=2" role="uri">http://example.com/?foo=1&bar=2</link>
1279 <itemizedlist spacing="compact">
1287 <link xlink:href="http://example.com/" role="uri">http://example.com/</link>
1297 An e-mail address: <email>nobody@nowhere.net</email>
1302 <link xlink:href="http://example.com/" role="uri">http://example.com/</link>
1306 Auto-links should not occur here:
1307 <literal><http://example.com/></literal>
1310or here: <http://example.com/>
1314 <section xml:id="images">
1315 <title>Images</title>
1317 From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):
1320 <title>lalune</title>
1323 <imagedata fileref="lalune.jpg" />
1325 <textobject><phrase>lalune</phrase></textobject>
1329 Here is a movie <inlinemediaobject>
1331 <imagedata fileref="movie.jpg" />
1333 </inlinemediaobject> icon.
1336 <section xml:id="footnotes">
1337 <title>Footnotes</title>
1339 Here is a footnote reference,<footnote>
1341 Here is the footnote. It can go anywhere after the footnote
1342 reference. It need not be placed at the end of the document.
1344 </footnote> and another.<footnote>
1346 Here’s the long note. This one contains multiple blocks.
1349 Subsequent blocks are indented to show that they belong to the
1350 footnote (as with list items).
1356 If you want, you can indent every line, but you can also be lazy and
1357 just indent the first line of each block.
1359 </footnote> This should <emphasis>not</emphasis> be a footnote
1360 reference, because it contains a space.[^my note] Here is an inline
1363 This is <emphasis>easier</emphasis> to type. Inline notes may
1364 contain <link xlink:href="http://google.com">links</link> and
1365 <literal>]</literal> verbatim characters, as well as [bracketed
1372 Notes can go in quotes.<footnote>
1379 <orderedlist numeration="arabic" spacing="compact">
1382 And in list items.<footnote>
1391 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