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 />
49<blockquote>This is a block quote. It is pretty short.
51<blockquote>Code in a block quote:
54 print "working";
66</blockquote></blockquote>
67This should not be a block quote: 2 > 1.
69And a following paragraph.
78<pre>---- (should be four hyphens)
81 print "working";
84this code block is indented by one tab</pre>
87<pre> this code block is indented by two tabs
89These should not be escaped: \$ \\ \> \[ \{</pre>
161<ol style="list-style-type: decimal;">
162<li><p>Item 1, graf one.</p>
163<p>Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.</p></li>
164<li><p>Item 2.</p></li>
165<li><p>Item 3.</p></li></ol>
182Same thing but with paragraphs:
193* this is a list item indented with tabs
194* this is a list item indented with spaces
195** this is an example list item indented with tabs
196** this is an example list item indented with spaces
198== Fancy list markers ==
200<ol start="2" style="list-style-type: decimal;">
201<li>begins with 2</li>
203<p>with a continuation</p>
204<ol start="4" style="list-style-type: lower-roman;">
205<li>sublist with roman numerals, starting with 4</li>
207<ol style="list-style-type: upper-alpha;">
209<li>a subsublist</li></ol>
215<ol style="list-style-type: upper-alpha;">
217<ol style="list-style-type: upper-roman;">
219<ol start="6" style="list-style-type: decimal;">
220<li>Decimal start with 6
221<ol start="3" style="list-style-type: lower-alpha;">
222<li>Lower alpha with paren</li></ol>
233Should not be a list item:
271Multiple blocks with italics:
276<p>contains seeds, crisp, pleasant to taste</p></dd>
278<dd><p>orange fruit</p>
279<pre>{ orange code block }</pre>
280<blockquote><p>orange block quote</p></blockquote></dd></dl>
282Multiple definitions, tight:
291Multiple definitions, loose:
300Blank line after term, indented marker, alternate markers:
312Simple block on one line:
319And nested without indentation:
340Interpreted markdown in a table:
345This is ''emphasized''
348And this is '''strong'''
352<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
353Here’s a simple block:
361This should be a code block, though:
368<pre><div>foo</div></pre>
384This should just be an HTML comment:
394 This is another comment.
398<pre><!-- Comment --></pre>
399Just plain comment, with trailing spaces on the line:
404<pre><hr /></pre>
413<hr class="foo" id="bar" />
414<hr class="foo" id="bar" />
415<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.
472* <math display="inline">2+2=4</math>
473* <math display="inline">x \in y</math>
474* <math display="inline">\alpha \wedge \omega</math>
475* <math display="inline">223</math>
476* <math display="inline">p</math>-Tree
477* Here’s some display math: <math display="block">\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 display="inline">\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]
574With [[url/|embedded [brackets]]].
576[[url/|b]] by itself should be a link.
578Indented [[url|once]].
580Indented [[url|twice]].
582Indented [[url|thrice]].
584This should [not][] be a link.
586<pre>[not]: /url</pre>
593Here’s a [http://example.com/?foo=1&bar=2 link with an ampersand in the URL].
595Here’s a link with an amersand in the link text: [http://att.com/ AT&T].
597Here’s an [[script?foo=1&bar=2|inline link]].
599Here’s an [[script?foo=1&bar=2|inline link in pointy braces]].
603With an ampersand: http://example.com/?foo=1&bar=2
609An e-mail address: [mailto:nobody@nowhere.net nobody@nowhere.net]
611<blockquote>Blockquoted: http://example.com/
613Auto-links should not occur here: <code><http://example.com/></code>
615<pre>or here: <http://example.com/></pre>
621From “Voyage dans la Lune” by Georges Melies (1902):
623[[File:lalune.jpg|frame|none|alt=Voyage dans la Lune|caption lalune]]
625Here is a movie [[File:movie.jpg|movie]] icon.
632Here 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.</ref> and another.<ref>Here’s the long note. This one contains multiple blocks.
634Subsequent blocks are indented to show that they belong to the footnote (as with list items).
636<pre> { <code> }</pre>
637If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.</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].</ref>
639<blockquote>Notes can go in quotes.<ref>In quote.</ref>
641# And in list items.<ref>In list.</ref>
643This 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