@@ -12,18 +12,28 @@
12<h1 class="title">Pandoc Test Suite</h1>
12<h1 class="title">Pandoc Test Suite</h1>
13<p>This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite.</p>
13<p>This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite.</p>
15<h1>Headers</h1>
16<h1>Headers</h1>
17+<a id="Level_2_with_an_embedded_link"></a>
16<h2>Level 2 with an <a href="/url">embedded link</a></h2>
18<h2>Level 2 with an <a href="/url">embedded link</a></h2>
19+<a id="Level_3_with_emphasis"></a>
17<h3>Level 3 with <em>emphasis</em></h3>
20<h3>Level 3 with <em>emphasis</em></h3>
18<h4>Level 4</h4>
22<h4>Level 4</h4>
19<h5>Level 5</h5>
24<h5>Level 5</h5>
20<h1>Level 1</h1>
26<h1>Level 1</h1>
27+<a id="Level_2_with_emphasis"></a>
21<h2>Level 2 with <em>emphasis</em></h2>
28<h2>Level 2 with <em>emphasis</em></h2>
22<h3>Level 3</h3>
30<h3>Level 3</h3>
23<p>with no blank line</p>
31<p>with no blank line</p>
24<h2>Level 2</h2>
33<h2>Level 2</h2>
25<p>with no blank line</p>
34<p>with no blank line</p>
36+<a id="Paragraphs"></a>
27<h1>Paragraphs</h1>
37<h1>Paragraphs</h1>
28<p>Here’s a regular paragraph.</p>
38<p>Here’s a regular paragraph.</p>
29<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>
39<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>
@@ -31,6 +41,7 @@
31<p>There should be a hard line break<br />
41<p>There should be a hard line break<br />
44+<a id="Block_Quotes"></a>
34<h1>Block Quotes</h1>
45<h1>Block Quotes</h1>
35<p>E-mail style:</p>
46<p>E-mail style:</p>
36<blockquote>
47<blockquote>
@@ -79,6 +90,7 @@ here.</p>
79</blockquote>
90</blockquote>
80<p>And a following paragraph.</p>
91<p>And a following paragraph.</p>
93+<a id="Code_Blocks"></a>
82<h1>Code Blocks</h1>
94<h1>Code Blocks</h1>
83<p>Code:</p>
95<p>Code:</p>
84<pre><code>---- (should be four hyphens)
96<pre><code>---- (should be four hyphens)
@@ -95,7 +107,9 @@ this code block is indented by one tab
95These should not be escaped: \$ \\ \> \[ \{
107These should not be escaped: \$ \\ \> \[ \{
96</code></pre>
108</code></pre>
98<h1>Lists</h1>
111<h1>Lists</h1>
112+<a id="Unordered"></a>
99<h2>Unordered</h2>
113<h2>Unordered</h2>
100<p>Asterisks tight:</p>
114<p>Asterisks tight:</p>
@@ -142,6 +156,7 @@ These should not be escaped: \$ \\ \> \[ \{
142<li><p>Minus 3</p>
156<li><p>Minus 3</p>
145<h2>Ordered</h2>
160<h2>Ordered</h2>
146<p>Tight:</p>
161<p>Tight:</p>
@@ -183,6 +198,7 @@ These should not be escaped: \$ \\ \> \[ \{
183<li><p>Item 3.</p>
198<li><p>Item 3.</p>
186<h2>Nested</h2>
202<h2>Nested</h2>
188<li>Tab<ul>
204<li>Tab<ul>
@@ -218,6 +234,7 @@ These should not be escaped: \$ \\ \> \[ \{
218<li><p>Third</p>
234<li><p>Third</p>
237+<a id="Tabs_and_spaces"></a>
221<h2>Tabs and spaces</h2>
238<h2>Tabs and spaces</h2>
223<li><p>this is a list item indented with tabs</p>
240<li><p>this is a list item indented with tabs</p>
@@ -232,6 +249,7 @@ These should not be escaped: \$ \\ \> \[ \{
252+<a id="HTML_Blocks"></a>
235<h1>HTML Blocks</h1>
253<h1>HTML Blocks</h1>
236<p>Simple block on one line:</p>
254<p>Simple block on one line:</p>
237<div>foo</div>
255<div>foo</div>
@@ -307,6 +325,7 @@ Blah
308<hr class="foo" id="bar">
326<hr class="foo" id="bar">
328+<a id="Inline_Markup"></a>
310<h1>Inline Markup</h1>
329<h1>Inline Markup</h1>
311<p>This is <em>emphasized</em>, and so <em>is this</em>.</p>
330<p>This is <em>emphasized</em>, and so <em>is this</em>.</p>
312<p>This is <strong>strong</strong>, and so <strong>is this</strong>.</p>
331<p>This is <strong>strong</strong>, and so <strong>is this</strong>.</p>
@@ -317,6 +336,7 @@ Blah
317<p>So is <strong><em>this</em></strong> word.</p>
336<p>So is <strong><em>this</em></strong> word.</p>
318<p>This is code: <code>></code>, <code>$</code>, <code>\</code>, <code>\$</code>, <code><html></code>.</p>
337<p>This is code: <code>></code>, <code>$</code>, <code>\</code>, <code>\$</code>, <code><html></code>.</p>
339+<a id="Smart_quotes,_ellipses,_dashes"></a>
320<h1>Smart quotes, ellipses, dashes</h1>
340<h1>Smart quotes, ellipses, dashes</h1>
321<p>“Hello,” said the spider. “‘Shelob’ is my name.”</p>
341<p>“Hello,” said the spider. “‘Shelob’ is my name.”</p>
322<p>‘A’, ‘B’, and ‘C’ are letters.</p>
342<p>‘A’, ‘B’, and ‘C’ are letters.</p>
@@ -327,6 +347,7 @@ Blah
327<p>Dashes between numbers: 5–7, 255–66, 1987–1999.</p>
347<p>Dashes between numbers: 5–7, 255–66, 1987–1999.</p>
328<p>Ellipses…and…and … .</p>
348<p>Ellipses…and…and … .</p>
330<h1>LaTeX</h1>
351<h1>LaTeX</h1>
332<li>\cite[22-23]{smith.1899}</li>
353<li>\cite[22-23]{smith.1899}</li>
@@ -352,6 +373,7 @@ Dog & 2 \\
352Cat & 1 \\ \hline
373Cat & 1 \\ \hline
353\end{tabular}</p>
374\end{tabular}</p>
376+<a id="Special_Characters"></a>
355<h1>Special Characters</h1>
377<h1>Special Characters</h1>
356<p>Here is some unicode:</p>
378<p>Here is some unicode:</p>
@@ -383,7 +405,9 @@ Cat & 1 \\ \hline
383<p>Plus: +</p>
405<p>Plus: +</p>
384<p>Minus: -</p>
406<p>Minus: -</p>
386<h1>Links</h1>
409<h1>Links</h1>
410+<a id="Explicit"></a>
387<h2>Explicit</h2>
411<h2>Explicit</h2>
388<p>Just a <a href="/url/">URL</a>.</p>
412<p>Just a <a href="/url/">URL</a>.</p>
389<p><a href="/url/" title="title">URL and title</a>.</p>
413<p><a href="/url/" title="title">URL and title</a>.</p>
@@ -393,6 +417,7 @@ Cat & 1 \\ \hline
393<p><a href="/url/" title="title with single quotes">URL and title</a></p>
417<p><a href="/url/" title="title with single quotes">URL and title</a></p>
394<p><script type="text/javascript">h='nowhere.net';n='nobody';e=n+'@'+h;document.write('<a href="mailto:'+e+'">'+'Email link'+'<\/a>');</script><noscript>Email link (nobody [at] nowhere.net)</noscript></p>
418<p><script type="text/javascript">h='nowhere.net';n='nobody';e=n+'@'+h;document.write('<a href="mailto:'+e+'">'+'Email link'+'<\/a>');</script><noscript>Email link (nobody [at] nowhere.net)</noscript></p>
395<p><a href="">Empty</a>.</p>
419<p><a href="">Empty</a>.</p>
420+<a id="Reference"></a>
396<h2>Reference</h2>
421<h2>Reference</h2>
397<p>Foo <a href="/url/">bar</a>.</p>
422<p>Foo <a href="/url/">bar</a>.</p>
398<p>Foo <a href="/url/">bar</a>.</p>
423<p>Foo <a href="/url/">bar</a>.</p>
@@ -407,11 +432,13 @@ Cat & 1 \\ \hline
407</code></pre>
432</code></pre>
408<p>Foo <a href="/url/" title="Title with "quotes" inside">bar</a>.</p>
433<p>Foo <a href="/url/" title="Title with "quotes" inside">bar</a>.</p>
409<p>Foo <a href="/url/" title="Title with "quote" inside">biz</a>.</p>
434<p>Foo <a href="/url/" title="Title with "quote" inside">biz</a>.</p>
435+<a id="With_ampersands"></a>
410<h2>With ampersands</h2>
436<h2>With ampersands</h2>
411<p>Here’s a <a href="http://example.com/?foo=1&bar=2">link with an ampersand in the URL</a>.</p>
437<p>Here’s a <a href="http://example.com/?foo=1&bar=2">link with an ampersand in the URL</a>.</p>
412<p>Here’s a link with an amersand in the link text: <a href="http://att.com/" title="AT&T">AT&T</a>.</p>
438<p>Here’s a link with an amersand in the link text: <a href="http://att.com/" title="AT&T">AT&T</a>.</p>
413<p>Here’s an <a href="/script?foo=1&bar=2">inline link</a>.</p>
439<p>Here’s an <a href="/script?foo=1&bar=2">inline link</a>.</p>
414<p>Here’s an <a href="/script?foo=1&bar=2">inline link in pointy braces</a>.</p>
440<p>Here’s an <a href="/script?foo=1&bar=2">inline link in pointy braces</a>.</p>
441+<a id="Autolinks"></a>
415<h2>Autolinks</h2>
442<h2>Autolinks</h2>
416<p>With an ampersand: <a href="http://example.com/?foo=1&bar=2">http://example.com/?foo=1&bar=2</a></p>
443<p>With an ampersand: <a href="http://example.com/?foo=1&bar=2">http://example.com/?foo=1&bar=2</a></p>
@@ -427,11 +454,13 @@ Cat & 1 \\ \hline
427<pre><code>or here: <http://example.com/>
454<pre><code>or here: <http://example.com/>
428</code></pre>
455</code></pre>
430<h1>Images</h1>
458<h1>Images</h1>
431<p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
459<p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
432<p><img src="lalune.jpg" title="Voyage dans la Lune" alt="lalune"></p>
460<p><img src="lalune.jpg" title="Voyage dans la Lune" alt="lalune"></p>
433<p>Here is a movie <img src="movie.jpg" alt="movie"> icon.</p>
461<p>Here is a movie <img src="movie.jpg" alt="movie"> icon.</p>
463+<a id="Footnotes"></a>
435<h1>Footnotes</h1>
464<h1>Footnotes</h1>
436<p>Here is a footnote reference,<sup class="footnoteRef" id="fnref1"><a href="#fn1">1</a></sup> and another.<sup class="footnoteRef" id="fnref2"><a href="#fn2">2</a></sup> This should <em>not</em> be a footnote reference, because it contains a space.[^my note] Here is an inline note.<sup class="footnoteRef" id="fnref3"><a href="#fn3">3</a></sup></p>
465<p>Here is a footnote reference,<sup class="footnoteRef" id="fnref1"><a href="#fn1">1</a></sup> and another.<sup class="footnoteRef" id="fnref2"><a href="#fn2">2</a></sup> This should <em>not</em> be a footnote reference, because it contains a space.[^my note] Here is an inline note.<sup class="footnoteRef" id="fnref3"><a href="#fn3">3</a></sup></p>
437<p>This paragraph should not be part of the note, as it is not indented.</p>
466<p>This paragraph should not be part of the note, as it is not indented.</p>