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