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><p>begins with 2</p></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:
360And nested without indentation:
385Interpreted markdown in a table:
397<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
398Here's a simple block:
407This should be a code block, though:
437This should just be an HTML comment:
447 This is another comment.
454Just plain comment, with trailing spaces on the line:
470<hr class="foo" id="bar" />
471<hr class="foo" id="bar" />
472<hr class="foo" id="bar">
475h1(#inline-markup). Inline Markup
477This is _emphasized_, and so _is this_.
479This is *strong*, and so *is this*.
481An _"emphasized link":/url_.
483*_This is strong and em._*
487*_This is strong and em._*
491This is code: @>@, @$@, @\@, @\$@, @<html>@.
493-This is _strikeout_.-
495Superscripts: a[^bc^]d a[^_hello_^] a[^hello there^].
497Subscripts: H[~2~]O, H[~23~]O, H[~many of them~]O.
499These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.
503h1(#smart-quotes-ellipses-dashes). Smart quotes, ellipses, dashes
505"Hello," said the spider. "'Shelob' is my name."
507'A', 'B', and 'C' are letters.
509'Oak,' 'elm,' and 'beech' are names of trees. So is 'pine.'
511'He said, "I want to go."' Were you alive in the 70's?
513Here is some quoted '@code@' and a ""quoted link":http://example.com/?foo=1&bar=2".
515Some dashes: one -- two -- three -- four -- five.
517Dashes between numbers: 5 - 7, 255 - 66, 1987 - 1999.
519Ellipses...and...and....
526* <span class="math">2+2=4</span>
527* <span class="math">x \in y</span>
528* <span class="math">\alpha \wedge \omega</span>
529* <span class="math">223</span>
530* <span class="math">p</span>-Tree
531* Here's some display math: <span class="math">\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}</span>
532* Here's one that has a line break in it: <span class="math">\alpha + \omega \times x^2</span>.
534These shouldn't be math:
536* To get the famous equation, write @$e = mc^2$@.
537* $22,000 is a _lot_ of money. So is $34,000. (It worked if "lot" is emphasized.)
538* Shoes ($20) and socks ($5).
539* Escaped @$@: $73 _this should be emphasized_ 23$.
546h1(#special-characters). Special Characters
556AT&T has an ampersand in their name.
558AT&T is another way to write it.
586Greater-than: >
602h2(#explicit). Explicit
606"URL and title":/url/.
608"URL and title":/url/.
610"URL and title":/url/.
616"with_underscore":/url/with_underscore
618"Email link":mailto:nobody@nowhere.net
622h2(#reference). Reference
626With "embedded [brackets]":/url/.
628"b":/url/ by itself should be a link.
632Indented "twice":/url.
634Indented "thrice":/url.
636This should [not][] be a link.
645h2(#with-ampersands). With ampersands
647Here's a "link with an ampersand in the URL":http://example.com/?foo=1&bar=2.
649Here's a link with an amersand in the link text: "AT&T":http://att.com/.
651Here's an "inline link":/script?foo=1&bar=2.
653Here's an "inline link in pointy braces":/script?foo=1&bar=2.
655h2(#autolinks). Autolinks
657With an ampersand: "$":http://example.com/?foo=1&bar=2
660* "$":http://example.com/
663An e-mail address: "(email)nobody@nowhere.net":mailto:nobody@nowhere.net
665bq. Blockquoted: "$":http://example.com/
669Auto-links should not occur here: @<http://example.com/>@
671bc. or here: <http://example.com/>
678From "Voyage dans la Lune" by Georges Melies (1902):
680!lalune.jpg(Voyage dans la Lune)!
683Here is a movie !movie.jpg(movie)! icon.
687h1(#footnotes). Footnotes
689Here 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]
691bq. Notes can go in quotes.[4]
695# And in list items.[5]
697This paragraph should not be part of the note, as it is not indented.
700fn1. Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.
703fn2. Here's the long note. This one contains multiple blocks.
705Subsequent blocks are indented to show that they belong to the footnote (as with list items).
710If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.
713fn3. 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