1This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite.
8== Level 2 with an [[url|embedded link]] ==
10=== Level 3 with ''emphasis'' ===
18== Level 2 with ''emphasis'' ==
33Here’s a regular paragraph.
35In 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.
37Here’s one with a bullet. * criminey.
39There should be a hard line break<br />here.
48<blockquote>This is a block quote. It is pretty short.
50<blockquote>Code in a block quote:
53 print "working";
65</blockquote></blockquote>
66This should not be a block quote: 2 > 1.
68And a following paragraph.
77<pre>---- (should be four hyphens)
80 print "working";
83this code block is indented by one tab</pre>
86<pre> this code block is indented by two tabs
88These should not be escaped: \$ \\ \> \[ \{</pre>
160<ol style="list-style-type: decimal;">
161<li><p>Item 1, graf one.</p>
162<p>Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.</p></li>
163<li><p>Item 2.</p></li>
164<li><p>Item 3.</p></li></ol>
181Same thing but with paragraphs:
192* this is a list item indented with tabs
193* this is a list item indented with spaces
194** this is an example list item indented with tabs
195** this is an example list item indented with spaces
197== Fancy list markers ==
199<ol start="2" style="list-style-type: decimal;">
200<li>begins with 2</li>
202<p>with a continuation</p>
203<ol start="4" style="list-style-type: lower-roman;">
204<li>sublist with roman numerals, starting with 4</li>
206<ol style="list-style-type: upper-alpha;">
208<li>a subsublist</li></ol>
214<ol style="list-style-type: upper-alpha;">
216<ol style="list-style-type: upper-roman;">
218<ol start="6" style="list-style-type: decimal;">
219<li>Decimal start with 6
220<ol start="3" style="list-style-type: lower-alpha;">
221<li>Lower alpha with paren</li></ol>
232Should not be a list item:
270Multiple blocks with italics:
275<p>contains seeds, crisp, pleasant to taste</p></dd>
277<dd><p>orange fruit</p>
278<pre>{ orange code block }</pre>
279<blockquote><p>orange block quote</p></blockquote></dd></dl>
281Multiple definitions, tight:
290Multiple definitions, loose:
299Blank line after term, indented marker, alternate markers:
311Simple block on one line:
317And nested without indentation:
330Interpreted markdown in a table:
335This is ''emphasized''
338And this is '''strong'''
343<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
345Here’s a simple block:
352This should be a code block, though:
359<pre><div>foo</div></pre>
371This should just be an HTML comment:
383 This is another comment.
388<pre><!-- Comment --></pre>
389Just plain comment, with trailing spaces on the line:
395<pre><hr /></pre>
410<hr class="foo" id="bar" />
412<hr class="foo" id="bar" />
414<hr class="foo" id="bar">
421This is ''emphasized'', and so ''is this''.
423This is '''strong''', and so '''is this'''.
425An ''[[url|emphasized link]]''.
427'''''This is strong and em.'''''
429So is '''''this''''' word.
431'''''This is strong and em.'''''
433So is '''''this''''' word.
435This is code: <code>></code>, <code>$</code>, <code>\</code>, <code>\$</code>, <code><html></code>.
437<s>This is ''strikeout''.</s>
439Superscripts: a<sup>bc</sup>d a<sup>''hello''</sup> a<sup>hello there</sup>.
441Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.
443These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.
448= Smart quotes, ellipses, dashes =
450“Hello,” said the spider. “‘Shelob’ is my name.”
452‘A’, ‘B’, and ‘C’ are letters.
454‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’
456‘He said, “I want to go.”’ Were you alive in the 70’s?
458Here is some quoted ‘<code>code</code>’ and a “[http://example.com/?foo=1&bar=2 quoted link]”.
460Some dashes: one—two — three—four — five.
462Dashes between numbers: 5–7, 255–66, 1987–1999.
473* <math>x \in y</math>
474* <math>\alpha \wedge \omega</math>
477* Here’s some display math: <math>\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}</math>
478* Here’s one that has a line break in it: <math>\alpha + \omega \times x^2</math>.
480These shouldn’t be math:
482* To get the famous equation, write <code>$e = mc^2$</code>.
483* $22,000 is a ''lot'' of money. So is $34,000. (It worked if “lot” is emphasized.)
484* Shoes ($20) and socks ($5).
485* Escaped <code>$</code>: $73 ''this should be emphasized'' 23$.
493= Special Characters =
503AT&T has an ampersand in their name.
505AT&T is another way to write it.
554[[url/|URL and title]].
556[[url/|URL and title]].
558[[url/|URL and title]].
560[[url/|URL and title]]
562[[url/|URL and title]]
564[[url/with_underscore|with_underscore]]
566[mailto:nobody@nowhere.net Email link]
578With [[url/|embedded [brackets]]].
580[[url/|b]] by itself should be a link.
582Indented [[url|once]].
584Indented [[url|twice]].
586Indented [[url|thrice]].
588This should [not][] be a link.
590<pre>[not]: /url</pre>
597Here’s a [http://example.com/?foo=1&bar=2 link with an ampersand in the URL].
599Here’s a link with an amersand in the link text: [http://att.com/ AT&T].
601Here’s an [[script?foo=1&bar=2|inline link]].
603Here’s an [[script?foo=1&bar=2|inline link in pointy braces]].
607With an ampersand: http://example.com/?foo=1&bar=2
613An e-mail address: [mailto:nobody@nowhere.net nobody@nowhere.net]
615<blockquote>Blockquoted: http://example.com/
617Auto-links should not occur here: <code><http://example.com/></code>
619<pre>or here: <http://example.com/></pre>
625From “Voyage dans la Lune” by Georges Melies (1902):
627[[Image:lalune.jpg|frame|none|alt=Voyage dans la Lune|caption lalune]]
629Here is a movie [[Image:movie.jpg|movie]] icon.
636Here is a footnote reference,<ref>Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.
637</ref> and another.<ref>Here’s the long note. This one contains multiple blocks.
639Subsequent blocks are indented to show that they belong to the footnote (as with list items).
641<pre> { <code> }</pre>
642If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.
643</ref> This should ''not'' be a footnote reference, because it contains a space.[^my note] Here is an inline note.<ref>This is ''easier'' to type. Inline notes may contain [http://google.com links] and <code>]</code> verbatim characters, as well as [bracketed text].
646<blockquote>Notes can go in quotes.<ref>In quote.
649# And in list items.<ref>In list.</ref>
651This paragraph should not be part of the note, as it is not indented.
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