git.iko.soy/typeable/pandoc
on 2.2.2 help sign in
typeable/pandoc/test/writer.fb2
767 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>
30<title>
31<p>Headers</p>
32</title>
33<section>
34<title>
35<p>Level 2 with an <a l:href="/url">embedded link</a>
36</p>
37</title>
38<section>
39<title>
40<p>Level 3 with <emphasis>emphasis</emphasis>
41</p>
42</title>
43<section>
44<title>
45<p>Level 4</p>
46</title>
47<section>
48<title>
49<p>Level 5</p>
50</title>
51</section>
52</section>
53</section>
54</section>
55</section>
56<section>
57<title>
58<p>Level 1</p>
59</title>
60<section>
61<title>
62<p>Level 2 with <emphasis>emphasis</emphasis>
63</p>
64</title>
65<section>
66<title>
67<p>Level 3</p>
68</title>
69<p>with no blank line</p>
70</section>
71</section>
72<section>
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>
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>
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>
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>
180<title>
181<p>Lists</p>
182</title>
183<section>
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>
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>
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>
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>
301<title>
302<p>Fancy list markers</p>
303</title>
304<p>(2) begins with 2</p>
305<p>(3) and now 3</p>
306<empty-line />
307<p>    with a continuation</p>
308<empty-line />
309<p>(3) iv. sublist with roman numerals,
310starting with 4</p>
311<p>(3) v. more items</p>
312<p>(3) v. (A) a subsublist</p>
313<p>(3) v. (B) a subsublist</p>
314<p>Nesting:</p>
315<p>A. Upper Alpha</p>
316<p>A. I. Upper Roman.</p>
317<p>A. I. (6) Decimal start with 6</p>
318<p>A. I. (6) c) Lower alpha with paren</p>
319<p>Autonumbering:</p>
320<p>1. Autonumber.</p>
321<p>2. More.</p>
322<p>2. 1. Nested.</p>
323<p>Should not be a list item:</p>
324<p>M.A. 2007</p>
325<p>B. Williams</p>
326<empty-line />
327</section>
328</section>
329<section>
330<title>
331<p>Definition Lists</p>
332</title>
333<p>Tight using spaces:</p>
334<p>
335<strong>apple</strong>
336</p>
337<p>    red fruit</p>
338<p>
339<strong>orange</strong>
340</p>
341<p>    orange fruit</p>
342<p>
343<strong>banana</strong>
344</p>
345<p>    yellow fruit</p>
346<p>Tight using tabs:</p>
347<p>
348<strong>apple</strong>
349</p>
350<p>    red fruit</p>
351<p>
352<strong>orange</strong>
353</p>
354<p>    orange fruit</p>
355<p>
356<strong>banana</strong>
357</p>
358<p>    yellow fruit</p>
359<p>Loose:</p>
360<p>
361<strong>apple</strong>
362</p>
363<p>    red fruit</p>
364<empty-line />
365<p>
366<strong>orange</strong>
367</p>
368<p>    orange fruit</p>
369<empty-line />
370<p>
371<strong>banana</strong>
372</p>
373<p>    yellow fruit</p>
374<empty-line />
375<p>Multiple blocks with italics:</p>
376<p>
377<strong>
378<emphasis>apple</emphasis>
379</strong>
380</p>
381<p>    red fruit</p>
382<empty-line />
383<p>    contains seeds,
384crisp, pleasant to taste</p>
385<empty-line />
386<p>
387<strong>
388<emphasis>orange</emphasis>
389</strong>
390</p>
391<p>    orange fruit</p>
392<empty-line />
393<empty-line />
394<p>
395<code>    { orange code block }</code>
396</p>
397<empty-line />
398<cite>
399<p>    orange block quote</p>
400</cite>
401<p>Multiple definitions, tight:</p>
402<p>
403<strong>apple</strong>
404</p>
405<p>    red fruit</p>
406<p>    computer</p>
407<p>
408<strong>orange</strong>
409</p>
410<p>    orange fruit</p>
411<p>    bank</p>
412<p>Multiple definitions, loose:</p>
413<p>
414<strong>apple</strong>
415</p>
416<p>    red fruit</p>
417<empty-line />
418<p>    computer</p>
419<empty-line />
420<p>
421<strong>orange</strong>
422</p>
423<p>    orange fruit</p>
424<empty-line />
425<p>    bank</p>
426<empty-line />
427<p>Blank line after term, indented marker, alternate markers:</p>
428<p>
429<strong>apple</strong>
430</p>
431<p>    red fruit</p>
432<empty-line />
433<p>    computer</p>
434<empty-line />
435<p>
436<strong>orange</strong>
437</p>
438<p>    orange fruit</p>
439<empty-line />
440<p>1. sublist</p>
441<p>2. sublist</p>
442</section>
443<section>
444<title>
445<p>HTML Blocks</p>
446</title>
447<p>Simple block on one line:</p>foo<p>And nested without indentation:</p>
448<p>foo</p>bar<p>Interpreted markdown in a table:</p>This is <emphasis>emphasized</emphasis>And this is <strong>strong</strong>
449<p>Here’s a simple block:</p>
450<p>foo</p>
451<p>This should be a code block, though:</p>
452<empty-line />
453<p>
454<code>&lt;div&gt;</code>
455</p>
456<p>
457<code> foo</code>
458</p>
459<p>
460<code>&lt;/div&gt;</code>
461</p>
462<empty-line />
463<p>As should this:</p>
464<empty-line />
465<p>
466<code>&lt;div&gt;foo&lt;/div&gt;</code>
467</p>
468<empty-line />
469<p>Now, nested:</p>foo<p>This should just be an HTML comment:</p>
470<p>Multiline:</p>
471<p>Code block:</p>
472<empty-line />
473<p>
474<code>&lt;!-- Comment --&gt;</code>
475</p>
476<empty-line />
477<p>Just plain comment, with trailing spaces on the line:</p>
478<p>Code:</p>
479<empty-line />
480<p>
481<code>&lt;hr /&gt;</code>
482</p>
483<empty-line />
484<p>Hr’s:</p>
485<empty-line />
486</section>
487<section>
488<title>
489<p>Inline Markup</p>
490</title>
491<p>This is <emphasis>emphasized</emphasis>, and so <emphasis>is this</emphasis>.</p>
492<p>This is <strong>strong</strong>, and so <strong>is this</strong>.</p>
493<p>An <emphasis>
494<a l:href="/url">emphasized link</a>
495</emphasis>.</p>
496<p>
497<strong>
498<emphasis>This is strong and em.</emphasis>
499</strong>
500</p>
501<p>So is <strong>
502<emphasis>this</emphasis>
503</strong> word.</p>
504<p>
505<strong>
506<emphasis>This is strong and em.</emphasis>
507</strong>
508</p>
509<p>So is <strong>
510<emphasis>this</emphasis>
511</strong> word.</p>
512<p>This is code: <code>&gt;</code>, <code>$</code>, <code>\</code>, <code>\$</code>, <code>&lt;html&gt;</code>.</p>
513<p>
514<strikethrough>This is <emphasis>strikeout</emphasis>.</strikethrough>
515</p>
516<p>Superscripts: a<sup>bc</sup>d a<sup>
517<emphasis>hello</emphasis>
518</sup> a<sup>hello there</sup>.</p>
519<p>Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.</p>
520<p>These should not be superscripts or subscripts,
521because of the unescaped spaces: a^b c^d, a~b c~d.</p>
522<empty-line />
523</section>
524<section>
525<title>
526<p>Smart quotes, ellipses, dashes</p>
527</title>
528<p>“Hello,” said the spider. “‘Shelob’ is my name.”</p>
529<p>‘A’, ‘B’, and ‘C’ are letters.</p>
530<p>‘Oak,’ ‘elm,’ and ‘beech’ are names of trees.
531So is ‘pine.’</p>
532<p>‘He said, “I want to go.”’ Were you alive in the
53370’s?</p>
534<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>
535<p>Some dashes: one—two — three—four — five.</p>
536<p>Dashes between numbers: 5–7, 255–66, 1987–1999.</p>
537<p>Ellipses…and…and….</p>
538<empty-line />
539</section>
540<section>
541<title>
542<p>LaTeX</p>
543</title>
544<p>• </p>
545<p>• <code>2+2=4</code>
546</p>
547<p>• <code>x \in y</code>
548</p>
549<p>• <code>\alpha \wedge \omega</code>
550</p>
551<p>• <code>223</code>
552</p>
553<p>• <code>p</code>-Tree</p>
554<p>• Here’s some display math:
555<code>\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}</code>
556</p>
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.
561(It worked if “lot” is emphasized.)</p>
562<p>• Shoes ($20) and socks ($5).</p>
563<p>• Escaped <code>$</code>: $73 <emphasis>this should be emphasized</emphasis> 23$.</p>
564<p>Here’s a LaTeX table:</p>
565<empty-line />
566</section>
567<section>
568<title>
569<p>Special Characters</p>
570</title>
571<p>Here is some unicode:</p>
572<p>• I hat: Î</p>
573<p>• o umlaut: ö</p>
574<p>• section: §</p>
575<p>• set membership: ∈</p>
576<p>• copyright: ©</p>
577<p>AT&amp;T has an ampersand in their name.</p>
578<p>AT&amp;T is another way to write it.</p>
579<p>This &amp; that.</p>
580<p>4 &lt; 5.</p>
581<p>6 &gt; 5.</p>
582<p>Backslash: \</p>
583<p>Backtick: `</p>
584<p>Asterisk: *</p>
585<p>Underscore: _</p>
586<p>Left brace: {</p>
587<p>Right brace: }</p>
588<p>Left bracket: [</p>
589<p>Right bracket: ]</p>
590<p>Left paren: (</p>
591<p>Right paren: )</p>
592<p>Greater-than: &gt;</p>
593<p>Hash: #</p>
594<p>Period: .</p>
595<p>Bang: !</p>
596<p>Plus: +</p>
597<p>Minus: -</p>
598<empty-line />
599</section>
600<section>
601<title>
602<p>Links</p>
603</title>
604<section>
605<title>
606<p>Explicit</p>
607</title>
608<p>Just a <a l:href="/url/">URL</a>.</p>
609<p>
610<a l:href="/url/">URL and title</a>.</p>
611<p>
612<a l:href="/url/">URL and title</a>.</p>
613<p>
614<a l:href="/url/">URL and title</a>.</p>
615<p>
616<a l:href="/url/">URL and title</a>
617</p>
618<p>
619<a l:href="/url/">URL and title</a>
620</p>
621<p>
622<a l:href="/url/with_underscore">with_underscore</a>
623</p>
624<p>
625<a l:href="mailto:nobody@nowhere.net">Email link</a>
626</p>
627<p>
628<a l:href="">Empty</a>.</p>
629</section>
630<section>
631<title>
632<p>Reference</p>
633</title>
634<p>Foo <a l:href="/url/">bar</a>.</p>
635<p>With <a l:href="/url/">embedded [brackets]</a>.</p>
636<p>
637<a l:href="/url/">b</a> by itself should be a link.</p>
638<p>Indented <a l:href="/url">once</a>.</p>
639<p>Indented <a l:href="/url">twice</a>.</p>
640<p>Indented <a l:href="/url">thrice</a>.</p>
641<p>This should [not][] be a link.</p>
642<empty-line />
643<p>
644<code>[not]: /url</code>
645</p>
646<empty-line />
647<p>Foo <a l:href="/url/">bar</a>.</p>
648<p>Foo <a l:href="/url/">biz</a>.</p>
649</section>
650<section>
651<title>
652<p>With ampersands</p>
653</title>
654<p>Here’s a <a l:href="http://example.com/?foo=1&amp;bar=2">link with an ampersand in the URL</a>.</p>
655<p>Here’s a link with an amersand in the link text: <a l:href="http://att.com/">AT&amp;T</a>.</p>
656<p>Here’s an <a l:href="/script?foo=1&amp;bar=2">inline link</a>.</p>
657<p>Here’s an <a l:href="/script?foo=1&amp;bar=2">inline link in pointy braces</a>.</p>
658</section>
659<section>
660<title>
661<p>Autolinks</p>
662</title>
663<p>With an ampersand: <a l:href="http://example.com/?foo=1&amp;bar=2">http://example.com/?foo=1&amp;bar=2</a>
664</p>
665<p>• In a list?</p>
666<p>• <a l:href="http://example.com/">http://example.com/</a>
667</p>
668<p>• It should.</p>
669<p>An e-mail address: <a l:href="mailto:nobody@nowhere.net">nobody@nowhere.net</a>
670</p>
671<cite>
672<p>Blockquoted: <a l:href="http://example.com/">http://example.com/</a>
673</p>
674</cite>
675<p>Auto-links should not occur here: <code>&lt;http://example.com/&gt;</code>
676</p>
677<empty-line />
678<p>
679<code>or here: &lt;http://example.com/&gt;</code>
680</p>
681<empty-line />
682<empty-line />
683</section>
684</section>
685<section>
686<title>
687<p>Images</p>
688</title>
689<p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
690<image l:href="#image1" l:type="imageType" alt="lalune" title="Voyage dans la Lune" />
691<p>Here is a movie <image l:href="#image2" l:type="inlineImageType" alt="movie" /> icon.</p>
692<empty-line />
693</section>
694<section>
695<title>
696<p>Footnotes</p>
697</title>
698<p>Here is a footnote reference,<a l:href="#n1" type="note">
699<sup>[1]</sup>
700</a> and another.<a l:href="#n2" type="note">
701<sup>[2]</sup>
702</a>
703This should <emphasis>not</emphasis> be a footnote reference, because it
704contains a space.[^my note] Here is an inline note.<a l:href="#n3" type="note">
705<sup>[3]</sup>
706</a>
707</p>
708<cite>
709<p>Notes can go in quotes.<a l:href="#n4" type="note">
710<sup>[4]</sup>
711</a>
712</p>
713</cite>
714<p>1. And in list items.<a l:href="#n5" type="note">
715<sup>[5]</sup>
716</a>
717</p>
718<p>This paragraph should not be part of the note, as it is not indented.</p>
719</section>
720</body>
721<body name="notes">
722<section id="n1">
723<title>
724<p>1</p>
725</title>
726<p>Here is the footnote. It can go anywhere after the footnote
727reference. It need not be placed at the end of the document.</p>
728</section>
729<section id="n2">
730<title>
731<p>2</p>
732</title>
733<p>Here’s the long note. This one contains multiple
734blocks.</p>
735<p>Subsequent blocks are indented to show that they belong to the
736footnote (as with list items).</p>
737<empty-line />
738<p>
739<code> { &lt;code&gt; }</code>
740</p>
741<empty-line />
742<p>If you want, you can indent every line, but you can also be
743lazy and just indent the first line of each block.</p>
744</section>
745<section id="n3">
746<title>
747<p>3</p>
748</title>
749<p>This
750is <emphasis>easier</emphasis> to type. Inline notes may contain
751<a l:href="http://google.com">links</a> and <code>]</code> verbatim characters,
752as well as [bracketed text].</p>
753</section>
754<section id="n4">
755<title>
756<p>4</p>
757</title>
758<p>In quote.</p>
759</section>
760<section id="n5">
761<title>
762<p>5</p>
763</title>
764<p>In list.</p>
765</section>
766</body>
767</FictionBook>