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