git.iko.soy/typeable/pandoc
on rc/2.8.0.1 help sign in
typeable/pandoc/test/writer.fb2
758 lines 16 kB history raw
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">
3<description>
4<title-info>
5<genre>unrecognised</genre>
6<author>
7<first-name>John</first-name>
8<last-name>MacFarlane</last-name>
9</author>
10<author>
11<nickname>Anonymous</nickname>
12</author>
13<book-title>Pandoc Test Suite</book-title>
14<date>July 17, 2006</date>
15</title-info>
16<document-info>
17<program-used>pandoc</program-used>
18</document-info>
19</description>
20<body>
21<title>
22<p>Pandoc Test Suite</p>
23</title>
24<section>
25<p>This is a set of tests for pandoc. Most of them are adapted from
26John Gruber’s markdown test suite.</p>
27<empty-line />
28</section>
29<section id="headers">
30<title>
31<p>Headers</p>
32</title>
33<section id="level-2-with-an-embedded-link">
34<title>
35<p>Level 2 with an <a l:href="/url">embedded link</a>
36</p>
37</title>
38<section id="level-3-with-emphasis">
39<title>
40<p>Level 3 with <emphasis>emphasis</emphasis>
41</p>
42</title>
43<section id="level-4">
44<title>
45<p>Level 4</p>
46</title>
47<section id="level-5">
48<title>
49<p>Level 5</p>
50</title>
51</section>
52</section>
53</section>
54</section>
55</section>
56<section id="level-1">
57<title>
58<p>Level 1</p>
59</title>
60<section id="level-2-with-emphasis">
61<title>
62<p>Level 2 with <emphasis>emphasis</emphasis>
63</p>
64</title>
65<section id="level-3">
66<title>
67<p>Level 3</p>
68</title>
69<p>with no blank line</p>
70</section>
71</section>
72<section id="level-2">
73<title>
74<p>Level 2</p>
75</title>
76<p>with no blank line</p>
77<empty-line />
78</section>
79</section>
80<section id="paragraphs">
81<title>
82<p>Paragraphs</p>
83</title>
84<p>Here’s a regular paragraph.</p>
85<p>In Markdown 1.0.0 and earlier. Version
868. This line turns into a list item.
87Because a hard-wrapped line in the
88middle of a paragraph looked like a
89list item.</p>
90<p>Here’s one with a bullet.
91* criminey.</p>
92<p>There should be a hard line break
93here.</p>
94<empty-line />
95</section>
96<section id="block-quotes">
97<title>
98<p>Block Quotes</p>
99</title>
100<p>E-mail style:</p>
101<cite>
102<p>This is a block quote.
103It is pretty short.</p>
104</cite>
105<cite>
106<p>Code in a block quote:</p>
107<empty-line />
108<p>
109<code>sub status {</code>
110</p>
111<p>
112<code> print &quot;working&quot;;</code>
113</p>
114<p>
115<code>}</code>
116</p>
117<empty-line />
118<p>A list:</p>
119<p>1. item one</p>
120<p>2. item two</p>
121<p>Nested block quotes:</p>
122<cite>
123<p>nested</p>
124</cite>
125<cite>
126<p>nested</p>
127</cite>
128</cite>
129<p>This should not be a block quote: 2
130&gt; 1.</p>
131<p>And a following paragraph.</p>
132<empty-line />
133</section>
134<section id="code-blocks">
135<title>
136<p>Code Blocks</p>
137</title>
138<p>Code:</p>
139<empty-line />
140<p>
141<code>---- (should be four hyphens)</code>
142</p>
143<p>
144<code>
145</code>
146</p>
147<p>
148<code>sub status {</code>
149</p>
150<p>
151<code> print &quot;working&quot;;</code>
152</p>
153<p>
154<code>}</code>
155</p>
156<p>
157<code>
158</code>
159</p>
160<p>
161<code>this code block is indented by one tab</code>
162</p>
163<empty-line />
164<p>And:</p>
165<empty-line />
166<p>
167<code> this code block is indented by two tabs</code>
168</p>
169<p>
170<code>
171</code>
172</p>
173<p>
174<code>These should not be escaped: \$ \\ \&gt; \[ \{</code>
175</p>
176<empty-line />
177<empty-line />
178</section>
179<section id="lists">
180<title>
181<p>Lists</p>
182</title>
183<section id="unordered">
184<title>
185<p>Unordered</p>
186</title>
187<p>Asterisks tight:</p>
188<p>• asterisk 1</p>
189<p>• asterisk 2</p>
190<p>• asterisk 3</p>
191<p>Asterisks loose:</p>
192<p>• asterisk 1</p>
193<empty-line />
194<p>• asterisk 2</p>
195<empty-line />
196<p>• asterisk 3</p>
197<empty-line />
198<p>Pluses tight:</p>
199<p>• Plus 1</p>
200<p>• Plus 2</p>
201<p>• Plus 3</p>
202<p>Pluses loose:</p>
203<p>• Plus 1</p>
204<empty-line />
205<p>• Plus 2</p>
206<empty-line />
207<p>• Plus 3</p>
208<empty-line />
209<p>Minuses tight:</p>
210<p>• Minus 1</p>
211<p>• Minus 2</p>
212<p>• Minus 3</p>
213<p>Minuses loose:</p>
214<p>• Minus 1</p>
215<empty-line />
216<p>• Minus 2</p>
217<empty-line />
218<p>• Minus 3</p>
219<empty-line />
220</section>
221<section id="ordered">
222<title>
223<p>Ordered</p>
224</title>
225<p>Tight:</p>
226<p>1. First</p>
227<p>2. Second</p>
228<p>3. Third</p>
229<p>and:</p>
230<p>1. One</p>
231<p>2. Two</p>
232<p>3. Three</p>
233<p>Loose using tabs:</p>
234<p>1. First</p>
235<empty-line />
236<p>2. Second</p>
237<empty-line />
238<p>3. Third</p>
239<empty-line />
240<p>and using spaces:</p>
241<p>1. One</p>
242<empty-line />
243<p>2. Two</p>
244<empty-line />
245<p>3. Three</p>
246<empty-line />
247<p>Multiple paragraphs:</p>
248<p>1. Item 1, graf one.</p>
249<empty-line />
250<p>   Item 1. graf two. The quick brown fox jumped over the lazy dog’s
251back.</p>
252<empty-line />
253<p>2. Item 2.</p>
254<empty-line />
255<p>3. Item 3.</p>
256<empty-line />
257</section>
258<section id="nested">
259<title>
260<p>Nested</p>
261</title>
262<p>• Tab</p>
263<p>• • Tab</p>
264<p>• • • Tab</p>
265<p>Here’s another:</p>
266<p>1. First</p>
267<p>2. Second:</p>
268<p>2. • Fee</p>
269<p>2. • Fie</p>
270<p>2. • Foe</p>
271<p>3. Third</p>
272<p>Same thing but with paragraphs:</p>
273<p>1. First</p>
274<empty-line />
275<p>2. Second:</p>
276<empty-line />
277<p>2. • Fee</p>
278<p>2. • Fie</p>
279<p>2. • Foe</p>
280<p>3. Third</p>
281<empty-line />
282</section>
283<section id="tabs-and-spaces">
284<title>
285<p>Tabs and spaces</p>
286</title>
287<p>• this is a list item
288indented with tabs</p>
289<empty-line />
290<p>• this is a list item
291indented with spaces</p>
292<empty-line />
293<p>• • this is an example list item
294indented with tabs</p>
295<empty-line />
296<p>• • this is an example list item
297indented with spaces</p>
298<empty-line />
299</section>
300<section id="fancy-list-markers">
301<title>
302<p>Fancy list markers</p>
303</title>
304<p>(2) begins with 2</p>
305<empty-line />
306<p>(3) and now 3</p>
307<empty-line />
308<p>    with a continuation</p>
309<empty-line />
310<p>(3) iv. sublist with roman numerals,
311starting with 4</p>
312<p>(3) v. more items</p>
313<p>(3) v. (A) a subsublist</p>
314<p>(3) v. (B) a subsublist</p>
315<p>Nesting:</p>
316<p>A. Upper Alpha</p>
317<p>A. I. Upper Roman.</p>
318<p>A. I. (6) Decimal start with 6</p>
319<p>A. I. (6) c) Lower alpha with paren</p>
320<p>Autonumbering:</p>
321<p>1. Autonumber.</p>
322<p>2. More.</p>
323<p>2. 1. Nested.</p>
324<p>Should not be a list item:</p>
325<p>M.A. 2007</p>
326<p>B. Williams</p>
327<empty-line />
328</section>
329</section>
330<section id="definition-lists">
331<title>
332<p>Definition Lists</p>
333</title>
334<p>Tight using spaces:</p>
335<p>
336<strong>apple</strong>
337</p>
338<p>    red fruit</p>
339<p>
340<strong>orange</strong>
341</p>
342<p>    orange fruit</p>
343<p>
344<strong>banana</strong>
345</p>
346<p>    yellow fruit</p>
347<p>Tight using tabs:</p>
348<p>
349<strong>apple</strong>
350</p>
351<p>    red fruit</p>
352<p>
353<strong>orange</strong>
354</p>
355<p>    orange fruit</p>
356<p>
357<strong>banana</strong>
358</p>
359<p>    yellow fruit</p>
360<p>Loose:</p>
361<p>
362<strong>apple</strong>
363</p>
364<p>    red fruit</p>
365<empty-line />
366<p>
367<strong>orange</strong>
368</p>
369<p>    orange fruit</p>
370<empty-line />
371<p>
372<strong>banana</strong>
373</p>
374<p>    yellow fruit</p>
375<empty-line />
376<p>Multiple blocks with italics:</p>
377<p>
378<strong>
379<emphasis>apple</emphasis>
380</strong>
381</p>
382<p>    red fruit</p>
383<empty-line />
384<p>    contains seeds,
385crisp, pleasant to taste</p>
386<empty-line />
387<p>
388<strong>
389<emphasis>orange</emphasis>
390</strong>
391</p>
392<p>    orange fruit</p>
393<empty-line />
394<empty-line />
395<p>
396<code>    { orange code block }</code>
397</p>
398<empty-line />
399<cite>
400<p>    orange block quote</p>
401</cite>
402<p>Multiple definitions, tight:</p>
403<p>
404<strong>apple</strong>
405</p>
406<p>    red fruit</p>
407<p>    computer</p>
408<p>
409<strong>orange</strong>
410</p>
411<p>    orange fruit</p>
412<p>    bank</p>
413<p>Multiple definitions, loose:</p>
414<p>
415<strong>apple</strong>
416</p>
417<p>    red fruit</p>
418<empty-line />
419<p>    computer</p>
420<empty-line />
421<p>
422<strong>orange</strong>
423</p>
424<p>    orange fruit</p>
425<empty-line />
426<p>    bank</p>
427<empty-line />
428<p>Blank line after term, indented marker, alternate markers:</p>
429<p>
430<strong>apple</strong>
431</p>
432<p>    red fruit</p>
433<empty-line />
434<p>    computer</p>
435<empty-line />
436<p>
437<strong>orange</strong>
438</p>
439<p>    orange fruit</p>
440<empty-line />
441<p>1. sublist</p>
442<p>2. sublist</p>
443</section>
444<section id="html-blocks">
445<title>
446<p>HTML Blocks</p>
447</title>
448<p>Simple block on one line:</p>foo<p>And nested without indentation:</p>
449<p>foo</p>bar<p>Interpreted markdown in a table:</p>This is <emphasis>emphasized</emphasis>And this is <strong>strong</strong>
450<p>Here’s a simple block:</p>
451<p>foo</p>
452<p>This should be a code block, though:</p>
453<empty-line />
454<p>
455<code>&lt;div&gt;</code>
456</p>
457<p>
458<code> foo</code>
459</p>
460<p>
461<code>&lt;/div&gt;</code>
462</p>
463<empty-line />
464<p>As should this:</p>
465<empty-line />
466<p>
467<code>&lt;div&gt;foo&lt;/div&gt;</code>
468</p>
469<empty-line />
470<p>Now, nested:</p>foo<p>This should just be an HTML comment:</p>
471<p>Multiline:</p>
472<p>Code block:</p>
473<empty-line />
474<p>
475<code>&lt;!-- Comment --&gt;</code>
476</p>
477<empty-line />
478<p>Just plain comment, with trailing spaces on the line:</p>
479<p>Code:</p>
480<empty-line />
481<p>
482<code>&lt;hr /&gt;</code>
483</p>
484<empty-line />
485<p>Hr’s:</p>
486<empty-line />
487</section>
488<section id="inline-markup">
489<title>
490<p>Inline Markup</p>
491</title>
492<p>This is <emphasis>emphasized</emphasis>, and so <emphasis>is this</emphasis>.</p>
493<p>This is <strong>strong</strong>, and so <strong>is this</strong>.</p>
494<p>An <emphasis>
495<a l:href="/url">emphasized link</a>
496</emphasis>.</p>
497<p>
498<strong>
499<emphasis>This is strong and em.</emphasis>
500</strong>
501</p>
502<p>So is <strong>
503<emphasis>this</emphasis>
504</strong> word.</p>
505<p>
506<strong>
507<emphasis>This is strong and em.</emphasis>
508</strong>
509</p>
510<p>So is <strong>
511<emphasis>this</emphasis>
512</strong> word.</p>
513<p>This is code: <code>&gt;</code>, <code>$</code>, <code>\</code>, <code>\$</code>, <code>&lt;html&gt;</code>.</p>
514<p>
515<strikethrough>This is <emphasis>strikeout</emphasis>.</strikethrough>
516</p>
517<p>Superscripts: a<sup>bc</sup>d a<sup>
518<emphasis>hello</emphasis>
519</sup> a<sup>hello there</sup>.</p>
520<p>Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.</p>
521<p>These should not be superscripts or subscripts,
522because of the unescaped spaces: a^b c^d, a~b c~d.</p>
523<empty-line />
524</section>
525<section id="smart-quotes-ellipses-dashes">
526<title>
527<p>Smart quotes, ellipses, dashes</p>
528</title>
529<p>“Hello,” said the spider. “‘Shelob’ is my name.”</p>
530<p>‘A’, ‘B’, and ‘C’ are letters.</p>
531<p>‘Oak,’ ‘elm,’ and ‘beech’ are names of trees.
532So is ‘pine.’</p>
533<p>‘He said, “I want to go.”’ Were you alive in the
53470’s?</p>
535<p>Here is some quoted ‘<code>code</code>’ and a “<a l:href="http://example.com/?foo=1&amp;bar=2">quoted link</a>”.</p>
536<p>Some dashes: one—two — three—four — five.</p>
537<p>Dashes between numbers: 5–7, 255–66, 1987–1999.</p>
538<p>Ellipses…and…and….</p>
539<empty-line />
540</section>
541<section id="latex">
542<title>
543<p>LaTeX</p>
544</title>
545<p>• </p>
546<p>• <code>2+2=4</code>
547</p>
548<p>• <code>x \in y</code>
549</p>
550<p>• <code>\alpha \wedge \omega</code>
551</p>
552<p>• <code>223</code>
553</p>
554<p>• <code>p</code>-Tree</p>
555<p>• Here’s some display math:
556<code>\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}</code>
557</p>
558<p>• Here’s one that has a line break in it: <code>\alpha + \omega \times x^2</code>.</p>
559<p>These shouldn’t be math:</p>
560<p>• To get the famous equation, write <code>$e = mc^2$</code>.</p>
561<p>• $22,000 is a <emphasis>lot</emphasis> of money. So is $34,000.
562(It worked if “lot” is emphasized.)</p>
563<p>• Shoes ($20) and socks ($5).</p>
564<p>• Escaped <code>$</code>: $73 <emphasis>this should be emphasized</emphasis> 23$.</p>
565<p>Here’s a LaTeX table:</p>
566<empty-line />
567</section>
568<section id="special-characters">
569<title>
570<p>Special Characters</p>
571</title>
572<p>Here is some unicode:</p>
573<p>• I hat: Î</p>
574<p>• o umlaut: ö</p>
575<p>• section: §</p>
576<p>• set membership: ∈</p>
577<p>• copyright: ©</p>
578<p>AT&amp;T has an ampersand in their name.</p>
579<p>AT&amp;T is another way to write it.</p>
580<p>This &amp; that.</p>
581<p>4 &lt; 5.</p>
582<p>6 &gt; 5.</p>
583<p>Backslash: \</p>
584<p>Backtick: `</p>
585<p>Asterisk: *</p>
586<p>Underscore: _</p>
587<p>Left brace: {</p>
588<p>Right brace: }</p>
589<p>Left bracket: [</p>
590<p>Right bracket: ]</p>
591<p>Left paren: (</p>
592<p>Right paren: )</p>
593<p>Greater-than: &gt;</p>
594<p>Hash: #</p>
595<p>Period: .</p>
596<p>Bang: !</p>
597<p>Plus: +</p>
598<p>Minus: -</p>
599<empty-line />
600</section>
601<section id="links">
602<title>
603<p>Links</p>
604</title>
605<section id="explicit">
606<title>
607<p>Explicit</p>
608</title>
609<p>Just a <a l:href="/url/">URL</a>.</p>
610<p>
611<a l:href="/url/">URL and title</a>.</p>
612<p>
613<a l:href="/url/">URL and title</a>.</p>
614<p>
615<a l:href="/url/">URL and title</a>.</p>
616<p>
617<a l:href="/url/">URL and title</a>
618</p>
619<p>
620<a l:href="/url/">URL and title</a>
621</p>
622<p>
623<a l:href="/url/with_underscore">with_underscore</a>
624</p>
625<p>
626<a l:href="mailto:nobody@nowhere.net">Email link</a>
627</p>
628<p>
629<a l:href="">Empty</a>.</p>
630</section>
631<section id="reference">
632<title>
633<p>Reference</p>
634</title>
635<p>Foo <a l:href="/url/">bar</a>.</p>
636<p>With <a l:href="/url/">embedded [brackets]</a>.</p>
637<p>
638<a l:href="/url/">b</a> by itself should be a link.</p>
639<p>Indented <a l:href="/url">once</a>.</p>
640<p>Indented <a l:href="/url">twice</a>.</p>
641<p>Indented <a l:href="/url">thrice</a>.</p>
642<p>This should [not][] be a link.</p>
643<empty-line />
644<p>
645<code>[not]: /url</code>
646</p>
647<empty-line />
648<p>Foo <a l:href="/url/">bar</a>.</p>
649<p>Foo <a l:href="/url/">biz</a>.</p>
650</section>
651<section id="with-ampersands">
652<title>
653<p>With ampersands</p>
654</title>
655<p>Here’s a <a l:href="http://example.com/?foo=1&amp;bar=2">link with an ampersand in the URL</a>.</p>
656<p>Here’s a link with an amersand in the link text: <a l:href="http://att.com/">AT&amp;T</a>.</p>
657<p>Here’s an <a l:href="/script?foo=1&amp;bar=2">inline link</a>.</p>
658<p>Here’s an <a l:href="/script?foo=1&amp;bar=2">inline link in pointy braces</a>.</p>
659</section>
660<section id="autolinks">
661<title>
662<p>Autolinks</p>
663</title>
664<p>With an ampersand: <a l:href="http://example.com/?foo=1&amp;bar=2">http://example.com/?foo=1&amp;bar=2</a>
665</p>
666<p>• In a list?</p>
667<p>• <a l:href="http://example.com/">http://example.com/</a>
668</p>
669<p>• It should.</p>
670<p>An e-mail address: <a l:href="mailto:nobody@nowhere.net">nobody@nowhere.net</a>
671</p>
672<cite>
673<p>Blockquoted: <a l:href="http://example.com/">http://example.com/</a>
674</p>
675</cite>
676<p>Auto-links should not occur here: <code>&lt;http://example.com/&gt;</code>
677</p>
678<empty-line />
679<p>
680<code>or here: &lt;http://example.com/&gt;</code>
681</p>
682<empty-line />
683<empty-line />
684</section>
685</section>
686<section id="images">
687<title>
688<p>Images</p>
689</title>
690<p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
691<image l:href="#image1" l:type="imageType" alt="lalune" title="Voyage dans la Lune" />
692<p>Here is a movie <image l:href="#image2" l:type="inlineImageType" alt="movie" /> icon.</p>
693<empty-line />
694</section>
695<section id="footnotes">
696<title>
697<p>Footnotes</p>
698</title>
699<p>Here is a footnote reference,<a l:href="#n1" type="note">[1]</a> and another.<a l:href="#n2" type="note">[2]</a>
700This should <emphasis>not</emphasis> be a footnote reference, because it
701contains a space.[^my note] Here is an inline note.<a l:href="#n3" type="note">[3]</a>
702</p>
703<cite>
704<p>Notes can go in quotes.<a l:href="#n4" type="note">[4]</a>
705</p>
706</cite>
707<p>1. And in list items.<a l:href="#n5" type="note">[5]</a>
708</p>
709<p>This paragraph should not be part of the note, as it is not indented.</p>
710</section>
711</body>
712<body name="notes">
713<section id="n1">
714<title>
715<p>1</p>
716</title>
717<p>Here is the footnote. It can go anywhere after the footnote
718reference. It need not be placed at the end of the document.</p>
719</section>
720<section id="n2">
721<title>
722<p>2</p>
723</title>
724<p>Here’s the long note. This one contains multiple
725blocks.</p>
726<p>Subsequent blocks are indented to show that they belong to the
727footnote (as with list items).</p>
728<empty-line />
729<p>
730<code> { &lt;code&gt; }</code>
731</p>
732<empty-line />
733<p>If you want, you can indent every line, but you can also be
734lazy and just indent the first line of each block.</p>
735</section>
736<section id="n3">
737<title>
738<p>3</p>
739</title>
740<p>This
741is <emphasis>easier</emphasis> to type. Inline notes may contain
742<a l:href="http://google.com">links</a> and <code>]</code> verbatim characters,
743as well as [bracketed text].</p>
744</section>
745<section id="n4">
746<title>
747<p>4</p>
748</title>
749<p>In quote.</p>
750</section>
751<section id="n5">
752<title>
753<p>5</p>
754</title>
755<p>In list.</p>
756</section>
757</body>
758</FictionBook>