git.iko.soy/typeable/pandoc
on rc/2.11.3.1 help sign in
typeable/pandoc/test/writer.man
754 lines 10 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\[cq]s markdown test suite.
6.PP
7 * * * * *
8.SH Headers
9.SS Level 2 with an embedded link
10.SS Level 3 with \f[I]emphasis\f[R]
11.SS Level 4
12.SS Level 5
13.SH Level 1
14.SS Level 2 with \f[I]emphasis\f[R]
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\[cq]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\[cq]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 \[dq]working\[dq];
60\f[R]
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 \[dq]working\[dq];
97this code block is indented by one tab
98\f[R]
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: \[rs]$ \[rs]\[rs] \[rs]> \[rs][ \[rs]{
108\f[R]
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\[cq]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\[cq]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
321apple
322red fruit
323.TP
324orange
325orange fruit
326.TP
327banana
328yellow fruit
329.PP
330Tight using tabs:
331.TP
332apple
333red fruit
334.TP
335orange
336orange fruit
337.TP
338banana
339yellow fruit
340.PP
341Loose:
342.TP
343apple
344red fruit
345.TP
346orange
347orange fruit
348.TP
349banana
350yellow fruit
351.PP
352Multiple blocks with italics:
353.TP
354\f[I]apple\f[R]
355red fruit
356.RS
357.PP
358contains seeds, crisp, pleasant to taste
359.RE
360.TP
361\f[I]orange\f[R]
362orange fruit
363.RS
364.IP
365.nf
366\f[C]
367{ orange code block }
368\f[R]
369.fi
370.RS
371.PP
372orange block quote
373.RE
374.RE
375.PP
376Multiple definitions, tight:
377.TP
378apple
379red fruit
380computer
381.TP
382orange
383orange fruit
384bank
385.PP
386Multiple definitions, loose:
387.TP
388apple
389red fruit
390computer
391.TP
392orange
393orange fruit
394bank
395.PP
396Blank line after term, indented marker, alternate markers:
397.TP
398apple
399red fruit
400computer
401.TP
402orange
403orange fruit
404.RS
405.IP "1." 3
406sublist
407.IP "2." 3
408sublist
409.RE
410.SH HTML Blocks
411.PP
412Simple block on one line:
413foo
414.PP
415And nested without indentation:
416.PP
417foo
418bar
419.PP
420Interpreted markdown in a table:
421This is \f[I]emphasized\f[R]
422And this is \f[B]strong\f[R]
423.PP
424Here\[cq]s a simple block:
425.PP
426foo
427.PP
428This should be a code block, though:
429.IP
430.nf
431\f[C]
432<div>
433 foo
434</div>
435\f[R]
436.fi
437.PP
438As should this:
439.IP
440.nf
441\f[C]
442<div>foo</div>
443\f[R]
444.fi
445.PP
446Now, nested:
447foo
448.PP
449This should just be an HTML comment:
450.PP
451Multiline:
452.PP
453Code block:
454.IP
455.nf
456\f[C]
457<!-- Comment -->
458\f[R]
459.fi
460.PP
461Just plain comment, with trailing spaces on the line:
462.PP
463Code:
464.IP
465.nf
466\f[C]
467<hr />
468\f[R]
469.fi
470.PP
471Hr\[cq]s:
472.PP
473 * * * * *
474.SH Inline Markup
475.PP
476This is \f[I]emphasized\f[R], and so \f[I]is this\f[R].
477.PP
478This is \f[B]strong\f[R], and so \f[B]is this\f[R].
479.PP
480An \f[I]emphasized link\f[R].
481.PP
482\f[B]\f[BI]This is strong and em.\f[B]\f[R]
483.PP
484So is \f[B]\f[BI]this\f[B]\f[R] word.
485.PP
486\f[B]\f[BI]This is strong and em.\f[B]\f[R]
487.PP
488So is \f[B]\f[BI]this\f[B]\f[R] word.
489.PP
490This is code: \f[C]>\f[R], \f[C]$\f[R], \f[C]\[rs]\f[R], \f[C]\[rs]$\f[R],
491\f[C]<html>\f[R].
492.PP
493[STRIKEOUT:This is \f[I]strikeout\f[R].]
494.PP
495Superscripts: a^bc^d a^\f[I]hello\f[R]^ a^hello\ there^.
496.PP
497Subscripts: H~2~O, H~23~O, H~many\ of\ them~O.
498.PP
499These should not be superscripts or subscripts, because of the unescaped
500spaces: a\[ha]b c\[ha]d, a\[ti]b c\[ti]d.
501.PP
502 * * * * *
503.SH Smart quotes, ellipses, dashes
504.PP
505\[lq]Hello,\[rq] said the spider.
506\[lq]`Shelob' is my name.\[rq]
507.PP
508`A', `B', and `C' are letters.
509.PP
510`Oak,' `elm,' and `beech' are names of trees.
511So is `pine.'
512.PP
513`He said, \[lq]I want to go.\[rq]' Were you alive in the 70\[cq]s?
514.PP
515Here is some quoted `\f[C]code\f[R]' and a \[lq]quoted
516link (http://example.com/?foo=1&bar=2)\[rq].
517.PP
518Some dashes: one\[em]two \[em] three\[em]four \[em] five.
519.PP
520Dashes between numbers: 5\[en]7, 255\[en]66, 1987\[en]1999.
521.PP
522Ellipses\&...and\&...and\&....
523.PP
524 * * * * *
525.SH LaTeX
526.IP \[bu] 2
527.IP \[bu] 2
5282\[u2005]+\[u2005]2\[u2004]=\[u2004]4
529.IP \[bu] 2
530\f[I]x\f[R]\[u2004]\[mo]\[u2004]\f[I]y\f[R]
531.IP \[bu] 2
532\f[I]\[*a]\f[R]\[u2005]\[AN]\[u2005]\f[I]\[*w]\f[R]
533.IP \[bu] 2
534223
535.IP \[bu] 2
536\f[I]p\f[R]-Tree
537.IP \[bu] 2
538Here\[cq]s some display math:
539.RS
540$$\[rs]frac{d}{dx}f(x)=\[rs]lim_{h\[rs]to 0}\[rs]frac{f(x+h)-f(x)}{h}$$
541.RE
542.IP \[bu] 2
543Here\[cq]s one that has a line break in it:
544\f[I]\[*a]\f[R]\[u2005]+\[u2005]\f[I]\[*w]\f[R]\[u2005]\[tmu]\[u2005]\f[I]x\f[R]^2^.
545.PP
546These shouldn\[cq]t be math:
547.IP \[bu] 2
548To get the famous equation, write \f[C]$e = mc\[ha]2$\f[R].
549.IP \[bu] 2
550$22,000 is a \f[I]lot\f[R] of money.
551So is $34,000.
552(It worked if \[lq]lot\[rq] is emphasized.)
553.IP \[bu] 2
554Shoes ($20) and socks ($5).
555.IP \[bu] 2
556Escaped \f[C]$\f[R]: $73 \f[I]this should be emphasized\f[R] 23$.
557.PP
558Here\[cq]s a LaTeX table:
559.PP
560 * * * * *
561.SH Special Characters
562.PP
563Here is some unicode:
564.IP \[bu] 2
565I hat: \[^I]
566.IP \[bu] 2
567o umlaut: \[:o]
568.IP \[bu] 2
569section: \[sc]
570.IP \[bu] 2
571set membership: \[mo]
572.IP \[bu] 2
573copyright: \[co]
574.PP
575AT&T has an ampersand in their name.
576.PP
577AT&T is another way to write it.
578.PP
579This & that.
580.PP
5814 < 5.
582.PP
5836 > 5.
584.PP
585Backslash: \[rs]
586.PP
587Backtick: \[ga]
588.PP
589Asterisk: *
590.PP
591Underscore: _
592.PP
593Left brace: {
594.PP
595Right brace: }
596.PP
597Left bracket: [
598.PP
599Right bracket: ]
600.PP
601Left paren: (
602.PP
603Right paren: )
604.PP
605Greater-than: >
606.PP
607Hash: #
608.PP
609Period: .
610.PP
611Bang: !
612.PP
613Plus: +
614.PP
615Minus: -
616.PP
617 * * * * *
618.SH Links
619.SS Explicit
620.PP
621Just a URL.
622.PP
623URL and title.
624.PP
625URL and title.
626.PP
627URL and title.
628.PP
629URL and title
630.PP
631URL and title
632.PP
633with_underscore
634.PP
635Email link (mailto:nobody@nowhere.net)
636.PP
637Empty.
638.SS Reference
639.PP
640Foo bar.
641.PP
642With embedded [brackets].
643.PP
644b by itself should be a link.
645.PP
646Indented once.
647.PP
648Indented twice.
649.PP
650Indented thrice.
651.PP
652This should [not][] be a link.
653.IP
654.nf
655\f[C]
656[not]: /url
657\f[R]
658.fi
659.PP
660Foo bar.
661.PP
662Foo biz.
663.SS With ampersands
664.PP
665Here\[cq]s a link with an ampersand in the
666URL (http://example.com/?foo=1&bar=2).
667.PP
668Here\[cq]s a link with an amersand in the link text: AT&T (http://att.com/).
669.PP
670Here\[cq]s an inline link.
671.PP
672Here\[cq]s an inline link in pointy braces.
673.SS Autolinks
674.PP
675With an ampersand: <http://example.com/?foo=1&bar=2>
676.IP \[bu] 2
677In a list?
678.IP \[bu] 2
679<http://example.com/>
680.IP \[bu] 2
681It should.
682.PP
683An e-mail address: <nobody@nowhere.net>
684.RS
685.PP
686Blockquoted: <http://example.com/>
687.RE
688.PP
689Auto-links should not occur here: \f[C]<http://example.com/>\f[R]
690.IP
691.nf
692\f[C]
693or here: <http://example.com/>
694\f[R]
695.fi
696.PP
697 * * * * *
698.SH Images
699.PP
700From \[lq]Voyage dans la Lune\[rq] by Georges Melies (1902):
701.PP
702[IMAGE: lalune]
703.PP
704Here is a movie [IMAGE: movie] icon.
705.PP
706 * * * * *
707.SH Footnotes
708.PP
709Here is a footnote reference,[1] and another.[2] This should \f[I]not\f[R] be
710a footnote reference, because it contains a space.[\[ha]my note] Here is an
711inline note.[3]
712.RS
713.PP
714Notes can go in quotes.[4]
715.RE
716.IP "1." 3
717And in list items.[5]
718.PP
719This paragraph should not be part of the note, as it is not indented.
720.SH NOTES
721.SS [1]
722.PP
723Here is the footnote.
724It can go anywhere after the footnote reference.
725It need not be placed at the end of the document.
726.SS [2]
727.PP
728Here\[cq]s the long note.
729This one contains multiple blocks.
730.PP
731Subsequent blocks are indented to show that they belong to the footnote (as
732with list items).
733.IP
734.nf
735\f[C]
736 { <code> }
737\f[R]
738.fi
739.PP
740If you want, you can indent every line, but you can also be lazy and just
741indent the first line of each block.
742.SS [3]
743.PP
744This is \f[I]easier\f[R] to type.
745Inline notes may contain links (http://google.com) and \f[C]]\f[R] verbatim
746characters, as well as [bracketed text].
747.SS [4]
748.PP
749In quote.
750.SS [5]
751.PP
752In list.
753.SH AUTHORS
754John MacFarlane; Anonymous.