1<p>This is a set of tests for pandoc. Most of them are adapted from
2John Gruber’s markdown test suite.</p>
6<h1 id="headers">Headers</h1>
8<h2 id="level-2-with-an-embedded-link">Level 2 with an <a href='/url' title=''>embedded link</a></h2>
10<h3 id="level-3-with-emphasis">Level 3 with <em>emphasis</em></h3>
12<h4 id="level-4">Level 4</h4>
14<h5 id="level-5">Level 5</h5>
16<h1 id="level-1">Level 1</h1>
18<h2 id="level-2-with-emphasis">Level 2 with <em>emphasis</em></h2>
20<h3 id="level-3">Level 3</h3>
22<p>with no blank line</p>
24<h2 id="level-2">Level 2</h2>
26<p>with no blank line</p>
30<h1 id="paragraphs">Paragraphs</h1>
32<p>Here’s a regular paragraph.</p>
34<p>In Markdown 1.0.0 and earlier. Version
358. This line turns into a list item.
36Because a hard-wrapped line in the
37middle of a paragraph looked like a
40<p>Here’s one with a bullet.
43<p>There should be a hard line break<br/>here.</p>
47<h1 id="block-quotes">Block Quotes</h1>
52<p>This is a block quote.
53It is pretty short.</p>
57<p>Code in a block quote:</p>
59<pre><code>sub status {
60 print "working";
70<p>Nested block quotes:</p>
81<p>This should not be a block quote: 2
84<p>And a following paragraph.</p>
88<h1 id="code-blocks">Code Blocks</h1>
92<pre><code>---- (should be four hyphens)
95 print "working";
98this code block is indented by one tab</code></pre>
102<pre><code> this code block is indented by two tabs
104These should not be escaped: \$ \\ \> \[ \{</code></pre>
108<h1 id="lists">Lists</h1>
110<h2 id="unordered">Unordered</h2>
112<p>Asterisks tight:</p>
120<p>Asterisks loose:</p>
123<li><p>asterisk 1</p></li>
124<li><p>asterisk 2</p></li>
125<li><p>asterisk 3</p></li>
139<li><p>Plus 1</p></li>
140<li><p>Plus 2</p></li>
141<li><p>Plus 3</p></li>
155<li><p>Minus 1</p></li>
156<li><p>Minus 2</p></li>
157<li><p>Minus 3</p></li>
160<h2 id="ordered">Ordered</h2>
178<p>Loose using tabs:</p>
182<li><p>Second</p></li>
186<p>and using spaces:</p>
194<p>Multiple paragraphs:</p>
197<li><p>Item 1, graf one.</p>
199<p>Item 1. graf two. The quick brown fox jumped over the lazy dog’s
201<li><p>Item 2.</p></li>
202<li><p>Item 3.</p></li>
205<h2 id="nested">Nested</h2>
219<p>Here’s another:</p>
233<p>Same thing but with paragraphs:</p>
247<h2 id="tabs-and-spaces">Tabs and spaces</h2>
250<li><p>this is a list item
251indented with tabs</p></li>
252<li><p>this is a list item
253indented with spaces</p>
256<li><p>this is an example list item
257indented with tabs</p></li>
258<li><p>this is an example list item
259indented with spaces</p></li>
263<h2 id="fancy-list-markers">Fancy list markers</h2>
266<li>begins with 2</li>
269<p>with a continuation</p>
272<li>sublist with roman numerals,
292<li>Decimal start with 6
295<li>Lower alpha with paren</li>
312<p>Should not be a list item:</p>
320<h1 id="definition-lists">Definition Lists</h1>
322<p>Tight using spaces:</p>
333<p>Tight using tabs:</p>
348<dd><p>red fruit</p></dd>
350<dd><p>orange fruit</p></dd>
352<dd><p>yellow fruit</p></dd>
355<p>Multiple blocks with italics:</p>
358<dt><em>apple</em></dt>
362crisp, pleasant to taste</p></dd>
363<dt><em>orange</em></dt>
364<dd><p>orange fruit</p>
366<pre><code>{ orange code block }</code></pre>
369<p>orange block quote</p>
373<p>Multiple definitions, tight:</p>
384<p>Multiple definitions, loose:</p>
388<dd><p>red fruit</p></dd>
389<dd><p>computer</p></dd>
391<dd><p>orange fruit</p></dd>
395<p>Blank line after term, indented marker, alternate markers:</p>
399<dd><p>red fruit</p></dd>
400<dd><p>computer</p></dd>
402<dd><p>orange fruit</p>
410<h1 id="html-blocks">HTML Blocks</h1>
412<p>Simple block on one line:</p>
417<p>And nested without indentation:</p>
422<p>foo</p></div></div>
427<p>Interpreted markdown in a table:</p>
435This is <em>emphasized</em>
441And this is <strong>strong</strong>
449<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
451<p>Here’s a simple block:</p>
456<p>This should be a code block, though:</p>
458<pre><code><div>
460</div></code></pre>
462<p>As should this:</p>
464<pre><code><div>foo</div></code></pre>
473<p>This should just be an HTML comment:</p>
485 This is another comment.
490<pre><code><!-- Comment --></code></pre>
492<p>Just plain comment, with trailing spaces on the line:</p>
498<pre><code><hr /></code></pre>
514<hr class="foo" id="bar" />
516<hr class="foo" id="bar" />
518<hr class="foo" id="bar">
522<h1 id="inline-markup">Inline Markup</h1>
524<p>This is <em>emphasized</em>, and so <em>is this</em>.</p>
526<p>This is <strong>strong</strong>, and so <strong>is this</strong>.</p>
528<p>An <em><a href='/url' title=''>emphasized link</a></em>.</p>
530<p><strong><em>This is strong and em.</em></strong></p>
532<p>So is <strong><em>this</em></strong> word.</p>
534<p><strong><em>This is strong and em.</em></strong></p>
536<p>So is <strong><em>this</em></strong> word.</p>
538<p>This is code: <code>></code>, <code>$</code>, <code>\</code>, <code>\$</code>, <code><html></code>.</p>
540<p><del>This is <em>strikeout</em>.</del></p>
542<p>Superscripts: a<sup>bc</sup>d a<sup><em>hello</em></sup> a<sup>hello there</sup>.</p>
544<p>Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.</p>
546<p>These should not be superscripts or subscripts,
547because of the unescaped spaces: a^b c^d, a~b c~d.</p>
551<h1 id="smart-quotes-ellipses-dashes">Smart quotes, ellipses, dashes</h1>
553<p> said the spider. </p>
555<p>, , and are letters.</p>
557<p> and are names of trees.
560<p> Were you alive in the
563<p>Here is some quoted and a .</p>
565<p>Some dashes: one—two — three—four — five.</p>
567<p>Dashes between numbers: 5–7, 255–66, 1987–1999.</p>
569<p>Ellipses…and…and….</p>
573<h1 id="latex">LaTeX</h1>
579<li>\(\alpha \wedge \omega\)</li>
582<li>Here’s some display math:
583\[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\]</li>
584<li>Here’s one that has a line break in it: \(\alpha + \omega \times x^2\).</li>
587<p>These shouldn’t be math:</p>
590<li>To get the famous equation, write <code>$e = mc^2$</code>.</li>
591<li>$22,000 is a <em>lot</em> of money. So is $34,000.
592(It worked if is emphasized.)</li>
593<li>Shoes ($20) and socks ($5).</li>
594<li>Escaped <code>$</code>: $73 <em>this should be emphasized</em> 23$.</li>
597<p>Here’s a LaTeX table:</p>
603<h1 id="special-characters">Special Characters</h1>
605<p>Here is some unicode:</p>
611<li>set membership: ∈</li>
615<p>AT&T has an ampersand in their name.</p>
617<p>AT&T is another way to write it.</p>
619<p>This & that.</p>
637<p>Left bracket: [</p>
639<p>Right bracket: ]</p>
645<p>Greater-than: ></p>
659<h1 id="links">Links</h1>
661<h2 id="explicit">Explicit</h2>
663<p>Just a <a href='/url/' title=''>URL</a>.</p>
665<p><a href='/url/' title='title'>URL and title</a>.</p>
667<p><a href='/url/' title='title preceded by two spaces'>URL and title</a>.</p>
669<p><a href='/url/' title='title preceded by a tab'>URL and title</a>.</p>
671<p><a href='/url/' title='title with "quotes" in it'>URL and title</a></p>
673<p><a href='/url/' title='title with single quotes'>URL and title</a></p>
675<p><a href='/url/with_underscore' title=''>with_underscore</a></p>
677<p><a href='mailto:nobody@nowhere.net' title=''>Email link</a></p>
679<p><a href='' title=''>Empty</a>.</p>
681<h2 id="reference">Reference</h2>
683<p>Foo <a href='/url/' title=''>bar</a>.</p>
685<p>With <a href='/url/' title=''>embedded [brackets]</a>.</p>
687<p><a href='/url/' title=''>b</a> by itself should be a link.</p>
689<p>Indented <a href='/url' title=''>once</a>.</p>
691<p>Indented <a href='/url' title=''>twice</a>.</p>
693<p>Indented <a href='/url' title=''>thrice</a>.</p>
695<p>This should [not][] be a link.</p>
697<pre><code>[not]: /url</code></pre>
699<p>Foo <a href='/url/' title='Title with "quotes" inside'>bar</a>.</p>
701<p>Foo <a href='/url/' title='Title with "quote" inside'>biz</a>.</p>
703<h2 id="with-ampersands">With ampersands</h2>
705<p>Here’s a <a href='http://example.com/?foo=1&bar=2' title=''>link with an ampersand in the URL</a>.</p>
707<p>Here’s a link with an amersand in the link text: <a href='http://att.com/' title='AT&T'>AT&T</a>.</p>
709<p>Here’s an <a href='/script?foo=1&bar=2' title=''>inline link</a>.</p>
711<p>Here’s an <a href='/script?foo=1&bar=2' title=''>inline link in pointy braces</a>.</p>
713<h2 id="autolinks">Autolinks</h2>
715<p>With an ampersand: <a href='http://example.com/?foo=1&bar=2' title=''>http://example.com/?foo=1&bar=2</a></p>
719<li><a href='http://example.com/' title=''>http://example.com/</a></li>
723<p>An e-mail address: <a href='mailto:nobody@nowhere.net' title=''>nobody@nowhere.net</a></p>
726<p>Blockquoted: <a href='http://example.com/' title=''>http://example.com/</a></p>
729<p>Auto-links should not occur here: <code><http://example.com/></code></p>
731<pre><code>or here: <http://example.com/></code></pre>
735<h1 id="images">Images</h1>
737<p>From by Georges Melies (1902):</p>
740<img src="lalune.jpg" title="fig:Voyage dans la Lune"/>
741<p class="caption">lalune</p>
744<p>Here is a movie <img src='movie.jpg' title=''/> icon.</p>
748<h1 id="footnotes">Footnotes</h1>
750<p>Here is a footnote reference,<a id="fnref1" href="#fn1"><sup>1</sup></a> and another.<a id="fnref2" href="#fn2"><sup>2</sup></a>
751This should <em>not</em> be a footnote reference, because it
752contains a space.[^my note] Here is an inline note.<a id="fnref3" href="#fn3"><sup>3</sup></a></p>
755<p>Notes can go in quotes.<a id="fnref4" href="#fn4"><sup>4</sup></a></p>
759<li>And in list items.<a id="fnref5" href="#fn5"><sup>5</sup></a></li>
762<p>This paragraph should not be part of the note, as it is not indented.</p>
763<ol class="footnotes">
764<li id="fn1"><p>Here is the footnote. It can go anywhere after the footnote
765reference. It need not be placed at the end of the document. <a href="#fnref1">↩</a></p></li>
766<li id="fn2"><p>Here’s the long note. This one contains multiple
769<p>Subsequent blocks are indented to show that they belong to the
770footnote (as with list items).</p>
772<pre><code> { <code> }</code></pre>
774<p>If you want, you can indent every line, but you can also be
775lazy and just indent the first line of each block. <a href="#fnref2">↩</a></p></li>
777is <em>easier</em> to type. Inline notes may contain
778<a href='http://google.com' title=''>links</a> and <code>]</code> verbatim characters,
779as well as [bracketed text]. <a href="#fnref3">↩</a></p></li>
780<li id="fn4"><p>In quote. <a href="#fnref4">↩</a></p></li>
781<li id="fn5"><p>In list. <a href="#fnref5">↩</a></p></li>
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list