1<?xml version="1.0" encoding="utf-8" ?>
2<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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>
41 <title>Level 1</title>
42 <sect2 id="level-2-with-emphasis">
43 <title>Level 2 with <emphasis>emphasis</emphasis></title>
45 <title>Level 3</title>
52 <title>Level 2</title>
58<sect1 id="paragraphs">
59 <title>Paragraphs</title>
61 Here’s a regular paragraph.
64 In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
65 item. Because a hard-wrapped line in the middle of a paragraph looked like
69 Here’s one with a bullet. * criminey.
71<literallayout>There should be a hard line break
74<sect1 id="block-quotes">
75 <title>Block Quotes</title>
81 This is a block quote. It is pretty short.
86 Code in a block quote:
90 print "working";
96 <orderedlist numeration="arabic" spacing="compact">
123 This should not be a block quote: 2 > 1.
126 And a following paragraph.
129<sect1 id="code-blocks">
130 <title>Code Blocks</title>
135---- (should be four hyphens)
138 print "working";
141this code block is indented by one tab
147 this code block is indented by two tabs
149These should not be escaped: \$ \\ \> \[ \{
154 <sect2 id="unordered">
155 <title>Unordered</title>
159 <itemizedlist spacing="compact">
199 <itemizedlist spacing="compact">
239 <itemizedlist spacing="compact">
278 <title>Ordered</title>
282 <orderedlist numeration="arabic" spacing="compact">
302 <orderedlist numeration="arabic" spacing="compact">
322 <orderedlist numeration="arabic">
342 <orderedlist numeration="arabic">
362 <orderedlist numeration="arabic">
368 Item 1. graf two. The quick brown fox jumped over the lazy dog’s
385 <title>Nested</title>
386 <itemizedlist spacing="compact">
391 <itemizedlist spacing="compact">
396 <itemizedlist spacing="compact">
410 <orderedlist numeration="arabic" spacing="compact">
420 <itemizedlist spacing="compact">
445 Same thing but with paragraphs:
447 <orderedlist numeration="arabic">
457 <itemizedlist spacing="compact">
482 <sect2 id="tabs-and-spaces">
483 <title>Tabs and spaces</title>
487 this is a list item indented with tabs
492 this is a list item indented with spaces
497 this is an example list item indented with tabs
502 this is an example list item indented with spaces
509 <sect2 id="fancy-list-markers">
510 <title>Fancy list markers</title>
511 <orderedlist numeration="arabic">
512 <listitem override="2">
524 <orderedlist numeration="lowerroman" spacing="compact">
525 <listitem override="4">
527 sublist with roman numerals, starting with 4
534 <orderedlist numeration="upperalpha" spacing="compact">
553 <orderedlist numeration="upperalpha" spacing="compact">
558 <orderedlist numeration="upperroman" spacing="compact">
563 <orderedlist numeration="arabic" spacing="compact">
564 <listitem override="6">
568 <orderedlist numeration="loweralpha" spacing="compact">
569 <listitem override="3">
571 Lower alpha with paren
584 <orderedlist spacing="compact">
594 <orderedlist spacing="compact">
604 Should not be a list item:
614<sect1 id="definition-lists">
615 <title>Definition Lists</title>
619 <variablelist spacing="compact">
654 <variablelist spacing="compact">
722 Multiple blocks with italics:
727 <emphasis>apple</emphasis>
734 contains seeds, crisp, pleasant to taste
740 <emphasis>orange</emphasis>
758 Multiple definitions, tight:
760 <variablelist spacing="compact">
789 Multiple definitions, loose:
820 Blank line after term, indented marker, alternate markers:
844 <orderedlist numeration="arabic" spacing="compact">
860<sect1 id="html-blocks">
861 <title>HTML Blocks</title>
863 Simple block on one line:
869 And nested without indentation:
878 Interpreted markdown in a table:
883 This is <emphasis>emphasized</emphasis>
886 And this is <emphasis role="strong">strong</emphasis>
890 <script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
892 Here’s a simple block:
898 This should be a code block, though:
909<div>foo</div>
918 This should just be an HTML comment:
929 This is another comment.
935<!-- Comment -->
938 Just plain comment, with trailing spaces on the line:
956 <hr class="foo" id="bar" />
957 <hr class="foo" id="bar" />
958 <hr class="foo" id="bar">
960<sect1 id="inline-markup">
961 <title>Inline Markup</title>
963 This is <emphasis>emphasized</emphasis>, and so <emphasis>is
967 This is <emphasis role="strong">strong</emphasis>, and so
968 <emphasis role="strong">is this</emphasis>.
971 An <emphasis><ulink url="/url">emphasized link</ulink></emphasis>.
974 <emphasis role="strong"><emphasis>This is strong and
975 em.</emphasis></emphasis>
978 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
981 <emphasis role="strong"><emphasis>This is strong and
982 em.</emphasis></emphasis>
985 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
988 This is code: <literal>></literal>, <literal>$</literal>,
989 <literal>\</literal>, <literal>\$</literal>,
990 <literal><html></literal>.
993 <emphasis role="strikethrough">This is
994 <emphasis>strikeout</emphasis>.</emphasis>
997 Superscripts: a<superscript>bc</superscript>d
998 a<superscript><emphasis>hello</emphasis></superscript>
999 a<superscript>hello there</superscript>.
1002 Subscripts: H<subscript>2</subscript>O, H<subscript>23</subscript>O,
1003 H<subscript>many of them</subscript>O.
1006 These should not be superscripts or subscripts, because of the unescaped
1007 spaces: a^b c^d, a~b c~d.
1010<sect1 id="smart-quotes-ellipses-dashes">
1011 <title>Smart quotes, ellipses, dashes</title>
1013 <quote>Hello,</quote> said the spider. <quote><quote>Shelob</quote> is my
1017 <quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are letters.
1020 <quote>Oak,</quote> <quote>elm,</quote> and <quote>beech</quote> are names
1021 of trees. So is <quote>pine.</quote>
1024 <quote>He said, <quote>I want to go.</quote></quote> Were you alive in the
1028 Here is some quoted <quote><literal>code</literal></quote> and a
1029 <quote><ulink url="http://example.com/?foo=1&bar=2">quoted
1030 link</ulink></quote>.
1033 Some dashes: one—two — three—four — five.
1036 Dashes between numbers: 5–7, 255–66, 1987–1999.
1043 <title>LaTeX</title>
1044 <itemizedlist spacing="compact">
1056 <emphasis>x</emphasis> ∈ <emphasis>y</emphasis>
1061 <emphasis>α</emphasis> ∧ <emphasis>ω</emphasis>
1071 <emphasis>p</emphasis>-Tree
1076 Here’s some display math:
1077 $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
1082 Here’s one that has a line break in it:
1083 <emphasis>α</emphasis> + <emphasis>ω</emphasis> × <emphasis>x</emphasis><superscript>2</superscript>.
1088 These shouldn’t be math:
1090 <itemizedlist spacing="compact">
1093 To get the famous equation, write <literal>$e = mc^2$</literal>.
1098 $22,000 is a <emphasis>lot</emphasis> of money. So is $34,000. (It
1099 worked if <quote>lot</quote> is emphasized.)
1104 Shoes ($20) and socks ($5).
1109 Escaped <literal>$</literal>: $73 <emphasis>this should be
1110 emphasized</emphasis> 23$.
1115 Here’s a LaTeX table:
1118<sect1 id="special-characters">
1119 <title>Special Characters</title>
1121 Here is some unicode:
1123 <itemizedlist spacing="compact">
1151 AT&T has an ampersand in their name.
1154 AT&T is another way to write it.
1215 <title>Links</title>
1216 <sect2 id="explicit">
1217 <title>Explicit</title>
1219 Just a <ulink url="/url/">URL</ulink>.
1222 <ulink url="/url/">URL and title</ulink>.
1225 <ulink url="/url/">URL and title</ulink>.
1228 <ulink url="/url/">URL and title</ulink>.
1231 <ulink url="/url/">URL and title</ulink>
1234 <ulink url="/url/">URL and title</ulink>
1237 <ulink url="/url/with_underscore">with_underscore</ulink>
1240 Email link (<email>nobody@nowhere.net</email>)
1243 <ulink url="">Empty</ulink>.
1246 <sect2 id="reference">
1247 <title>Reference</title>
1249 Foo <ulink url="/url/">bar</ulink>.
1252 With <ulink url="/url/">embedded [brackets]</ulink>.
1255 <ulink url="/url/">b</ulink> by itself should be a link.
1258 Indented <ulink url="/url">once</ulink>.
1261 Indented <ulink url="/url">twice</ulink>.
1264 Indented <ulink url="/url">thrice</ulink>.
1267 This should [not][] be a link.
1273 Foo <ulink url="/url/">bar</ulink>.
1276 Foo <ulink url="/url/">biz</ulink>.
1279 <sect2 id="with-ampersands">
1280 <title>With ampersands</title>
1282 Here’s a <ulink url="http://example.com/?foo=1&bar=2">link with an
1283 ampersand in the URL</ulink>.
1286 Here’s a link with an amersand in the link text:
1287 <ulink url="http://att.com/">AT&T</ulink>.
1290 Here’s an <ulink url="/script?foo=1&bar=2">inline link</ulink>.
1293 Here’s an <ulink url="/script?foo=1&bar=2">inline link in pointy
1297 <sect2 id="autolinks">
1298 <title>Autolinks</title>
1301 <ulink url="http://example.com/?foo=1&bar=2" role="uri">http://example.com/?foo=1&bar=2</ulink>
1303 <itemizedlist spacing="compact">
1311 <ulink url="http://example.com/" role="uri">http://example.com/</ulink>
1321 An e-mail address: <email>nobody@nowhere.net</email>
1326 <ulink url="http://example.com/" role="uri">http://example.com/</ulink>
1330 Auto-links should not occur here:
1331 <literal><http://example.com/></literal>
1334or here: <http://example.com/>
1339 <title>Images</title>
1341 From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):
1344 <title>lalune</title>
1347 <imagedata fileref="lalune.jpg" />
1349 <textobject><phrase>lalune</phrase></textobject>
1353 Here is a movie <inlinemediaobject>
1355 <imagedata fileref="movie.jpg" />
1357 </inlinemediaobject> icon.
1360<sect1 id="footnotes">
1361 <title>Footnotes</title>
1363 Here is a footnote reference,<footnote>
1365 Here is the footnote. It can go anywhere after the footnote reference.
1366 It need not be placed at the end of the document.
1368 </footnote> and another.<footnote>
1370 Here’s the long note. This one contains multiple blocks.
1373 Subsequent blocks are indented to show that they belong to the
1374 footnote (as with list items).
1380 If you want, you can indent every line, but you can also be lazy and
1381 just indent the first line of each block.
1383 </footnote> This should <emphasis>not</emphasis> be a footnote reference,
1384 because it contains a space.[^my note] Here is an inline note.<footnote>
1386 This is <emphasis>easier</emphasis> to type. Inline notes may contain
1387 <ulink url="http://google.com">links</ulink> and <literal>]</literal>
1388 verbatim characters, as well as [bracketed text].
1394 Notes can go in quotes.<footnote>
1401 <orderedlist numeration="arabic" spacing="compact">
1404 And in list items.<footnote>
1413 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