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>
185Same thing but with paragraphs:
197* this is a list item indented with tabs
198* this is a list item indented with spaces
199** this is an example list item indented with tabs
200** this is an example list item indented with spaces
203== Fancy list markers ==
205<ol start="2" style="list-style-type: decimal;">
206<li>begins with 2</li>
208<p>with a continuation</p>
209<ol start="4" style="list-style-type: lower-roman;">
210<li>sublist with roman numerals, starting with 4</li>
212<ol style="list-style-type: upper-alpha;">
214<li>a subsublist</li></ol>
220<ol style="list-style-type: upper-alpha;">
222<ol style="list-style-type: upper-roman;">
224<ol start="6" style="list-style-type: decimal;">
225<li>Decimal start with 6
226<ol start="3" style="list-style-type: lower-alpha;">
227<li>Lower alpha with paren</li></ol>
239Should not be a list item:
277Multiple blocks with italics:
282<p>contains seeds, crisp, pleasant to taste</p></dd>
284<dd><p>orange fruit</p>
285<pre>{ orange code block }</pre>
286<blockquote><p>orange block quote</p></blockquote></dd></dl>
288Multiple definitions, tight:
297Multiple definitions, loose:
306Blank line after term, indented marker, alternate markers:
319Simple block on one line:
325And nested without indentation:
338Interpreted markdown in a table:
343This is ''emphasized''
346And this is '''strong'''
351<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
353Here’s a simple block:
360This should be a code block, though:
367<pre><div>foo</div></pre>
379This should just be an HTML comment:
391 This is another comment.
396<pre><!-- Comment --></pre>
397Just plain comment, with trailing spaces on the line:
403<pre><hr /></pre>
418<hr class="foo" id="bar" />
420<hr class="foo" id="bar" />
422<hr class="foo" id="bar">
429This is ''emphasized'', and so ''is this''.
431This is '''strong''', and so '''is this'''.
433An ''[[url|emphasized link]]''.
435'''''This is strong and em.'''''
437So is '''''this''''' word.
439'''''This is strong and em.'''''
441So is '''''this''''' word.
443This is code: <tt>></tt>, <tt>$</tt>, <tt>\</tt>, <tt>\$</tt>, <tt><html></tt>.
445<s>This is ''strikeout''.</s>
447Superscripts: a<sup>bc</sup>d a<sup>''hello''</sup> a<sup>hello there</sup>.
449Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.
451These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.
456= Smart quotes, ellipses, dashes =
458“Hello,” said the spider. “‘Shelob’ is my name.”
460‘A’, ‘B’, and ‘C’ are letters.
462‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’
464‘He said, “I want to go.”’ Were you alive in the 70’s?
466Here is some quoted ‘<tt>code</tt>’ and a “[http://example.com/?foo=1&bar=2 quoted link]”.
468Some dashes: one—two — three—four — five.
470Dashes between numbers: 5–7, 255–66, 1987–1999.
472Ellipses…and…and….
481* <math>x \in y</math>
482* <math>\alpha \wedge \omega</math>
485* Here’s some display math: <math>\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}</math>
486* Here’s one that has a line break in it: <math>\alpha + \omega \times x^2</math>.
488These shouldn’t be math:
490* To get the famous equation, write <tt>$e = mc^2$</tt>.
491* $22,000 is a ''lot'' of money. So is $34,000. (It worked if “lot” is emphasized.)
492* Shoes ($20) and socks ($5).
493* Escaped <tt>$</tt>: $73 ''this should be emphasized'' 23$.
495Here’s a LaTeX table:
501= Special Characters =
511AT&T has an ampersand in their name.
513AT&T is another way to write it.
562[[url/|URL and title]].
564[[url/|URL and title]].
566[[url/|URL and title]].
568[[url/|URL and title]]
570[[url/|URL and title]]
572[[url/with_underscore|with_underscore]]
574[mailto:nobody@nowhere.net Email link]
586With [[url/|embedded [brackets]]].
588[[url/|b]] by itself should be a link.
590Indented [[url|once]].
592Indented [[url|twice]].
594Indented [[url|thrice]].
596This should [not][] be a link.
598<pre>[not]: /url</pre>
605Here’s a [http://example.com/?foo=1&bar=2 link with an ampersand in the URL].
607Here’s a link with an amersand in the link text: [http://att.com/ AT&T].
609Here’s an [[script?foo=1&bar=2|inline link]].
611Here’s an [[script?foo=1&bar=2|inline link in pointy braces]].
615With an ampersand: http://example.com/?foo=1&bar=2
621An e-mail address: [mailto:nobody@nowhere.net <tt>nobody@nowhere.net</tt>]
623<blockquote>Blockquoted: http://example.com/
625Auto-links should not occur here: <tt><http://example.com/></tt>
627<pre>or here: <http://example.com/></pre>
633From “Voyage dans la Lune” by Georges Melies (1902):
635[[Image:lalune.jpg|frame|none|alt=Voyage dans la Lune|caption lalune]]
637Here is a movie [[Image:movie.jpg|movie]] icon.
644Here 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.
645</ref> and another.<ref>Here’s the long note. This one contains multiple blocks.
647Subsequent blocks are indented to show that they belong to the footnote (as with list items).
649<pre> { <code> }</pre>
650If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.
651</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 <tt>]</tt> verbatim characters, as well as [bracketed text].
654<blockquote>Notes can go in quotes.<ref>In quote.
657# And in list items.<ref>In list.</ref>
659This 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