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 [http://{{SERVERNAME}}/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";
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>
150<ol style="list-style-type: decimal;">
151<li><p>Item 1, graf one.</p>
152<p>Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.</p></li>
153<li><p>Item 2.</p></li>
154<li><p>Item 3.</p></li></ol>
169Same thing but with paragraphs:
177=== Tabs and spaces ===
179* this is a list item indented with tabs
180* this is a list item indented with spaces
181** this is an example list item indented with tabs
182** this is an example list item indented with spaces
183=== Fancy list markers ===
185<ol start="2" style="list-style-type: decimal;">
186<li>begins with 2</li>
188<p>with a continuation</p>
189<ol start="4" style="list-style-type: lower-roman;">
190<li>sublist with roman numerals, starting with 4</li>
192<ol style="list-style-type: upper-alpha;">
194<li>a subsublist</li></ol>
200<ol style="list-style-type: upper-alpha;">
202<ol style="list-style-type: upper-roman;">
204<ol start="6" style="list-style-type: decimal;">
205<li>Decimal start with 6
206<ol start="3" style="list-style-type: lower-alpha;">
207<li>Lower alpha with paren</li></ol>
217Should not be a list item:
226== Definition Lists ==
252Multiple blocks with italics:
257<p>contains seeds, crisp, pleasant to taste</p></dd>
259<dd><p>orange fruit</p>
260<pre>{ orange code block }</pre>
261<blockquote><p>orange block quote</p></blockquote></dd></dl>
265Simple block on one line:
271And nested without indentation:
284Interpreted markdown in a table:
289This is ''emphasized''
292And this is '''strong'''
297<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
299Here’s a simple block:
306This should be a code block, though:
313<pre><div>foo</div></pre>
325This should just be an HTML comment:
337 This is another comment.
342<pre><!-- Comment --></pre>
343Just plain comment, with trailing spaces on the line:
349<pre><hr /></pre>
364<hr class="foo" id="bar" />
366<hr class="foo" id="bar" />
368<hr class="foo" id="bar">
375This is ''emphasized'', and so ''is this''.
377This is '''strong''', and so '''is this'''.
379An ''[http://{{SERVERNAME}}/url emphasized link]''.
381'''''This is strong and em.'''''
383So is '''''this''''' word.
385'''''This is strong and em.'''''
387So is '''''this''''' word.
389This is code: <tt>></tt>, <tt>$</tt>, <tt>\</tt>, <tt>\$</tt>, <tt><html></tt>.
391<s>This is ''strikeout''.</s>
393Superscripts: a<sup>bc</sup>d a<sup>''hello''</sup> a<sup>hello there</sup>.
395Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.
397These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.
402== Smart quotes, ellipses, dashes ==
404“Hello,” said the spider. “‘Shelob’ is my name.”
406‘A’, ‘B’, and ‘C’ are letters.
408‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’
410‘He said, “I want to go.”’ Were you alive in the 70’s?
412Here is some quoted ‘<tt>code</tt>’ and a “[http://example.com/?foo=1&bar=2 quoted link]”.
414Some dashes: one—two — three—four — five.
416Dashes between numbers: 5–7, 255–66, 1987–1999.
418Ellipses…and…and….
427* <math>x \in y</math>
428* <math>\alpha \wedge \omega</math>
431* Here’s some display math: <math>\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}</math>
432* Here’s one that has a line break in it: <math>\alpha + \omega \times x^2</math>.
433These shouldn’t be math:
435* To get the famous equation, write <tt>$e = mc^2$</tt>.
436* $22,000 is a ''lot'' of money. So is $34,000. (It worked if “lot” is emphasized.)
437* Shoes ($20) and socks ($5).
438* Escaped <tt>$</tt>: $73 ''this should be emphasized'' 23$.
439Here’s a LaTeX table:
446== Special Characters ==
455AT&T has an ampersand in their name.
457AT&T is another way to write it.
504Just a [http://{{SERVERNAME}}/url/ URL].
506[http://{{SERVERNAME}}/url/ URL and title].
508[http://{{SERVERNAME}}/url/ URL and title].
510[http://{{SERVERNAME}}/url/ URL and title].
512[http://{{SERVERNAME}}/url/ URL and title]
514[http://{{SERVERNAME}}/url/ URL and title]
516[http://{{SERVERNAME}}/url/with_underscore with_underscore]
518[mailto:nobody@nowhere.net Email link]
520[http://{{SERVERNAME}}/ Empty].
524Foo [http://{{SERVERNAME}}/url/ bar].
526Foo [http://{{SERVERNAME}}/url/ bar].
528Foo [http://{{SERVERNAME}}/url/ bar].
530With [http://{{SERVERNAME}}/url/ embedded [brackets]].
532[http://{{SERVERNAME}}/url/ b] by itself should be a link.
534Indented [http://{{SERVERNAME}}/url once].
536Indented [http://{{SERVERNAME}}/url twice].
538Indented [http://{{SERVERNAME}}/url thrice].
540This should [not][] be a link.
542<pre>[not]: /url</pre>
543Foo [http://{{SERVERNAME}}/url/ bar].
545Foo [http://{{SERVERNAME}}/url/ biz].
547=== With ampersands ===
549Here’s a [http://example.com/?foo=1&bar=2 link with an ampersand in the URL].
551Here’s a link with an amersand in the link text: [http://att.com/ AT&T].
553Here’s an [http://{{SERVERNAME}}/script?foo=1&bar=2 inline link].
555Here’s an [http://{{SERVERNAME}}/script?foo=1&bar=2 inline link in pointy braces].
559With an ampersand: http://example.com/?foo=1&bar=2
564An e-mail address: [mailto:nobody@nowhere.net <tt>nobody@nowhere.net</tt>]
566<blockquote>Blockquoted: http://example.com/
568Auto-links should not occur here: <tt><http://example.com/></tt>
570<pre>or here: <http://example.com/></pre>
576From “Voyage dans la Lune” by Georges Melies (1902):
578[[Image:lalune.jpg|Voyage dans la Lune]]
580Here is a movie [[Image:movie.jpg|movie]] icon.
587Here 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.
588</ref> and another.<ref>Here’s the long note. This one contains multiple blocks.
590Subsequent blocks are indented to show that they belong to the footnote (as with list items).
592<pre> { <code> }</pre>
593If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.
594</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].
597<blockquote>Notes can go in quotes.<ref>In quote.
600# And in list items.<ref>In list.</ref>
601This 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