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