<p>This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite.</p>
<empty-line />
<p>——————————</p>
<empty-line />
</section>
<section>
<title>
<p>Headers</p>
</title>
<section>
<title>
<p>Level 2 with an embedded link </url></p>
</title>
<section>
<title>
<p>Level 3 with emphasis</p>
</title>
<section>
<title>
<p>Level 4</p>
</title>
<section>
<title>
<p>Level 5</p>
</title>
</section>
</section>
</section>
</section>
</section>
<section>
<title>
<p>Level 1</p>
</title>
<section>
<title>
<p>Level 2 with emphasis</p>
</title>
<section>
<title>
<p>Level 3</p>
</title>
<p>with no blank line</p>
</section>
</section>
<section>
<title>
<p>Level 2</p>
</title>
<p>with no blank line</p>
<empty-line />
<p>——————————</p>
<empty-line />
</section>
</section>
<section>
<title>
<p>Paragraphs</p>
</title>
<p>Here’s a regular paragraph.</p>
<p>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.</p>
<p>Here’s one with a bullet. * criminey.</p>
<p>There should be a hard line break<empty-line />here.</p>
<empty-line />
<p>——————————</p>
<empty-line />
</section>
<section>
<title>
<p>Block Quotes</p>
</title>
<p>E-mail style:</p>
<cite>
<p>This is a block quote. It is pretty short.</p>
</cite>
<cite>
<p>Code in a block quote:</p>
<empty-line />
<p>
<code>sub status {</code>
</p>
<p>
<code> print "working";</code>
</p>
<p>
<code>}</code>
</p>
<empty-line />
<p>A list:</p>
<p>1.item one</p>
<p>2.item two</p>
<p>Nested block quotes:</p>
<cite>
<p>nested</p>
</cite>
<cite>
<p>nested</p>
</cite>
</cite>
<p>This should not be a block quote: 2 > 1.</p>
<p>And a following paragraph.</p>
<empty-line />
<p>——————————</p>
<empty-line />
</section>
<section>
<title>
<p>Code Blocks</p>
</title>
<p>Code:</p>
<empty-line />
<p>
<code>---- (should be four hyphens)</code>
</p>
<p>
<code>
</code>
</p>
<p>
<code>sub status {</code>
</p>
<p>
<code> print "working";</code>
</p>
<p>
<code>}</code>
</p>
<p>
<code>
</code>
</p>
<p>
<code>this code block is indented by one tab</code>
</p>
<empty-line />
<p>And:</p>
<empty-line />
<p>
<code> this code block is indented by two tabs</code>
</p>
<p>
<code>
</code>
</p>
<p>
<code>These should not be escaped: \$ \\ \> \[ \{</code>
</p>
<empty-line />
<empty-line />
<p>——————————</p>
<empty-line />
</section>
<section>
<title>
<p>Lists</p>
</title>
<section>
<title>
<p>Unordered</p>
</title>
<p>Asterisks tight:</p>
<p>•asterisk 1</p>
<p>•asterisk 2</p>
<p>•asterisk 3</p>
<p>Asterisks loose:</p>
<p>•asterisk 1<empty-line />
</p>
<p>•asterisk 2<empty-line />
</p>
<p>•asterisk 3<empty-line />
</p>
<p>Pluses tight:</p>
<p>•Plus 1</p>
<p>•Plus 2</p>
<p>•Plus 3</p>
<p>Pluses loose:</p>
<p>•Plus 1<empty-line />
</p>
<p>•Plus 2<empty-line />
</p>
<p>•Plus 3<empty-line />
</p>
<p>Minuses tight:</p>
<p>•Minus 1</p>
<p>•Minus 2</p>
<p>•Minus 3</p>
<p>Minuses loose:</p>
<p>•Minus 1<empty-line />
</p>
<p>•Minus 2<empty-line />
</p>
<p>•Minus 3<empty-line />
</p>
</section>
<section>
<title>
<p>Ordered</p>
</title>
<p>Tight:</p>
<p>1.First</p>
<p>2.Second</p>
<p>3.Third</p>
<p>and:</p>
<p>1.One</p>
<p>2.Two</p>
<p>3.Three</p>
<p>Loose using tabs:</p>
<p>1.First<empty-line />
</p>
<p>2.Second<empty-line />
</p>
<p>3.Third<empty-line />
</p>
<p>and using spaces:</p>
<p>1.One<empty-line />
</p>
<p>2.Two<empty-line />
</p>
<p>3.Three<empty-line />
</p>
<p>Multiple paragraphs:</p>
<p>1.Item 1, graf one.<empty-line />Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.<empty-line />
</p>
<p>2.Item 2.<empty-line />
</p>
<p>3.Item 3.<empty-line />
</p>
</section>
<section>
<title>
<p>Nested</p>
</title>
<p>•Tab<p>◦Tab<p>*Tab</p>
</p>
</p>
<p>Here’s another:</p>
<p>1.First</p>
<p>2.Second:<p>•Fee</p>
<p>•Fie</p>
<p>•Foe</p>
</p>
<p>3.Third</p>
<p>Same thing but with paragraphs:</p>
<p>1.First<empty-line />
</p>
<p>2.Second:<empty-line />
<p>•Fee</p>
<p>•Fie</p>
<p>•Foe</p>
</p>
<p>3.Third<empty-line />
</p>
</section>
<section>
<title>
<p>Tabs and spaces</p>
</title>
<p>•this is a list item indented with tabs<empty-line />
</p>
<p>•this is a list item indented with spaces<empty-line />
<p>◦this is an example list item indented with tabs<empty-line />
</p>
<p>◦this is an example list item indented with spaces<empty-line />
</p>
</p>
</section>
<section>
<title>
<p>Fancy list markers</p>
</title>
<p>(2)begins with 2</p>
<p>(3)and now 3<empty-line />with a continuation<empty-line />
<p>(3)iv.sublist with roman numerals, starting with 4</p>
<p>(3)v.more items<p>(3)v.(A)a subsublist</p>
<p>(3)v.(B)a subsublist</p>
</p>
</p>
<p>Nesting:</p>
<p>A.Upper Alpha<p>A.I.Upper Roman.<p>A.I.(6)Decimal start with 6<p>A.I.(6)c)Lower alpha with paren</p>
</p>
</p>
</p>
<p>Autonumbering:</p>
<p>1.Autonumber.</p>
<p>2.More.<p>2.1.Nested.</p>
</p>
<p>Should not be a list item:</p>
<p>M.A.2007</p>
<p>B. Williams</p>
<empty-line />
<p>——————————</p>
<empty-line />
</section>
</section>
<section>
<title>
<p>Definition Lists</p>
</title>
<p>Tight using spaces:</p>
<p>
<strong>apple</strong>
</p>
<p>red fruit<empty-line />
</p>
<p>
<strong>orange</strong>
</p>
<p>orange fruit<empty-line />
</p>
<p>
<strong>banana</strong>
</p>
<p>yellow fruit<empty-line />
</p>
<p>Tight using tabs:</p>
<p>
<strong>apple</strong>
</p>
<p>red fruit<empty-line />
</p>
<p>
<strong>orange</strong>
</p>
<p>orange fruit<empty-line />
</p>
<p>
<strong>banana</strong>
</p>
<p>yellow fruit<empty-line />
</p>
<p>Loose:</p>
<p>
<strong>apple</strong>
</p>
<p>red fruit<empty-line />
</p>
<p>
<strong>orange</strong>
</p>
<p>orange fruit<empty-line />
</p>
<p>
<strong>banana</strong>
</p>
<p>yellow fruit<empty-line />
</p>
<p>Multiple blocks with italics:</p>
<p>
<strong>
<emphasis>apple</emphasis>
</strong>
</p>
<p>red fruit<empty-line />contains seeds, crisp, pleasant to taste<empty-line />
</p>
<p>
<strong>
<emphasis>orange</emphasis>
</strong>
</p>
<p>orange fruit<empty-line />
<empty-line />
<p>
<code>{ orange code block }</code>
</p>
<empty-line />
<cite>
<p>orange block quote</p>
</cite>
</p>
<p>Multiple definitions, tight:</p>
<p>
<strong>apple</strong>
</p>
<p>red fruit<empty-line />computer<empty-line />
</p>
<p>
<strong>orange</strong>
</p>
<p>orange fruit<empty-line />bank<empty-line />
</p>
<p>Multiple definitions, loose:</p>
<p>
<strong>apple</strong>
</p>
<p>red fruit<empty-line />computer<empty-line />
</p>
<p>
<strong>orange</strong>
</p>
<p>orange fruit<empty-line />bank<empty-line />
</p>
<p>Blank line after term, indented marker, alternate markers:</p>
<p>
<strong>apple</strong>
</p>
<p>red fruit<empty-line />computer<empty-line />
</p>
<p>
<strong>orange</strong>
</p>
<p>orange fruit<empty-line />
<p>1.sublist</p>
<p>2.sublist</p>
</p>
</section>
<section>
<title>
<p>HTML Blocks</p>
</title>
<p>Simple block on one line:</p>foo<p>And nested without indentation:</p>
<p>foo</p>bar<p>Interpreted markdown in a table:</p>This is <emphasis>emphasized</emphasis>And this is <strong>strong</strong>
<p>Here’s a simple block:</p>
<p>foo</p>
<p>This should be a code block, though:</p>
<empty-line />
<p>
<code><div></code>
</p>
<p>
<code> foo</code>
</p>
<p>
<code></div></code>
</p>
<empty-line />
<p>As should this:</p>
<empty-line />
<p>
<code><div>foo</div></code>
</p>
<empty-line />
<p>Now, nested:</p>foo<p>This should just be an HTML comment:</p>
<p>Multiline:</p>
<p>Code block:</p>
<empty-line />
<p>
<code><!-- Comment --></code>
</p>
<empty-line />
<p>Just plain comment, with trailing spaces on the line:</p>
<p>Code:</p>
<empty-line />
<p>
<code><hr /></code>
</p>
<empty-line />
<p>Hr’s:</p>
<empty-line />
<p>——————————</p>
<empty-line />
</section>
<section>
<title>
<p>Inline Markup</p>
</title>
<p>This is <emphasis>emphasized</emphasis>, and so <emphasis>is this</emphasis>.</p>
<p>This is <strong>strong</strong>, and so <strong>is this</strong>.</p>
<p>Auto-links should not occur here: <code><http://example.com/></code>
</p>
<empty-line />
<p>
<code>or here: <http://example.com/></code>
</p>
<empty-line />
<empty-line />
<p>——————————</p>
<empty-line />
</section>
</section>
<section>
<title>
<p>Images</p>
</title>
<p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
<image l:href="#image1" l:type="imageType" alt="lalune" title="Voyage dans la Lune" />
<p>Here is a movie <image l:href="#image2" l:type="inlineImageType" alt="movie" /> icon.</p>
<empty-line />
<p>——————————</p>
<empty-line />
</section>
<section>
<title>
<p>Footnotes</p>
</title>
<p>Here is a footnote reference,<a l:href="#n28" type="note">
<sup>[28]</sup>
</a> and another.<a l:href="#n29" type="note">
<sup>[29]</sup>
</a> This should <emphasis>not</emphasis> be a footnote reference, because it contains a space.[^my note] Here is an inline note.<a l:href="#n30" type="note">
<sup>[30]</sup>
</a>
</p>
<cite>
<p>Notes can go in quotes.<a l:href="#n31" type="note">
<sup>[31]</sup>
</a>
</p>
</cite>
<p>1.And in list items.<a l:href="#n32" type="note">
<sup>[32]</sup>
</a>
</p>
<p>This paragraph should not be part of the note, as it is not indented.</p>
</section>
</body>
<body name="notes">
<section id="l1">
<title>
<p>1</p>
</title>
<p>
<code>/url</code>
</p>
</section>
<section id="l2">
<title>
<p>2</p>
</title>
<p>
<code>http://example.com/?foo=1&bar=2</code>
</p>
</section>
<section id="l3">
<title>
<p>3</p>
</title>
<p>
<code>/url/</code>
</p>
</section>
<section id="l4">
<title>
<p>4</p>
</title>
<p>title: <code>/url/</code>
</p>
</section>
<section id="l5">
<title>
<p>5</p>
</title>
<p>title preceded by two spaces: <code>/url/</code>
</p>
</section>
<section id="l6">
<title>
<p>6</p>
</title>
<p>title preceded by a tab: <code>/url/</code>
</p>
</section>
<section id="l7">
<title>
<p>7</p>
</title>
<p>title with "quotes" in it: <code>/url/</code>
</p>
</section>
<section id="l8">
<title>
<p>8</p>
</title>
<p>title with single quotes: <code>/url/</code>
</p>
</section>
<section id="l9">
<title>
<p>9</p>
</title>
<p>
<code>/url/with_underscore</code>
</p>
</section>
<section id="l10">
<title>
<p>10</p>
</title>
<p>
<code>mailto:nobody@nowhere.net</code>
</p>
</section>
<section id="l11">
<title>
<p>11</p>
</title>
<p>
<code>
</code>
</p>
</section>
<section id="l12">
<title>
<p>12</p>
</title>
<p>
<code>/url/</code>
</p>
</section>
<section id="l13">
<title>
<p>13</p>
</title>
<p>
<code>/url/</code>
</p>
</section>
<section id="l14">
<title>
<p>14</p>
</title>
<p>
<code>/url/</code>
</p>
</section>
<section id="l15">
<title>
<p>15</p>
</title>
<p>
<code>/url</code>
</p>
</section>
<section id="l16">
<title>
<p>16</p>
</title>
<p>
<code>/url</code>
</p>
</section>
<section id="l17">
<title>
<p>17</p>
</title>
<p>
<code>/url</code>
</p>
</section>
<section id="l18">
<title>
<p>18</p>
</title>
<p>Title with "quotes" inside: <code>/url/</code>
</p>
</section>
<section id="l19">
<title>
<p>19</p>
</title>
<p>Title with "quote" inside: <code>/url/</code>
</p>
</section>
<section id="l20">
<title>
<p>20</p>
</title>
<p>
<code>http://example.com/?foo=1&bar=2</code>
</p>
</section>
<section id="l21">
<title>
<p>21</p>
</title>
<p>AT&T: <code>http://att.com/</code>
</p>
</section>
<section id="l22">
<title>
<p>22</p>
</title>
<p>
<code>/script?foo=1&bar=2</code>
</p>
</section>
<section id="l23">
<title>
<p>23</p>
</title>
<p>
<code>/script?foo=1&bar=2</code>
</p>
</section>
<section id="l24">
<title>
<p>24</p>
</title>
<p>
<code>http://example.com/?foo=1&bar=2</code>
</p>
</section>
<section id="l25">
<title>
<p>25</p>
</title>
<p>
<code>http://example.com/</code>
</p>
</section>
<section id="l26">
<title>
<p>26</p>
</title>
<p>
<code>mailto:nobody@nowhere.net</code>
</p>
</section>
<section id="l27">
<title>
<p>27</p>
</title>
<p>
<code>http://example.com/</code>
</p>
</section>
<section id="n28">
<title>
<p>28</p>
</title>
<p>Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.</p>
</section>
<section id="n29">
<title>
<p>29</p>
</title>
<p>Here’s the long note. This one contains multiple blocks.</p>
<p>Subsequent blocks are indented to show that they belong to the footnote (as with list items).</p>
<empty-line />
<p>
<code> { <code> }</code>
</p>
<empty-line />
<p>If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.</p>
</section>
<section id="n30">
<title>
<p>30</p>
</title>
<p>This is <emphasis>easier</emphasis> to type. Inline notes may contain links<a l:href="#l30" type="note">
<sup>[30]</sup>
</a> and <code>]</code> verbatim characters, as well as [bracketed text].</p>