.TH "Pandoc Test Suite" "" "July 17, 2006" "" "" .hy .PP This is a set of tests for pandoc. Most of them are adapted from John Gruber's markdown test suite. .PP * * * * * .SH Headers .SS Level 2 with an embedded link (/url) .SS Level 3 with \f[I]emphasis\f[] .SS Level 4 .SS Level 5 .SH Level 1 .SS Level 2 with \f[I]emphasis\f[] .SS Level 3 .PP with no blank line .SS Level 2 .PP with no blank line .PP * * * * * .SH Paragraphs .PP Here's a regular paragraph. .PP In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard\-wrapped line in the middle of a paragraph looked like a list item. .PP Here's one with a bullet. * criminey. .PP There should be a hard line break .PD 0 .P .PD here. .PP * * * * * .SH Block Quotes .PP E\-mail style: .RS .PP This is a block quote. It is pretty short. .RE .RS .PP Code in a block quote: .IP .nf \f[C] sub\ status\ { \ \ \ \ print\ "working"; } \f[] .fi .PP A list: .IP "1." 3 item one .IP "2." 3 item two .PP Nested block quotes: .RS .PP nested .RE .RS .PP nested .RE .RE .PP This should not be a block quote: 2 > 1. .PP And a following paragraph. .PP * * * * * .SH Code Blocks .PP Code: .IP .nf \f[C] \-\-\-\-\ (should\ be\ four\ hyphens) sub\ status\ { \ \ \ \ print\ "working"; } this\ code\ block\ is\ indented\ by\ one\ tab \f[] .fi .PP And: .IP .nf \f[C] \ \ \ \ this\ code\ block\ is\ indented\ by\ two\ tabs These\ should\ not\ be\ escaped:\ \ \\$\ \\\\\ \\>\ \\[\ \\{ \f[] .fi .PP * * * * * .SH Lists .SS Unordered .PP Asterisks tight: .IP \[bu] 2 asterisk 1 .IP \[bu] 2 asterisk 2 .IP \[bu] 2 asterisk 3 .PP Asterisks loose: .IP \[bu] 2 asterisk 1 .IP \[bu] 2 asterisk 2 .IP \[bu] 2 asterisk 3 .PP Pluses tight: .IP \[bu] 2 Plus 1 .IP \[bu] 2 Plus 2 .IP \[bu] 2 Plus 3 .PP Pluses loose: .IP \[bu] 2 Plus 1 .IP \[bu] 2 Plus 2 .IP \[bu] 2 Plus 3 .PP Minuses tight: .IP \[bu] 2 Minus 1 .IP \[bu] 2 Minus 2 .IP \[bu] 2 Minus 3 .PP Minuses loose: .IP \[bu] 2 Minus 1 .IP \[bu] 2 Minus 2 .IP \[bu] 2 Minus 3 .SS Ordered .PP Tight: .IP "1." 3 First .IP "2." 3 Second .IP "3." 3 Third .PP and: .IP "1." 3 One .IP "2." 3 Two .IP "3." 3 Three .PP Loose using tabs: .IP "1." 3 First .IP "2." 3 Second .IP "3." 3 Third .PP and using spaces: .IP "1." 3 One .IP "2." 3 Two .IP "3." 3 Three .PP Multiple paragraphs: .IP "1." 3 Item 1, graf one. .RS 4 .PP Item 1. graf two. The quick brown fox jumped over the lazy dog's back. .RE .IP "2." 3 Item 2. .IP "3." 3 Item 3. .SS Nested .IP \[bu] 2 Tab .RS 2 .IP \[bu] 2 Tab .RS 2 .IP \[bu] 2 Tab .RE .RE .PP Here's another: .IP "1." 3 First .IP "2." 3 Second: .RS 4 .IP \[bu] 2 Fee .IP \[bu] 2 Fie .IP \[bu] 2 Foe .RE .IP "3." 3 Third .PP Same thing but with paragraphs: .IP "1." 3 First .IP "2." 3 Second: .RS 4 .IP \[bu] 2 Fee .IP \[bu] 2 Fie .IP \[bu] 2 Foe .RE .IP "3." 3 Third .SS Tabs and spaces .IP \[bu] 2 this is a list item indented with tabs .IP \[bu] 2 this is a list item indented with spaces .RS 2 .IP \[bu] 2 this is an example list item indented with tabs .IP \[bu] 2 this is an example list item indented with spaces .RE .SS Fancy list markers .IP "(2)" 4 begins with 2 .IP "(3)" 4 and now 3 .RS 4 .PP with a continuation .IP "iv." 4 sublist with roman numerals, starting with 4 .IP " v." 4 more items .RS 4 .IP "(A)" 4 a subsublist .IP "(B)" 4 a subsublist .RE .RE .PP Nesting: .IP "A." 3 Upper Alpha .RS 4 .IP "I." 3 Upper Roman. .RS 4 .IP "(6)" 4 Decimal start with 6 .RS 4 .IP "c)" 3 Lower alpha with paren .RE .RE .RE .PP Autonumbering: .IP "1." 3 Autonumber. .IP "2." 3 More. .RS 4 .IP "1." 3 Nested. .RE .PP Should not be a list item: .PP M.A.\ 2007 .PP B. Williams .PP * * * * * .SH Definition Lists .PP Tight using spaces: .TP .B apple red fruit .RS .RE .TP .B orange orange fruit .RS .RE .TP .B banana yellow fruit .RS .RE .PP Tight using tabs: .TP .B apple red fruit .RS .RE .TP .B orange orange fruit .RS .RE .TP .B banana yellow fruit .RS .RE .PP Loose: .TP .B apple red fruit .RS .RE .TP .B orange orange fruit .RS .RE .TP .B banana yellow fruit .RS .RE .PP Multiple blocks with italics: .TP .B \f[I]apple\f[] red fruit .RS .PP contains seeds, crisp, pleasant to taste .RE .TP .B \f[I]orange\f[] orange fruit .RS .IP .nf \f[C] {\ orange\ code\ block\ } \f[] .fi .RS .PP orange block quote .RE .RE .PP Multiple definitions, tight: .TP .B apple red fruit .RS .RE computer .RS .RE .TP .B orange orange fruit .RS .RE bank .RS .RE .PP Multiple definitions, loose: .TP .B apple red fruit .RS .RE computer .RS .RE .TP .B orange orange fruit .RS .RE bank .RS .RE .PP Blank line after term, indented marker, alternate markers: .TP .B apple red fruit .RS .RE computer .RS .RE .TP .B orange orange fruit .RS .IP "1." 3 sublist .IP "2." 3 sublist .RE .SH HTML Blocks .PP Simple block on one line: foo .PP And nested without indentation: .PP foo bar .PP Interpreted markdown in a table: This is \f[I]emphasized\f[] And this is \f[B]strong\f[] .PP Here's a simple block: .PP foo .PP This should be a code block, though: .IP .nf \f[C]
\ }
\f[]
.fi
.PP
If you want, you can indent every line, but you can also be lazy and just
indent the first line of each block.
.SS [3]
.PP
This is \f[I]easier\f[] to type.
Inline notes may contain links (http://google.com) and \f[C]]\f[] verbatim
characters, as well as [bracketed text].
.SS [4]
.PP
In quote.
.SS [5]
.PP
In list.
.SH AUTHORS
John MacFarlane; Anonymous.