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>
8 <firstname>John</firstname>
9 <surname>MacFarlane</surname>
12 <firstname></firstname>
13 <surname>Anonymous</surname>
15 <date>July 17, 2006</date>
18 This is a set of tests for pandoc. Most of them are adapted from John
19 Gruber’s markdown test suite.
22 <title>Headers</title>
23 <sect2 id="level-2-with-an-embedded-link">
24 <title>Level 2 with an <ulink url="/url">embedded link</ulink></title>
25 <sect3 id="level-3-with-emphasis">
26 <title>Level 3 with <emphasis>emphasis</emphasis></title>
28 <title>Level 4</title>
30 <title>Level 5</title>
39 <title>Level 1</title>
40 <sect2 id="level-2-with-emphasis">
41 <title>Level 2 with <emphasis>emphasis</emphasis></title>
43 <title>Level 3</title>
50 <title>Level 2</title>
56<sect1 id="paragraphs">
57 <title>Paragraphs</title>
59 Here’s a regular paragraph.
62 In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
63 item. Because a hard-wrapped line in the middle of a paragraph looked like
67 Here’s one with a bullet. * criminey.
70 There should be a hard line break<literallayout></literallayout>here.
73<sect1 id="block-quotes">
74 <title>Block Quotes</title>
80 This is a block quote. It is pretty short.
85 Code in a block quote:
89 print "working";
95 <orderedlist numeration="arabic">
122 This should not be a block quote: 2 > 1.
125 And a following paragraph.
128<sect1 id="code-blocks">
129 <title>Code Blocks</title>
134---- (should be four hyphens)
137 print "working";
140this code block is indented by one tab
146 this code block is indented by two tabs
148These should not be escaped: \$ \\ \> \[ \{
153 <sect2 id="unordered">
154 <title>Unordered</title>
277 <title>Ordered</title>
281 <orderedlist numeration="arabic">
301 <orderedlist numeration="arabic">
321 <orderedlist numeration="arabic">
341 <orderedlist numeration="arabic">
361 <orderedlist numeration="arabic">
367 Item 1. graf two. The quick brown fox jumped over the lazy dog’s
384 <title>Nested</title>
409 <orderedlist numeration="arabic">
444 Same thing but with paragraphs:
446 <orderedlist numeration="arabic">
481 <sect2 id="tabs-and-spaces">
482 <title>Tabs and spaces</title>
486 this is a list item indented with tabs
491 this is a list item indented with spaces
496 this is an example list item indented with tabs
501 this is an example list item indented with spaces
508 <sect2 id="fancy-list-markers">
509 <title>Fancy list markers</title>
510 <orderedlist numeration="arabic">
511 <listitem override="2">
523 <orderedlist numeration="lowerroman">
524 <listitem override="4">
526 sublist with roman numerals, starting with 4
533 <orderedlist numeration="upperalpha">
552 <orderedlist numeration="upperalpha">
557 <orderedlist numeration="upperroman">
562 <orderedlist numeration="arabic">
563 <listitem override="6">
567 <orderedlist numeration="loweralpha">
568 <listitem override="3">
570 Lower alpha with paren
603 Should not be a list item:
613<sect1 id="definition-lists">
614 <title>Definition Lists</title>
721 Multiple blocks with italics:
726 <emphasis>apple</emphasis>
733 contains seeds, crisp, pleasant to taste
739 <emphasis>orange</emphasis>
757 Multiple definitions, tight:
788 Multiple definitions, loose:
819 Blank line after term, indented marker, alternate markers:
843 <orderedlist numeration="arabic">
859<sect1 id="html-blocks">
860 <title>HTML Blocks</title>
862 Simple block on one line:
868 And nested without indentation:
881 Interpreted markdown in a table:
886 This is <emphasis>emphasized</emphasis>
889 And this is <emphasis role="strong">strong</emphasis>
894 <script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
896 Here’s a simple block:
903 This should be a code block, though:
914<div>foo</div>
928 This should just be an HTML comment:
940 This is another comment.
946<!-- Comment -->
949 Just plain comment, with trailing spaces on the line:
973 <hr class="foo" id="bar" />
975 <hr class="foo" id="bar" />
977 <hr class="foo" id="bar">
979<sect1 id="inline-markup">
980 <title>Inline Markup</title>
982 This is <emphasis>emphasized</emphasis>, and so <emphasis>is
986 This is <emphasis role="strong">strong</emphasis>, and so
987 <emphasis role="strong">is this</emphasis>.
990 An <emphasis><ulink url="/url">emphasized link</ulink></emphasis>.
993 <emphasis role="strong"><emphasis>This is strong and
994 em.</emphasis></emphasis>
997 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
1000 <emphasis role="strong"><emphasis>This is strong and
1001 em.</emphasis></emphasis>
1004 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
1007 This is code: <literal>></literal>, <literal>$</literal>,
1008 <literal>\</literal>, <literal>\$</literal>,
1009 <literal><html></literal>.
1012 <emphasis role="strikethrough">This is
1013 <emphasis>strikeout</emphasis>.</emphasis>
1016 Superscripts: a<superscript>bc</superscript>d
1017 a<superscript><emphasis>hello</emphasis></superscript>
1018 a<superscript>hello there</superscript>.
1021 Subscripts: H<subscript>2</subscript>O, H<subscript>23</subscript>O,
1022 H<subscript>many of them</subscript>O.
1025 These should not be superscripts or subscripts, because of the unescaped
1026 spaces: a^b c^d, a~b c~d.
1029<sect1 id="smart-quotes-ellipses-dashes">
1030 <title>Smart quotes, ellipses, dashes</title>
1032 <quote>Hello,</quote> said the spider. <quote><quote>Shelob</quote> is my
1036 <quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are letters.
1039 <quote>Oak,</quote> <quote>elm,</quote> and <quote>beech</quote> are names
1040 of trees. So is <quote>pine.</quote>
1043 <quote>He said, <quote>I want to go.</quote></quote> Were you alive in the
1047 Here is some quoted <quote><literal>code</literal></quote> and a
1048 <quote><ulink url="http://example.com/?foo=1&bar=2">quoted
1049 link</ulink></quote>.
1052 Some dashes: one—two — three—four — five.
1055 Dashes between numbers: 5–7, 255–66, 1987–1999.
1062 <title>LaTeX</title>
1075 <emphasis>x</emphasis> ∈ <emphasis>y</emphasis>
1080 <emphasis>α</emphasis> ∧ <emphasis>ω</emphasis>
1090 <emphasis>p</emphasis>-Tree
1095 Here’s some display math:
1096 $\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$
1101 Here’s one that has a line break in it:
1102 <emphasis>α</emphasis> + <emphasis>ω</emphasis> × <emphasis>x</emphasis><superscript>2</superscript>.
1107 These shouldn’t be math:
1112 To get the famous equation, write <literal>$e = mc^2$</literal>.
1117 $22,000 is a <emphasis>lot</emphasis> of money. So is $34,000. (It
1118 worked if <quote>lot</quote> is emphasized.)
1123 Shoes ($20) and socks ($5).
1128 Escaped <literal>$</literal>: $73 <emphasis>this should be
1129 emphasized</emphasis> 23$.
1134 Here’s a LaTeX table:
1137<sect1 id="special-characters">
1138 <title>Special Characters</title>
1140 Here is some unicode:
1170 AT&T has an ampersand in their name.
1173 AT&T is another way to write it.
1234 <title>Links</title>
1235 <sect2 id="explicit">
1236 <title>Explicit</title>
1238 Just a <ulink url="/url/">URL</ulink>.
1241 <ulink url="/url/">URL and title</ulink>.
1244 <ulink url="/url/">URL and title</ulink>.
1247 <ulink url="/url/">URL and title</ulink>.
1250 <ulink url="/url/">URL and title</ulink>
1253 <ulink url="/url/">URL and title</ulink>
1256 <ulink url="/url/with_underscore">with_underscore</ulink>
1259 Email link (<email>nobody@nowhere.net</email>)
1262 <ulink url="">Empty</ulink>.
1265 <sect2 id="reference">
1266 <title>Reference</title>
1268 Foo <ulink url="/url/">bar</ulink>.
1271 Foo <ulink url="/url/">bar</ulink>.
1274 Foo <ulink url="/url/">bar</ulink>.
1277 With <ulink url="/url/">embedded [brackets]</ulink>.
1280 <ulink url="/url/">b</ulink> by itself should be a link.
1283 Indented <ulink url="/url">once</ulink>.
1286 Indented <ulink url="/url">twice</ulink>.
1289 Indented <ulink url="/url">thrice</ulink>.
1292 This should [not][] be a link.
1298 Foo <ulink url="/url/">bar</ulink>.
1301 Foo <ulink url="/url/">biz</ulink>.
1304 <sect2 id="with-ampersands">
1305 <title>With ampersands</title>
1307 Here’s a <ulink url="http://example.com/?foo=1&bar=2">link with an
1308 ampersand in the URL</ulink>.
1311 Here’s a link with an amersand in the link text:
1312 <ulink url="http://att.com/">AT&T</ulink>.
1315 Here’s an <ulink url="/script?foo=1&bar=2">inline link</ulink>.
1318 Here’s an <ulink url="/script?foo=1&bar=2">inline link in pointy
1322 <sect2 id="autolinks">
1323 <title>Autolinks</title>
1326 <ulink url="http://example.com/?foo=1&bar=2"><literal>http://example.com/?foo=1&bar=2</literal></ulink>
1336 <ulink url="http://example.com/"><literal>http://example.com/</literal></ulink>
1346 An e-mail address: <email>nobody@nowhere.net</email>
1351 <ulink url="http://example.com/"><literal>http://example.com/</literal></ulink>
1355 Auto-links should not occur here:
1356 <literal><http://example.com/></literal>
1359or here: <http://example.com/>
1364 <title>Images</title>
1366 From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):
1369 <title>lalune</title>
1372 <imagedata fileref="lalune.jpg" />
1374 <textobject><phrase>lalune</phrase></textobject>
1378 Here is a movie <inlinemediaobject>
1380 <imagedata fileref="movie.jpg" />
1382 </inlinemediaobject> icon.
1385<sect1 id="footnotes">
1386 <title>Footnotes</title>
1388 Here is a footnote reference,<footnote>
1390 Here is the footnote. It can go anywhere after the footnote reference.
1391 It need not be placed at the end of the document.
1393 </footnote> and another.<footnote>
1395 Here’s the long note. This one contains multiple blocks.
1398 Subsequent blocks are indented to show that they belong to the
1399 footnote (as with list items).
1405 If you want, you can indent every line, but you can also be lazy and
1406 just indent the first line of each block.
1408 </footnote> This should <emphasis>not</emphasis> be a footnote reference,
1409 because it contains a space.[^my note] Here is an inline note.<footnote>
1411 This is <emphasis>easier</emphasis> to type. Inline notes may contain
1412 <ulink url="http://google.com">links</ulink> and <literal>]</literal>
1413 verbatim characters, as well as [bracketed text].
1419 Notes can go in quotes.<footnote>
1426 <orderedlist numeration="arabic">
1429 And in list items.<footnote>
1438 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