1<?xml version="1.0" encoding="utf-8"?>
2<TEI xmlns="http://www.tei-c.org/ns/1.0">
6 <title>Pandoc Test Suite</title>
7 <author>John MacFarlane</author>
8 <author>Anonymous</author>
14 <p>Produced by pandoc.</p>
20<p>This is a set of tests for pandoc. Most of them are adapted from John
21Gruber’s markdown test suite.</p>
22<milestone unit="undefined" type="separator" rendition="line" />
23<div type="level1" xml:id="headers">
25 <div type="level2" xml:id="level-2-with-an-embedded-link">
26 <head>Level 2 with an <ref target="/url">embedded link</ref></head>
27 <div type="level3" xml:id="level-3-with-emphasis">
28 <head>Level 3 with <hi rendition="simple:italic">emphasis</hi></head>
29 <div type="level4" xml:id="level-4">
31 <div type="level5" xml:id="level-5">
39<div type="level1" xml:id="level-1">
41 <div type="level2" xml:id="level-2-with-emphasis">
42 <head>Level 2 with <hi rendition="simple:italic">emphasis</hi></head>
43 <div type="level3" xml:id="level-3">
45 <p>with no blank line</p>
48 <div type="level2" xml:id="level-2">
50 <p>with no blank line</p>
51 <milestone unit="undefined" type="separator" rendition="line" />
54<div type="level1" xml:id="paragraphs">
55 <head>Paragraphs</head>
56 <p>Here’s a regular paragraph.</p>
57 <p>In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
58 item. Because a hard-wrapped line in the middle of a paragraph looked like a
60 <p>Here’s one with a bullet. * criminey.</p>
61 <p>There should be a hard line break<lb />here.</p>
62 <milestone unit="undefined" type="separator" rendition="line" />
64<div type="level1" xml:id="block-quotes">
65 <head>Block Quotes</head>
68 <p>This is a block quote. It is pretty short.</p>
71 <p>Code in a block quote:</p>
72 <ab type='codeblock '>
74 print "working";
78 <list type="ordered:arabic">
86 <p>Nested block quotes:</p>
94 <p>This should not be a block quote: 2 > 1.</p>
95 <p>And a following paragraph.</p>
96 <milestone unit="undefined" type="separator" rendition="line" />
98<div type="level1" xml:id="code-blocks">
99 <head>Code Blocks</head>
101 <ab type='codeblock '>
102---- (should be four hyphens)
105 print "working";
108this code block is indented by one tab
111 <ab type='codeblock '>
112 this code block is indented by two tabs
114These should not be escaped: \$ \\ \> \[ \{
116 <milestone unit="undefined" type="separator" rendition="line" />
118<div type="level1" xml:id="lists">
120 <div type="level2" xml:id="unordered">
121 <head>Unordered</head>
122 <p>Asterisks tight:</p>
123 <list type="unordered">
134 <p>Asterisks loose:</p>
135 <list type="unordered">
147 <list type="unordered">
159 <list type="unordered">
170 <p>Minuses tight:</p>
171 <list type="unordered">
182 <p>Minuses loose:</p>
183 <list type="unordered">
195 <div type="level2" xml:id="ordered">
198 <list type="ordered:arabic">
210 <list type="ordered:arabic">
221 <p>Loose using tabs:</p>
222 <list type="ordered:arabic">
233 <p>and using spaces:</p>
234 <list type="ordered:arabic">
245 <p>Multiple paragraphs:</p>
246 <list type="ordered:arabic">
248 <p>Item 1, graf one.</p>
249 <p>Item 1. graf two. The quick brown fox jumped over the lazy dog’s
260 <div type="level2" xml:id="nested">
262 <list type="unordered">
265 <list type="unordered">
268 <list type="unordered">
277 <p>Here’s another:</p>
278 <list type="ordered:arabic">
284 <list type="unordered">
300 <p>Same thing but with paragraphs:</p>
301 <list type="ordered:arabic">
307 <list type="unordered">
324 <div type="level2" xml:id="tabs-and-spaces">
325 <head>Tabs and spaces</head>
326 <list type="unordered">
328 <p>this is a list item indented with tabs</p>
331 <p>this is a list item indented with spaces</p>
332 <list type="unordered">
334 <p>this is an example list item indented with tabs</p>
337 <p>this is an example list item indented with spaces</p>
343 <div type="level2" xml:id="fancy-list-markers">
344 <head>Fancy list markers</head>
345 <list type="ordered:arabic">
351 <p>with a continuation</p>
352 <list type="ordered:lowerroman">
354 <p>sublist with roman numerals, starting with 4</p>
358 <list type="ordered:upperalpha">
371 <list type="ordered:upperalpha">
374 <list type="ordered:upperroman">
377 <list type="ordered:arabic">
379 <p>Decimal start with 6</p>
380 <list type="ordered:loweralpha">
382 <p>Lower alpha with paren</p>
391 <p>Autonumbering:</p>
405 <p>Should not be a list item:</p>
408 <milestone unit="undefined" type="separator" rendition="line" />
411<div type="level1" xml:id="definition-lists">
412 <head>Definition Lists</head>
413 <p>Tight using spaces:</p>
414 <list type="definition">
434 <p>Tight using tabs:</p>
435 <list type="definition">
456 <list type="definition">
476 <p>Multiple blocks with italics:</p>
477 <list type="definition">
479 <hi rendition="simple:italic">apple</hi>
483 <p>contains seeds, crisp, pleasant to taste</p>
486 <hi rendition="simple:italic">orange</hi>
490 <ab type='codeblock '>
494 <p>orange block quote</p>
498 <p>Multiple definitions, tight:</p>
499 <list type="definition">
515 <p>Multiple definitions, loose:</p>
516 <list type="definition">
532 <p>Blank line after term, indented marker, alternate markers:</p>
533 <list type="definition">
546 <list type="ordered:arabic">
557<div type="level1" xml:id="html-blocks">
558 <head>HTML Blocks</head>
559 <p>Simple block on one line:</p>
561 <p>And nested without indentation:</p>
564 <p>Interpreted markdown in a table:</p>
565 <p>This is <hi rendition="simple:italic">emphasized</hi></p>
566 <p>And this is <hi rendition="simple:bold">strong</hi></p>
567 <p>Here’s a simple block:</p>
569 <p>This should be a code block, though:</p>
570 <ab type='codeblock '>
575 <p>As should this:</p>
576 <ab type='codeblock '>
577<div>foo</div>
581 <p>This should just be an HTML comment:</p>
584 <ab type='codeblock '>
585<!-- Comment -->
587 <p>Just plain comment, with trailing spaces on the line:</p>
589 <ab type='codeblock '>
593 <milestone unit="undefined" type="separator" rendition="line" />
595<div type="level1" xml:id="inline-markup">
596 <head>Inline Markup</head>
597 <p>This is <hi rendition="simple:italic">emphasized</hi>, and so
598 <hi rendition="simple:italic">is this</hi>.</p>
599 <p>This is <hi rendition="simple:bold">strong</hi>, and so
600 <hi rendition="simple:bold">is this</hi>.</p>
601 <p>An <hi rendition="simple:italic"><ref target="/url">emphasized
603 <p><hi rendition="simple:bold"><hi rendition="simple:italic">This is strong
604 and em.</hi></hi></p>
606 <hi rendition="simple:bold"><hi rendition="simple:italic">this</hi></hi>
608 <p><hi rendition="simple:bold"><hi rendition="simple:italic">This is strong
609 and em.</hi></hi></p>
611 <hi rendition="simple:bold"><hi rendition="simple:italic">this</hi></hi>
613 <p>This is code: <seg type="code">></seg>, <seg type="code">$</seg>,
614 <seg type="code">\</seg>, <seg type="code">\$</seg>,
615 <seg type="code"><html></seg>.</p>
616 <p><hi rendition="simple:strikethrough">This is
617 <hi rendition="simple:italic">strikeout</hi>.</hi></p>
618 <p>Superscripts: a<hi rendition="simple:superscript">bc</hi>d
619 a<hi rendition="simple:superscript"><hi rendition="simple:italic">hello</hi></hi>
620 a<hi rendition="simple:superscript">hello there</hi>.</p>
621 <p>Subscripts: H<hi rendition="simple:subscript">2</hi>O,
622 H<hi rendition="simple:subscript">23</hi>O,
623 H<hi rendition="simple:subscript">many of them</hi>O.</p>
624 <p>These should not be superscripts or subscripts, because of the unescaped
625 spaces: a^b c^d, a~b c~d.</p>
626 <milestone unit="undefined" type="separator" rendition="line" />
628<div type="level1" xml:id="smart-quotes-ellipses-dashes">
629 <head>Smart quotes, ellipses, dashes</head>
630 <p><quote>Hello,</quote> said the spider. <quote><quote>Shelob</quote> is my
632 <p><quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are letters.</p>
633 <p><quote>Oak,</quote> <quote>elm,</quote> and <quote>beech</quote> are
634 names of trees. So is <quote>pine.</quote></p>
635 <p><quote>He said, <quote>I want to go.</quote></quote> Were you alive in
637 <p>Here is some quoted <quote><seg type="code">code</seg></quote> and a
638 <quote><ref target="http://example.com/?foo=1&bar=2">quoted
639 link</ref></quote>.</p>
640 <p>Some dashes: one—two — three—four — five.</p>
641 <p>Dashes between numbers: 5–7, 255–66, 1987–1999.</p>
642 <p>Ellipses…and…and….</p>
643 <milestone unit="undefined" type="separator" rendition="line" />
645<div type="level1" xml:id="latex">
647 <list type="unordered">
652 <p><formula notation="TeX">2+2=4</formula></p>
655 <p><formula notation="TeX">x \in y</formula></p>
658 <p><formula notation="TeX">\alpha \wedge \omega</formula></p>
661 <p><formula notation="TeX">223</formula></p>
664 <p><formula notation="TeX">p</formula>-Tree</p>
667 <p>Here’s some display math: <figure type="math">
668 <formula notation="TeX">\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}</formula>
672 <p>Here’s one that has a line break in it:
673 <formula notation="TeX">\alpha + \omega \times x^2</formula>.</p>
676 <p>These shouldn’t be math:</p>
677 <list type="unordered">
679 <p>To get the famous equation, write
680 <seg type="code">$e = mc^2$</seg>.</p>
683 <p>$22,000 is a <hi rendition="simple:italic">lot</hi> of money. So is
684 $34,000. (It worked if <quote>lot</quote> is emphasized.)</p>
687 <p>Shoes ($20) and socks ($5).</p>
690 <p>Escaped <seg type="code">$</seg>: $73
691 <hi rendition="simple:italic">this should be emphasized</hi> 23$.</p>
694 <p>Here’s a LaTeX table:</p>
695 <milestone unit="undefined" type="separator" rendition="line" />
697<div type="level1" xml:id="special-characters">
698 <head>Special Characters</head>
699 <p>Here is some unicode:</p>
700 <list type="unordered">
711 <p>set membership: ∈</p>
717 <p>AT&T has an ampersand in their name.</p>
718 <p>AT&T is another way to write it.</p>
719 <p>This & that.</p>
727 <p>Right brace: }</p>
728 <p>Left bracket: [</p>
729 <p>Right bracket: ]</p>
731 <p>Right paren: )</p>
732 <p>Greater-than: ></p>
738 <milestone unit="undefined" type="separator" rendition="line" />
740<div type="level1" xml:id="links">
742 <div type="level2" xml:id="explicit">
743 <head>Explicit</head>
744 <p>Just a <ref target="/url/">URL</ref>.</p>
745 <p><ref target="/url/">URL and title</ref>.</p>
746 <p><ref target="/url/">URL and title</ref>.</p>
747 <p><ref target="/url/">URL and title</ref>.</p>
748 <p><ref target="/url/">URL and title</ref></p>
749 <p><ref target="/url/">URL and title</ref></p>
750 <p><ref target="/url/with_underscore">with_underscore</ref></p>
751 <p>Email link (nobody@nowhere.net)</p>
752 <p><ref target="">Empty</ref>.</p>
754 <div type="level2" xml:id="reference">
755 <head>Reference</head>
756 <p>Foo <ref target="/url/">bar</ref>.</p>
757 <p>With <ref target="/url/">embedded [brackets]</ref>.</p>
758 <p><ref target="/url/">b</ref> by itself should be a link.</p>
759 <p>Indented <ref target="/url">once</ref>.</p>
760 <p>Indented <ref target="/url">twice</ref>.</p>
761 <p>Indented <ref target="/url">thrice</ref>.</p>
762 <p>This should [not][] be a link.</p>
763 <ab type='codeblock '>
766 <p>Foo <ref target="/url/">bar</ref>.</p>
767 <p>Foo <ref target="/url/">biz</ref>.</p>
769 <div type="level2" xml:id="with-ampersands">
770 <head>With ampersands</head>
771 <p>Here’s a <ref target="http://example.com/?foo=1&bar=2">link with an
772 ampersand in the URL</ref>.</p>
773 <p>Here’s a link with an amersand in the link text:
774 <ref target="http://att.com/">AT&T</ref>.</p>
775 <p>Here’s an <ref target="/script?foo=1&bar=2">inline link</ref>.</p>
776 <p>Here’s an <ref target="/script?foo=1&bar=2">inline link in pointy
779 <div type="level2" xml:id="autolinks">
780 <head>Autolinks</head>
781 <p>With an ampersand:
782 <ref target="http://example.com/?foo=1&bar=2">http://example.com/?foo=1&bar=2</ref></p>
783 <list type="unordered">
788 <p><ref target="http://example.com/">http://example.com/</ref></p>
794 <p>An e-mail address: nobody@nowhere.net</p>
797 <ref target="http://example.com/">http://example.com/</ref></p>
799 <p>Auto-links should not occur here:
800 <seg type="code"><http://example.com/></seg></p>
801 <ab type='codeblock '>
802or here: <http://example.com/>
804 <milestone unit="undefined" type="separator" rendition="line" />
807<div type="level1" xml:id="images">
809 <p>From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):</p>
812 <graphic url="lalune.jpg" />
813 <figDesc>fig:Voyage dans la Lune</figDesc>
815 <p>Here is a movie <figure>
817 <graphic url="movie.jpg" />
819 <milestone unit="undefined" type="separator" rendition="line" />
821<div type="level1" xml:id="footnotes">
822 <head>Footnotes</head>
823 <p>Here is a footnote reference,<note>
824 <p>Here is the footnote. It can go anywhere after the footnote reference.
825 It need not be placed at the end of the document.</p>
826 </note> and another.<note>
827 <p>Here’s the long note. This one contains multiple blocks.</p>
828 <p>Subsequent blocks are indented to show that they belong to the footnote
829 (as with list items).</p>
830 <ab type='codeblock '>
833 <p>If you want, you can indent every line, but you can also be lazy and
834 just indent the first line of each block.</p>
835 </note> This should <hi rendition="simple:italic">not</hi> be a footnote
836 reference, because it contains a space.[^my note] Here is an inline
838 <p>This is <hi rendition="simple:italic">easier</hi> to type. Inline notes
839 may contain <ref target="http://google.com">links</ref> and
840 <seg type="code">]</seg> verbatim characters, as well as [bracketed
844 <p>Notes can go in quotes.<note>
848 <list type="ordered:arabic">
850 <p>And in list items.<note>
855 <p>This paragraph should not be part of the note, as it is not indented.</p>
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