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">
7 <title>Pandoc Test Suite</title>
9 <firstname>John</firstname>
10 <surname>MacFarlane</surname>
13 <firstname></firstname>
14 <surname>Anonymous</surname>
16 <date>July 17, 2006</date>
19 This is a set of tests for pandoc. Most of them are adapted from
20 John Gruber's markdown test suite.
23 <title>Headers</title>
25 <title>Level 2 with an
26 <ulink url="/url">embedded link</ulink></title>
28 <title>Level 3 with <emphasis>emphasis</emphasis></title>
30 <title>Level 4</title>
32 <title>Level 5</title>
41 <title>Level 1</title>
43 <title>Level 2 with <emphasis>emphasis</emphasis></title>
45 <title>Level 3</title>
52 <title>Level 2</title>
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
65 list item. Because a hard-wrapped line in the middle of a paragraph
66 looked like a list item.
69 Here's one with a bullet. * criminey.
72 There should be a hard line
73 break<literallayout></literallayout>here.
77 <title>Block Quotes</title>
83 This is a block quote. It is pretty short.
88 Code in a block quote:
92 print "working";
125 This should not be a block quote: 2 > 1.
136 print "working";
168 And a following paragraph.
172 <title>Code Blocks</title>
177---- (should be four hyphens)
180 print "working";
183this code block is indented by one tab
189 this code block is indented by two tabs
191These should not be escaped: \$ \\ \> \[ \{
197 <title>Unordered</title>
320 <title>Ordered</title>
410 Item 1. graf two. The quick brown fox jumped over the lazy dog's
427 <title>Nested</title>
487 Same thing but with paragraphs:
525 <title>Tabs and spaces</title>
529 this is a list item indented with tabs
534 this is a list item indented with spaces
539 this is an example list item indented with tabs
544 this is an example list item indented with spaces
553 <title>Definition Lists</title>
660 Multiple blocks with italics:
665 <emphasis>apple</emphasis>
672 contains seeds, crisp, pleasant to taste
678 <emphasis>orange</emphasis>
697 <title>Inline Markup</title>
699 This is <emphasis>emphasized</emphasis>, and so
700 <emphasis>is this</emphasis>.
703 This is <emphasis role="strong">strong</emphasis>, and so
704 <emphasis role="strong">is this</emphasis>.
707 An <emphasis><ulink url="/url">emphasized link</ulink></emphasis>.
710 <emphasis role="strong"><emphasis>This is strong and em.</emphasis></emphasis>
713 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis>
717 <emphasis role="strong"><emphasis>This is strong and em.</emphasis></emphasis>
720 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis>
724 This is code: <literal>></literal>, <literal>$</literal>,
725 <literal>\</literal>, <literal>\$</literal>,
726 <literal><html></literal>.
730 <title>Smart quotes, ellipses, dashes</title>
732 <quote>Hello,</quote> said the spider.
733 <quote><quote>Shelob</quote> is my name.</quote>
736 <quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are
740 <quote>Oak,</quote> <quote>elm,</quote> and <quote>beech</quote>
741 are names of trees. So is <quote>pine.</quote>
744 <quote>He said, <quote>I want to go.</quote></quote> Were you alive
748 Here is some quoted <quote><literal>code</literal></quote> and a
749 <quote><ulink url="http://example.com/?foo=1&bar=2">quoted link</ulink></quote>.
752 Some dashes: one—two—three—four—five.
755 Dashes between numbers: 5–7, 255–66, 1987–1999.
758 Ellipses…and…and….
766 <literal>\cite[22-23]{smith.1899}</literal>
771 <literal>\doublespacing</literal>
776 <literal>$2+2=4$</literal>
781 <literal>$x \in y$</literal>
786 <literal>$\alpha \wedge \omega$</literal>
791 <literal>$223$</literal>
796 <literal>$p$</literal>-Tree
801 <literal>$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</literal>
806 Here's one that has a line break in it:
807 <literal>$\alpha + \omega \times x^2$</literal>.
812 These shouldn't be math:
817 To get the famous equation, write <literal>$e = mc^2$</literal>.
822 $22,000 is a <emphasis>lot</emphasis> of money. So is $34,000. (It
823 worked if <quote>lot</quote> is emphasized.)
828 Escaped <literal>$</literal>: $73
829 <emphasis>this should be emphasized</emphasis> 23$.
834 Here's a LaTeX table:
837 <literal>\begin{tabular}{|l|l|}\hline
838Animal & Number \\ \hline
841\end{tabular}</literal>
845 <title>Special Characters</title>
847 Here is some unicode:
877 AT&T has an ampersand in their name.
880 AT&T is another way to write it.
943 <title>Explicit</title>
945 Just a <ulink url="/url/">URL</ulink>.
948 <ulink url="/url/">URL and title</ulink>.
951 <ulink url="/url/">URL and title</ulink>.
954 <ulink url="/url/">URL and title</ulink>.
957 <ulink url="/url/">URL and title</ulink>
960 <ulink url="/url/">URL and title</ulink>
963 <ulink url="/url/with_underscore">with_underscore</ulink>
966 <email>nobody@nowhere.net</email>
969 <ulink url="">Empty</ulink>.
973 <title>Reference</title>
975 Foo <ulink url="/url/">bar</ulink>.
978 Foo <ulink url="/url/">bar</ulink>.
981 Foo <ulink url="/url/">bar</ulink>.
984 With <ulink url="/url/">embedded [brackets]</ulink>.
987 <ulink url="/url/">b</ulink> by itself should be a link.
990 Indented <ulink url="/url">once</ulink>.
993 Indented <ulink url="/url">twice</ulink>.
996 Indented <ulink url="/url">thrice</ulink>.
999 This should [not][] be a link.
1005 Foo <ulink url="/url/">bar</ulink>.
1008 Foo <ulink url="/url/">biz</ulink>.
1012 <title>With ampersands</title>
1015 <ulink url="http://example.com/?foo=1&bar=2">link with an ampersand in the URL</ulink>.
1018 Here's a link with an amersand in the link text:
1019 <ulink url="http://att.com/">AT&T</ulink>.
1022 Here's an <ulink url="/script?foo=1&bar=2">inline link</ulink>.
1026 <ulink url="/script?foo=1&bar=2">inline link in pointy braces</ulink>.
1030 <title>Autolinks</title>
1033 <ulink url="http://example.com/?foo=1&bar=2">http://example.com/?foo=1&bar=2</ulink>
1043 <ulink url="http://example.com/">http://example.com/</ulink>
1053 An e-mail address: <email>nobody@nowhere.net</email>
1058 <ulink url="http://example.com/">http://example.com/</ulink>
1062 Auto-links should not occur here:
1063 <literal><http://example.com/></literal>
1066or here: <http://example.com/>
1071 <title>Images</title>
1073 From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):
1083 <imagedata fileref="lalune.jpg" />
1085 </inlinemediaobject>
1091 <imagedata fileref="movie.jpg" />
1093 </inlinemediaobject>
1098 <title>Footnotes</title>
1101 reference,<footnote>
1103 Here is the footnote. It can go anywhere after the footnote
1104 reference. It need not be placed at the end of the document.
1110 Here's the long note. This one contains multiple blocks.
1113 Subsequent blocks are indented to show that they belong to the
1114 footnote (as with list items).
1120 If you want, you can indent every line, but you can also be lazy
1121 and just indent the first line of each block.
1124 This should <emphasis>not</emphasis> be a footnote reference,
1125 because it contains a space.[^my note] Here is an inline
1128 This is <emphasis>easier</emphasis> to type. Inline notes may
1129 contain <ulink url="http://google.com">links</ulink> and
1130 <literal>]</literal> verbatim characters, as well as [bracketed
1158 This paragraph should not be part of the note, as it is not
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