1This is a set of tests for pandoc. Most of them are adapted from John Gruber's markdown test suite.
7h2(#level-2-with-an-embedded-link). Level 2 with an "embedded link":/url
9h3(#level-3-with-emphasis). Level 3 with _emphasis_
17h2(#level-2-with-emphasis). Level 2 with _emphasis_
29h1(#paragraphs). Paragraphs
31Here's a regular paragraph.
33In 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.
35Here's one with a bullet. * criminey.
37There should be a hard line break
42h1(#block-quotes). Block Quotes
46bq. This is a block quote. It is pretty short.
76This should not be a block quote: 2 > 1.
78And a following paragraph.
82h1(#code-blocks). Code Blocks
87---- (should be four hyphens)
90 print "working";
93this code block is indented by one tab
99 this code block is indented by two tabs
101These should not be escaped: \$ \\ \> \[ \{
108h2(#unordered). Unordered
174<ol style="list-style-type: decimal;">
175<li><p>Item 1, graf one.</p>
176<p>Item 1. graf two. The quick brown fox jumped over the lazy dog's back.</p></li>
177<li><p>Item 2.</p></li>
178<li><p>Item 3.</p></li>
196Same thing but with paragraphs:
205h2(#tabs-and-spaces). Tabs and spaces
207* this is a list item indented with tabs
208* this is a list item indented with spaces
209** this is an example list item indented with tabs
210** this is an example list item indented with spaces
212h2(#fancy-list-markers). Fancy list markers
214<ol start="2" style="list-style-type: decimal;">
215<li>begins with 2</li>
217<p>with a continuation</p>
218<ol start="4" style="list-style-type: lower-roman;">
219<li>sublist with roman numerals, starting with 4</li>
221<ol style="list-style-type: upper-alpha;">
232<ol style="list-style-type: upper-alpha;">
234<ol style="list-style-type: upper-roman;">
236<ol start="6" style="list-style-type: decimal;">
237<li>Decimal start with 6
238<ol start="3" style="list-style-type: lower-alpha;">
239<li>Lower alpha with paren</li>
254Should not be a list item:
262h1(#definition-lists). Definition Lists
290<dd><p>red fruit</p></dd>
292<dd><p>orange fruit</p></dd>
294<dd><p>yellow fruit</p></dd>
297Multiple blocks with italics:
302<p>contains seeds, crisp, pleasant to taste</p></dd>
304<dd><p>orange fruit</p>
305bc. { orange code block }
308bq. <p>orange block quote</p>
313Multiple definitions, tight:
324Multiple definitions, loose:
328<dd><p>red fruit</p></dd>
329<dd><p>computer</p></dd>
331<dd><p>orange fruit</p></dd>
335Blank line after term, indented marker, alternate markers:
339<dd><p>red fruit</p></dd>
340<dd><p>computer</p></dd>
342<dd><p>orange fruit</p>
343<ol style="list-style-type: decimal;">
350h1(#html-blocks). HTML Blocks
352Simple block on one line:
358And nested without indentation:
371Interpreted markdown in a table:
384<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
386Here's a simple block:
393This should be a code block, though:
416This should just be an HTML comment:
428 This is another comment.
436Just plain comment, with trailing spaces on the line:
459<hr class="foo" id="bar" />
461<hr class="foo" id="bar" />
463<hr class="foo" id="bar">
467h1(#inline-markup). Inline Markup
469This is _emphasized_, and so _is this_.
471This is *strong*, and so *is this*.
473An _"emphasized link":/url_.
475*_This is strong and em._*
479*_This is strong and em._*
483This is code: @>@, @$@, @\@, @\$@, @<html>@.
485-This is _strikeout_.-
487Superscripts: a[^bc^]d a[^_hello_^] a[^hello there^].
489Subscripts: H[~2~]O, H[~23~]O, H[~many of them~]O.
491These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.
495h1(#smart-quotes-ellipses-dashes). Smart quotes, ellipses, dashes
497"Hello," said the spider. "'Shelob' is my name."
499'A', 'B', and 'C' are letters.
501'Oak,' 'elm,' and 'beech' are names of trees. So is 'pine.'
503'He said, "I want to go."' Were you alive in the 70's?
505Here is some quoted '@code@' and a ""quoted link":http://example.com/?foo=1&bar=2".
507Some dashes: one -- two -- three -- four -- five.
509Dashes between numbers: 5 - 7, 255 - 66, 1987 - 1999.
511Ellipses...and...and....
518* <span class="math">2+2=4</math>
519* <span class="math">x \in y</math>
520* <span class="math">\alpha \wedge \omega</math>
521* <span class="math">223</math>
522* <span class="math">p</math>-Tree
523* Here's some display math: <span class="math">\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}</math>
524* Here's one that has a line break in it: <span class="math">\alpha + \omega \times x^2</math>.
526These shouldn't be math:
528* To get the famous equation, write @$e = mc^2$@.
529* $22,000 is a _lot_ of money. So is $34,000. (It worked if "lot" is emphasized.)
530* Shoes ($20) and socks ($5).
531* Escaped @$@: $73 _this should be emphasized_ 23$.
538h1(#special-characters). Special Characters
548AT&T has an ampersand in their name.
550AT&T is another way to write it.
594h2(#explicit). Explicit
598"URL and title":/url/.
600"URL and title":/url/.
602"URL and title":/url/.
608"with_underscore":/url/with_underscore
610"Email link":mailto:nobody@nowhere.net
614h2(#reference). Reference
622With "embedded [brackets]":/url/.
624"b":/url/ by itself should be a link.
628Indented "twice":/url.
630Indented "thrice":/url.
632This should [not][] be a link.
641h2(#with-ampersands). With ampersands
643Here's a "link with an ampersand in the URL":http://example.com/?foo=1&bar=2.
645Here's a link with an amersand in the link text: "AT&T":http://att.com/.
647Here's an "inline link":/script?foo=1&bar=2.
649Here's an "inline link in pointy braces":/script?foo=1&bar=2.
651h2(#autolinks). Autolinks
653With an ampersand: "$":http://example.com/?foo=1&bar=2
656* "$":http://example.com/
659An e-mail address: "nobody@nowhere.net":mailto:nobody@nowhere.net
661bq. Blockquoted: "$":http://example.com/
665Auto-links should not occur here: @<http://example.com/>@
667bc. or here: <http://example.com/>
674From "Voyage dans la Lune" by Georges Melies (1902):
676!lalune.jpg(Voyage dans la Lune)!
679Here is a movie !movie.jpg(movie)! icon.
683h1(#footnotes). Footnotes
685Here is a footnote reference,[1] and another.[2] This should _not_ be a footnote reference, because it contains a space.[^my note] Here is an inline note.[3]
687bq. Notes can go in quotes.[4]
691# And in list items.[5]
693This paragraph should not be part of the note, as it is not indented.
696fn1. Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.
699fn2. Here's the long note. This one contains multiple blocks.
701Subsequent blocks are indented to show that they belong to the footnote (as with list items).
706If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.
709fn3. This is _easier_ to type. Inline notes may contain "links":http://google.com and @]@ verbatim characters, as well as [bracketed text].
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