1<?xml version="1.0" encoding="UTF-8"?>
2<FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0" xmlns:l="http://www.w3.org/1999/xlink">
5<book-title>Pandoc Test Suite</book-title>
7<first-name>John</first-name>
8<last-name>MacFarlane</last-name>
11<nickname>Anonymous</nickname>
13<date>July 17, 2006</date>
16<program-used>pandoc</program-used>
21<p>Pandoc Test Suite</p>
29<p>This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite.</p>
40<p>Level 2 with an embedded link </url></p>
44<p>Level 3 with emphasis</p>
65<p>Level 2 with emphasis</p>
71<p>with no blank line</p>
78<p>with no blank line</p>
88<p>Here’s a regular paragraph.</p>
89<p>In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item.</p>
90<p>Here’s one with a bullet. * criminey.</p>
91<p>There should be a hard line break<empty-line />here.</p>
102<p>This is a block quote. It is pretty short.</p>
105<p>Code in a block quote:</p>
108<code>sub status {</code>
111<code> print "working";</code>
120<p>Nested block quotes:</p>
128<p>This should not be a block quote: 2 > 1.</p>
129<p>And a following paragraph.</p>
141<code>---- (should be four hyphens)</code>
148<code>sub status {</code>
151<code> print "working";</code>
161<code>this code block is indented by one tab</code>
167<code> this code block is indented by two tabs</code>
174<code>These should not be escaped: \$ \\ \> \[ \{</code>
189<p>Asterisks tight:</p>
193<p>Asterisks loose:</p>
235<p>Loose using tabs:</p>
242<p>and using spaces:</p>
249<p>Multiple paragraphs:</p>
250<p>1. Item 1, graf one.</p>
252<p> Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.</p>
266<p>Here’s another:</p>
273<p>Same thing but with paragraphs:</p>
286<p>Tabs and spaces</p>
288<p>• this is a list item indented with tabs</p>
290<p>• this is a list item indented with spaces</p>
292<p>◦ this is an example list item indented with tabs</p>
294<p>◦ this is an example list item indented with spaces</p>
299<p>Fancy list markers</p>
301<p>(2) begins with 2</p>
304<p> with a continuation</p>
306<p>(3) iv. sublist with roman numerals, starting with 4</p>
307<p>(3) v. more items</p>
308<p>(3) v. (A) a subsublist</p>
309<p>(3) v. (B) a subsublist</p>
312<p>A. I. Upper Roman.</p>
313<p>A. I. (6) Decimal start with 6</p>
314<p>A. I. (6) c) Lower alpha with paren</p>
319<p>Should not be a list item:</p>
329<p>Definition Lists</p>
331<p>Tight using spaces:</p>
333<strong>apple</strong>
335<p> red fruit<empty-line />
338<strong>orange</strong>
340<p> orange fruit<empty-line />
343<strong>banana</strong>
345<p> yellow fruit<empty-line />
347<p>Tight using tabs:</p>
349<strong>apple</strong>
351<p> red fruit<empty-line />
354<strong>orange</strong>
356<p> orange fruit<empty-line />
359<strong>banana</strong>
361<p> yellow fruit<empty-line />
365<strong>apple</strong>
367<p> red fruit<empty-line />
370<strong>orange</strong>
372<p> orange fruit<empty-line />
375<strong>banana</strong>
377<p> yellow fruit<empty-line />
379<p>Multiple blocks with italics:</p>
382<emphasis>apple</emphasis>
385<p> red fruit<empty-line /> contains seeds, crisp, pleasant to taste<empty-line />
389<emphasis>orange</emphasis>
392<p> orange fruit<empty-line />
395<code> { orange code block }</code>
399<p> orange block quote</p>
402<p>Multiple definitions, tight:</p>
404<strong>apple</strong>
406<p> red fruit<empty-line /> computer<empty-line />
409<strong>orange</strong>
411<p> orange fruit<empty-line /> bank<empty-line />
413<p>Multiple definitions, loose:</p>
415<strong>apple</strong>
417<p> red fruit<empty-line /> computer<empty-line />
420<strong>orange</strong>
422<p> orange fruit<empty-line /> bank<empty-line />
424<p>Blank line after term, indented marker, alternate markers:</p>
426<strong>apple</strong>
428<p> red fruit<empty-line /> computer<empty-line />
431<strong>orange</strong>
433<p> orange fruit<empty-line />
442<p>Simple block on one line:</p>foo<p>And nested without indentation:</p>
443<p>foo</p>bar<p>Interpreted markdown in a table:</p>This is <emphasis>emphasized</emphasis>And this is <strong>strong</strong>
444<p>Here’s a simple block:</p>
446<p>This should be a code block, though:</p>
449<code><div></code>
455<code></div></code>
458<p>As should this:</p>
461<code><div>foo</div></code>
464<p>Now, nested:</p>foo<p>This should just be an HTML comment:</p>
469<code><!-- Comment --></code>
472<p>Just plain comment, with trailing spaces on the line:</p>
476<code><hr /></code>
488<p>This is <emphasis>emphasized</emphasis>, and so <emphasis>is this</emphasis>.</p>
489<p>This is <strong>strong</strong>, and so <strong>is this</strong>.</p>
490<p>An <emphasis>emphasized link<a l:href="#l1" type="note">
496<emphasis>This is strong and em.</emphasis>
500<emphasis>this</emphasis>
504<emphasis>This is strong and em.</emphasis>
508<emphasis>this</emphasis>
510<p>This is code: <code>></code>, <code>$</code>, <code>\</code>, <code>\$</code>, <code><html></code>.</p>
512<strikethrough>This is <emphasis>strikeout</emphasis>.</strikethrough>
514<p>Superscripts: a<sup>bc</sup>d a<sup>
515<emphasis>hello</emphasis>
516</sup> a<sup>hello there</sup>.</p>
517<p>Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.</p>
518<p>These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.</p>
525<p>Smart quotes, ellipses, dashes</p>
527<p>“Hello,” said the spider. “‘Shelob’ is my name.”</p>
528<p>‘A’, ‘B’, and ‘C’ are letters.</p>
529<p>‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’</p>
530<p>‘He said, “I want to go.”’ Were you alive in the 70’s?</p>
531<p>Here is some quoted ‘<code>code</code>’ and a “quoted link<a l:href="#l2" type="note">
534<p>Some dashes: one—two — three—four — five.</p>
535<p>Dashes between numbers: 5–7, 255–66, 1987–1999.</p>
536<p>Ellipses…and…and….</p>
546<p>• <code>2+2=4</code>
548<p>• <code>x \in y</code>
550<p>• <code>\alpha \wedge \omega</code>
554<p>• <code>p</code>-Tree</p>
555<p>• Here’s some display math: <code>\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}</code>
557<p>• Here’s one that has a line break in it: <code>\alpha + \omega \times x^2</code>.</p>
558<p>These shouldn’t be math:</p>
559<p>• To get the famous equation, write <code>$e = mc^2$</code>.</p>
560<p>• $22,000 is a <emphasis>lot</emphasis> of money. So is $34,000. (It worked if “lot” is emphasized.)</p>
561<p>• Shoes ($20) and socks ($5).</p>
562<p>• Escaped <code>$</code>: $73 <emphasis>this should be emphasized</emphasis> 23$.</p>
563<p>Here’s a LaTeX table:</p>
570<p>Special Characters</p>
572<p>Here is some unicode:</p>
576<p>• set membership: ∈</p>
578<p>AT&T has an ampersand in their name.</p>
579<p>AT&T is another way to write it.</p>
580<p>This & that.</p>
589<p>Left bracket: [</p>
590<p>Right bracket: ]</p>
593<p>Greater-than: ></p>
611<p>Just a URL<a l:href="#l3" type="note">
614<p>URL and title<a l:href="#l4" type="note">
617<p>URL and title<a l:href="#l5" type="note">
620<p>URL and title<a l:href="#l6" type="note">
623<p>URL and title<a l:href="#l7" type="note">
627<p>URL and title<a l:href="#l8" type="note">
631<p>with_underscore<a l:href="#l9" type="note">
635<p>Email link<a l:href="#l10" type="note">
639<p>Empty<a l:href="#l11" type="note">
647<p>Foo bar<a l:href="#l12" type="note">
650<p>With embedded [brackets]<a l:href="#l13" type="note">
653<p>b<a l:href="#l14" type="note">
655</a> by itself should be a link.</p>
656<p>Indented once<a l:href="#l15" type="note">
659<p>Indented twice<a l:href="#l16" type="note">
662<p>Indented thrice<a l:href="#l17" type="note">
665<p>This should [not][] be a link.</p>
668<code>[not]: /url</code>
671<p>Foo bar<a l:href="#l18" type="note">
674<p>Foo biz<a l:href="#l19" type="note">
680<p>With ampersands</p>
682<p>Here’s a link with an ampersand in the URL<a l:href="#l20" type="note">
685<p>Here’s a link with an amersand in the link text: AT&T<a l:href="#l21" type="note">
688<p>Here’s an inline link<a l:href="#l22" type="note">
691<p>Here’s an inline link in pointy braces<a l:href="#l23" type="note">
699<p>With an ampersand: http://example.com/?foo=1&bar=2<a l:href="#l24" type="note">
704<p>• http://example.com/<a l:href="#l25" type="note">
709<p>An e-mail address: nobody@nowhere.net<a l:href="#l26" type="note">
714<p>Blockquoted: http://example.com/<a l:href="#l27" type="note">
719<p>Auto-links should not occur here: <code><http://example.com/></code>
723<code>or here: <http://example.com/></code>
735<p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
736<image l:href="#image1" l:type="imageType" alt="lalune" title="Voyage dans la Lune" />
737<p>Here is a movie <image l:href="#image2" l:type="inlineImageType" alt="movie" /> icon.</p>
746<p>Here is a footnote reference,<a l:href="#n28" type="note">
748</a> and another.<a l:href="#n29" type="note">
750</a> This should <emphasis>not</emphasis> be a footnote reference, because it contains a space.[^my note] Here is an inline note.<a l:href="#n30" type="note">
755<p>Notes can go in quotes.<a l:href="#n31" type="note">
760<p>1. And in list items.<a l:href="#n32" type="note">
764<p>This paragraph should not be part of the note, as it is not indented.</p>
781<code>http://example.com/?foo=1&bar=2</code>
796<p>title: <code>/url/</code>
803<p>title preceded by two spaces: <code>/url/</code>
810<p>title preceded by a tab: <code>/url/</code>
817<p>title with "quotes" in it: <code>/url/</code>
824<p>title with single quotes: <code>/url/</code>
832<code>/url/with_underscore</code>
840<code>mailto:nobody@nowhere.net</code>
904<p>Title with "quotes" inside: <code>/url/</code>
911<p>Title with "quote" inside: <code>/url/</code>
919<code>http://example.com/?foo=1&bar=2</code>
926<p>AT&T: <code>http://att.com/</code>
934<code>/script?foo=1&bar=2</code>
942<code>/script?foo=1&bar=2</code>
950<code>http://example.com/?foo=1&bar=2</code>
958<code>http://example.com/</code>
966<code>mailto:nobody@nowhere.net</code>
974<code>http://example.com/</code>
981<p>Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.</p>
987<p>Here’s the long note. This one contains multiple blocks.</p>
988<p>Subsequent blocks are indented to show that they belong to the footnote (as with list items).</p>
991<code> { <code> }</code>
994<p>If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.</p>
1000<p>This is <emphasis>easier</emphasis> to type. Inline notes may contain links<a l:href="#l30" type="note">
1002</a> and <code>]</code> verbatim characters, as well as [bracketed text].</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