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