This is a set of tests for pandoc. Most of them are adapted from John Gruber's markdown test suite.
<hr />
h1. Headers
h2. Level 2 with an "embedded link":/url
h3. Level 3 with _emphasis_
h4. Level 4
h5. Level 5
h1. Level 1
h2. Level 2 with _emphasis_
h3. Level 3
with no blank line
h2. Level 2
with no blank line
<hr />
h1. Paragraphs
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.
<hr />
h1. Block Quotes
E-mail style:
bq. This is a block quote. It is pretty short.
<blockquote>
Code in a block quote:
bc. sub status {
print "working";
}
A list:
# item one
# item two
Nested block quotes:
bq. nested
bq. nested
</blockquote>
This should not be a block quote: 2 > 1.
And a following paragraph.
<hr />
h1. Code Blocks
Code:
bc.. ---- (should be four hyphens)
sub status {
print "working";
}
this code block is indented by one tab
And:
bc.. this code block is indented by two tabs
These should not be escaped: \$ \\ \> \[ \{
<hr />
h1. Lists
h2. Unordered
Asterisks tight:
* asterisk 1
* asterisk 2
* asterisk 3
Asterisks loose:
* asterisk 1
* asterisk 2
* asterisk 3
Pluses tight:
* Plus 1
* Plus 2
* Plus 3
Pluses loose:
* Plus 1
* Plus 2
* Plus 3
Minuses tight:
* Minus 1
* Minus 2
* Minus 3
Minuses loose:
* Minus 1
* Minus 2
* Minus 3
h2. Ordered
Tight:
# First
# Second
# Third
and:
# One
# Two
# Three
Loose using tabs:
# First
# Second
# Third
and using spaces:
# One
# Two
# Three
Multiple paragraphs:
<ol style="list-style-type: decimal;">
<li> <p>Item 1, graf one.</p>
<p>Item 1. graf two. The quick brown fox jumped over the lazy dog's back.</p></li>
<li> <p>Item 2.</p></li>
<li> <p>Item 3.</p></li> </ol>
h2. Nested
* Tab
** Tab
*** Tab
Here's another:
# First
# Second:
#* Fee
#* Fie
#* Foe
# Third
Same thing but with paragraphs:
# First
# Second:
#* Fee
#* Fie
#* Foe
# Third
h2. Tabs and spaces
* this is a list item indented with tabs
* this is a list item indented with spaces
** this is an example list item indented with tabs
** this is an example list item indented with spaces
Auto-links should not occur here: @<http://example.com/>@
bc. or here: <http://example.com/>
<hr />
h1. Images
From "Voyage dans la Lune" by Georges Melies (1902):
!lalune.jpg(Voyage dans la Lune)!
lalune
Here is a movie !movie.jpg(movie)! icon.
<hr />
h1. Footnotes
Here is a footnote reference,[1] and another.[2] This should _not_ be a footnote reference, because it contains a space.[^my note] Here is an inline note.[3]
bq. Notes can go in quotes.[4]
# And in list items.[5]
This paragraph should not be part of the note, as it is not indented.
fn1. Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.
fn2. Here's the long note. This one contains multiple blocks.
Subsequent blocks are indented to show that they belong to the footnote (as with list items).
bc. { <code> }
If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.
fn3. This is _easier_ to type. Inline notes may contain "links":http://google.com and @]@ verbatim characters, as well as [bracketed text].