1<?xml version="1.0" encoding="utf-8" ?>
3<article xmlns="http://docbook.org/ns/docbook" version="5.0">
5 <title>Pandoc Test Suite</title>
8 <firstname>John</firstname>
9 <surname>MacFarlane</surname>
12 <firstname></firstname>
13 <surname>Anonymous</surname>
16 <date>July 17, 2006</date>
19 This is a set of tests for pandoc. Most of them are adapted from John
20 Gruber’s markdown test suite.
23 <title>Headers</title>
24 <section id="level-2-with-an-embedded-link">
25 <title>Level 2 with an <link xlink:href="/url">embedded
27 <section id="level-3-with-emphasis">
28 <title>Level 3 with <emphasis>emphasis</emphasis></title>
29 <section id="level-4">
30 <title>Level 4</title>
31 <section id="level-5">
32 <title>Level 5</title>
41 <title>Level 1</title>
42 <section id="level-2-with-emphasis">
43 <title>Level 2 with <emphasis>emphasis</emphasis></title>
44 <section id="level-3">
45 <title>Level 3</title>
51 <section id="level-2">
52 <title>Level 2</title>
58<section 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<section 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<section 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 <section id="unordered">
155 <title>Unordered</title>
159 <itemizedlist spacing="compact">
199 <itemizedlist spacing="compact">
239 <itemizedlist spacing="compact">
277 <section id="ordered">
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
384 <section id="nested">
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 <section 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 <section 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<section 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<section 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:
880 This is <emphasis>emphasized</emphasis>
881 And this is <emphasis role="strong">strong</emphasis>
883 Here’s a simple block:
889 This should be a code block, though:
900<div>foo</div>
909 This should just be an HTML comment:
918<!-- Comment -->
921 Just plain comment, with trailing spaces on the line:
933<section id="inline-markup">
934 <title>Inline Markup</title>
936 This is <emphasis>emphasized</emphasis>, and so <emphasis>is
940 This is <emphasis role="strong">strong</emphasis>, and so
941 <emphasis role="strong">is this</emphasis>.
944 An <emphasis><link xlink:href="/url">emphasized link</link></emphasis>.
947 <emphasis role="strong"><emphasis>This is strong and
948 em.</emphasis></emphasis>
951 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
954 <emphasis role="strong"><emphasis>This is strong and
955 em.</emphasis></emphasis>
958 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
961 This is code: <literal>></literal>, <literal>$</literal>,
962 <literal>\</literal>, <literal>\$</literal>,
963 <literal><html></literal>.
966 <emphasis role="strikethrough">This is
967 <emphasis>strikeout</emphasis>.</emphasis>
970 Superscripts: a<superscript>bc</superscript>d
971 a<superscript><emphasis>hello</emphasis></superscript>
972 a<superscript>hello there</superscript>.
975 Subscripts: H<subscript>2</subscript>O, H<subscript>23</subscript>O,
976 H<subscript>many of them</subscript>O.
979 These should not be superscripts or subscripts, because of the unescaped
980 spaces: a^b c^d, a~b c~d.
983<section id="smart-quotes-ellipses-dashes">
984 <title>Smart quotes, ellipses, dashes</title>
986 <quote>Hello,</quote> said the spider. <quote><quote>Shelob</quote> is my
990 <quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are letters.
993 <quote>Oak,</quote> <quote>elm,</quote> and <quote>beech</quote> are names
994 of trees. So is <quote>pine.</quote>
997 <quote>He said, <quote>I want to go.</quote></quote> Were you alive in the
1001 Here is some quoted <quote><literal>code</literal></quote> and a
1002 <quote><link xlink:href="http://example.com/?foo=1&bar=2">quoted
1003 link</link></quote>.
1006 Some dashes: one—two — three—four — five.
1009 Dashes between numbers: 5–7, 255–66, 1987–1999.
1016 <title>LaTeX</title>
1017 <itemizedlist spacing="compact">
1029 <emphasis>x</emphasis> ∈ <emphasis>y</emphasis>
1034 <emphasis>α</emphasis> ∧ <emphasis>ω</emphasis>
1044 <emphasis>p</emphasis>-Tree
1049 Here’s some display math:
1050 $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
1055 Here’s one that has a line break in it:
1056 <emphasis>α</emphasis> + <emphasis>ω</emphasis> × <emphasis>x</emphasis><superscript>2</superscript>.
1061 These shouldn’t be math:
1063 <itemizedlist spacing="compact">
1066 To get the famous equation, write <literal>$e = mc^2$</literal>.
1071 $22,000 is a <emphasis>lot</emphasis> of money. So is $34,000. (It
1072 worked if <quote>lot</quote> is emphasized.)
1077 Shoes ($20) and socks ($5).
1082 Escaped <literal>$</literal>: $73 <emphasis>this should be
1083 emphasized</emphasis> 23$.
1088 Here’s a LaTeX table:
1091<section id="special-characters">
1092 <title>Special Characters</title>
1094 Here is some unicode:
1096 <itemizedlist spacing="compact">
1124 AT&T has an ampersand in their name.
1127 AT&T is another way to write it.
1188 <title>Links</title>
1189 <section id="explicit">
1190 <title>Explicit</title>
1192 Just a <link xlink:href="/url/">URL</link>.
1195 <link xlink:href="/url/">URL and title</link>.
1198 <link xlink:href="/url/">URL and title</link>.
1201 <link xlink:href="/url/">URL and title</link>.
1204 <link xlink:href="/url/">URL and title</link>
1207 <link xlink:href="/url/">URL and title</link>
1210 <link xlink:href="/url/with_underscore">with_underscore</link>
1213 Email link (<email>nobody@nowhere.net</email>)
1216 <link xlink:href="">Empty</link>.
1219 <section id="reference">
1220 <title>Reference</title>
1222 Foo <link xlink:href="/url/">bar</link>.
1225 Foo <link xlink:href="/url/">bar</link>.
1228 Foo <link xlink:href="/url/">bar</link>.
1231 With <link xlink:href="/url/">embedded [brackets]</link>.
1234 <link xlink:href="/url/">b</link> by itself should be a link.
1237 Indented <link xlink:href="/url">once</link>.
1240 Indented <link xlink:href="/url">twice</link>.
1243 Indented <link xlink:href="/url">thrice</link>.
1246 This should [not][] be a link.
1252 Foo <link xlink:href="/url/">bar</link>.
1255 Foo <link xlink:href="/url/">biz</link>.
1258 <section id="with-ampersands">
1259 <title>With ampersands</title>
1261 Here’s a <link xlink:href="http://example.com/?foo=1&bar=2">link
1262 with an ampersand in the URL</link>.
1265 Here’s a link with an amersand in the link text:
1266 <link xlink:href="http://att.com/">AT&T</link>.
1269 Here’s an <link xlink:href="/script?foo=1&bar=2">inline link</link>.
1272 Here’s an <link xlink:href="/script?foo=1&bar=2">inline link in
1273 pointy braces</link>.
1276 <section id="autolinks">
1277 <title>Autolinks</title>
1280 <link xlink:href="http://example.com/?foo=1&bar=2">http://example.com/?foo=1&bar=2</link>
1282 <itemizedlist spacing="compact">
1290 <link xlink:href="http://example.com/">http://example.com/</link>
1300 An e-mail address: <email>nobody@nowhere.net</email>
1305 <link xlink:href="http://example.com/">http://example.com/</link>
1309 Auto-links should not occur here:
1310 <literal><http://example.com/></literal>
1313or here: <http://example.com/>
1317<section id="images">
1318 <title>Images</title>
1320 From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):
1323 <title>lalune</title>
1326 <imagedata fileref="lalune.jpg" />
1328 <textobject><phrase>lalune</phrase></textobject>
1332 Here is a movie <inlinemediaobject>
1334 <imagedata fileref="movie.jpg" />
1336 </inlinemediaobject> icon.
1339<section id="footnotes">
1340 <title>Footnotes</title>
1342 Here is a footnote reference,<footnote>
1344 Here is the footnote. It can go anywhere after the footnote reference.
1345 It need not be placed at the end of the document.
1347 </footnote> and another.<footnote>
1349 Here’s the long note. This one contains multiple blocks.
1352 Subsequent blocks are indented to show that they belong to the
1353 footnote (as with list items).
1359 If you want, you can indent every line, but you can also be lazy and
1360 just indent the first line of each block.
1362 </footnote> This should <emphasis>not</emphasis> be a footnote reference,
1363 because it contains a space.[^my note] Here is an inline note.<footnote>
1365 This is <emphasis>easier</emphasis> to type. Inline notes may contain
1366 <link xlink:href="http://google.com">links</link> and
1367 <literal>]</literal> verbatim characters, as well as [bracketed text].
1373 Notes can go in quotes.<footnote>
1380 <orderedlist numeration="arabic" spacing="compact">
1383 And in list items.<footnote>
1392 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