.\" **** Custom macro definitions ********************************* .\" * Super/subscript .\" (https://lists.gnu.org/archive/html/groff/2012-07/msg00046.html) .ds { \v'-0.3m'\\s[\\n[.s]*9u/12u] .ds } \s0\v'0.3m' .ds < \v'0.3m'\s[\\n[.s]*9u/12u] .ds > \s0\v'-0.3m' .\" * Horizontal line .de HLINE .LP .ce \l'20' .. .\" **** Settings ************************************************* .\" text width .nr LL 5.5i .\" left margin .nr PO 1.25i .\" top margin .nr HM 1.25in .\" bottom margin .nr FM 1.25in .\" header/footer width .nr LT \n[LL] .\" point size (pt x 1000) .nr PS 10000 .\" line height (pt x 1000) .nr VS 12000 .\" font family: A, BM, H, HN, N, P, T, ZCM .fam T .\" paragraph indent .nr PI 2m .\" interparagraph space .nr PD 0.33v .\" footnote width .nr FL \n[LL] .\" footnote point size .nr FPS (\n[PS] - 2000) .\" color used for strikeout .defcolor strikecolor rgb 0.7 0.7 0.7 .\" color for links (rgb) .ds PDFHREF.COLOUR 0.35 0.00 0.60 .\" border for links (default none) .ds PDFHREF.BORDER 0 0 0 .\" *************************************************************** .\" PDF metadata .pdfinfo /Title "Pandoc Test Suite" .pdfinfo /Author "John MacFarlane; Anonymous" .hy .EQ delim @@ .EN .TL Pandoc Test Suite .AU John MacFarlane .AU Anonymous .ND "July 17, 2006" .\" 1 column (use .2C for two column) .1C .LP This is a set of tests for pandoc. Most of them are adapted from John Gruber's markdown test suite. .HLINE .SH 1 Headers .pdfhref M "headers" .SH 2 Level 2 with an \c .pdfhref W -D "/url" -A "\c" \ -- "embedded link" \& .pdfhref M "level-2-with-an-embedded-link" .SH 3 Level 3 with \f[I]emphasis\f[] .pdfhref M "level-3-with-emphasis" .SH 4 Level 4 .pdfhref M "level-4" .SH 5 Level 5 .pdfhref M "level-5" .SH 1 Level 1 .pdfhref M "level-1" .SH 2 Level 2 with \f[I]emphasis\f[] .pdfhref M "level-2-with-emphasis" .SH 3 Level 3 .pdfhref M "level-3" .LP with no blank line .SH 2 Level 2 .pdfhref M "level-2" .LP with no blank line .HLINE .SH 1 Paragraphs .pdfhref M "paragraphs" .LP 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 .br here. .HLINE .SH 1 Block Quotes .pdfhref M "block-quotes" .LP E\-mail style: .RS .LP This is a block quote. It is pretty short. .RE .RS .LP Code in a block quote: .IP .nf \f[C] sub\ status\ { \ \ \ \ print\ \"working\"; } \f[] .fi .LP A list: .IP "1." 3 item one .IP "2." 3 item two .LP Nested block quotes: .RS .LP nested .RE .RS .LP nested .RE .RE .LP This should not be a block quote: 2 > 1. .PP And a following paragraph. .HLINE .SH 1 Code Blocks .pdfhref M "code-blocks" .LP Code: .IP .nf \f[C] \-\-\-\-\ (should\ be\ four\ hyphens) sub\ status\ { \ \ \ \ print\ \"working\"; } this\ code\ block\ is\ indented\ by\ one\ tab \f[] .fi .LP And: .IP .nf \f[C] \ \ \ \ this\ code\ block\ is\ indented\ by\ two\ tabs These\ should\ not\ be\ escaped:\ \ \\$\ \\\\\ \\>\ \\[\ \\{ \f[] .fi .HLINE .SH 1 Lists .pdfhref M "lists" .SH 2 Unordered .pdfhref M "unordered" .LP Asterisks tight: .IP \[bu] 2 asterisk 1 .IP \[bu] 2 asterisk 2 .IP \[bu] 2 asterisk 3 .LP Asterisks loose: .IP \[bu] 2 asterisk 1 .IP \[bu] 2 asterisk 2 .IP \[bu] 2 asterisk 3 .LP Pluses tight: .IP \[bu] 2 Plus 1 .IP \[bu] 2 Plus 2 .IP \[bu] 2 Plus 3 .LP Pluses loose: .IP \[bu] 2 Plus 1 .IP \[bu] 2 Plus 2 .IP \[bu] 2 Plus 3 .LP Minuses tight: .IP \[bu] 2 Minus 1 .IP \[bu] 2 Minus 2 .IP \[bu] 2 Minus 3 .LP Minuses loose: .IP \[bu] 2 Minus 1 .IP \[bu] 2 Minus 2 .IP \[bu] 2 Minus 3 .SH 2 Ordered .pdfhref M "ordered" .LP Tight: .IP "1." 3 First .IP "2." 3 Second .IP "3." 3 Third .LP and: .IP "1." 3 One .IP "2." 3 Two .IP "3." 3 Three .LP Loose using tabs: .IP "1." 3 First .IP "2." 3 Second .IP "3." 3 Third .LP and using spaces: .IP "1." 3 One .IP "2." 3 Two .IP "3." 3 Three .LP 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. .SH 2 Nested .pdfhref M "nested" .IP \[bu] 2 Tab .RS 2 .IP \[bu] 2 Tab .RS 2 .IP \[bu] 2 Tab .RE .RE .LP 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 .LP 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 .SH 2 Tabs and spaces .pdfhref M "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 .SH 2 Fancy list markers .pdfhref M "fancy-list-markers" .IP "(2)" 4 begins with 2 .IP "(3)" 4 and now 3 .RS 4 .LP 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 .LP 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 .LP Autonumbering: .IP "1." 3 Autonumber. .IP "2." 3 More. .RS 4 .IP "1." 3 Nested. .RE .LP Should not be a list item: .PP M.A.\ 2007 .PP B. Williams .HLINE .SH 1 Definition Lists .pdfhref M "definition-lists" .LP Tight using spaces: .IP "apple" red fruit .RS .RE .IP "orange" orange fruit .RS .RE .IP "banana" yellow fruit .RS .RE .LP Tight using tabs: .IP "apple" red fruit .RS .RE .IP "orange" orange fruit .RS .RE .IP "banana" yellow fruit .RS .RE .LP Loose: .IP "apple" red fruit .RS .RE .IP "orange" orange fruit .RS .RE .IP "banana" yellow fruit .RS .RE .LP Multiple blocks with italics: .IP "\f[I]apple\f[]" red fruit .RS .PP contains seeds, crisp, pleasant to taste .RE .IP "\f[I]orange\f[]" orange fruit .RS .IP .nf \f[C] {\ orange\ code\ block\ } \f[] .fi .RS .LP orange block quote .RE .RE .LP Multiple definitions, tight: .IP "apple" red fruit .RS .RE computer .RS .RE .IP "orange" orange fruit .RS .RE bank .RS .RE .LP Multiple definitions, loose: .IP "apple" red fruit .RS .RE computer .RS .RE .IP "orange" orange fruit .RS .RE bank .RS .RE .LP Blank line after term, indented marker, alternate markers: .IP "apple" red fruit .RS .RE computer .RS .RE .IP "orange" orange fruit .RS .IP "1." 3 sublist .IP "2." 3 sublist .RE .SH 1 HTML Blocks .pdfhref M "html-blocks" .LP Simple block on one line: foo .LP And nested without indentation: .LP foo bar .LP Interpreted markdown in a table: This is \f[I]emphasized\f[] And this is \f[B]strong\f[] .PP Here's a simple block: .LP foo .LP This should be a code block, though: .IP .nf \f[C]
\ }
\f[]
.fi
.LP
If you want, you can indent every line, but you can also be
lazy and just indent the first line of each block.
.FE
This should \f[I]not\f[] be a footnote reference, because it
contains a space.[\[ha]my note] Here is an inline note.\**
.FS
This
is \f[I]easier\f[] to type.
Inline notes may contain
\c
.pdfhref W -D "http://google.com" -A "\c" \
-- "links"
\& and \f[C]]\f[] verbatim characters,
as well as [bracketed text].
.FE
.RS
.LP
Notes can go in quotes.\**
.FS
In quote.
.FE
.RE
.IP "1." 3
And in list items.\**
.FS
In list.
.FE
.LP
This paragraph should not be part of the note, as it is not indented.
.pdfsync