2% John MacFarlane; Anonymous
5This is a set of tests for pandoc. Most of them are adapted from
6John Gruber's markdown test suite.
12## Level 2 with an [embedded link](/url)
14### Level 3 with *emphasis*
23Level 2 with *emphasis*
24-----------------------
37Here's a regular paragraph.
39In Markdown 1.0.0 and earlier. Version
408. This line turns into a list item.
41Because a hard-wrapped line in the
42middle of a paragraph looked like a
45Here's one with a bullet.
48There should be a hard line break
57> This is a block quote.
60> Code in a block quote:
78This should not be a block quote: 2
81And a following paragraph.
89 ---- (should be four hyphens)
95 this code block is indented by one tab
99 this code block is indented by two tabs
101 These should not be escaped: \$ \\ \> \[ \{
185 Item 1. graf two. The quick brown fox jumped over the lazy dog's
207Same thing but with paragraphs:
227 + this is an example list item
230 + this is an example list item
240 iv. sublist with roman numerals,
250 (6) Decimal start with 6
251 c) Lower alpha with paren
259Should not be a list item:
305Multiple blocks with italics:
312 crisp, pleasant to taste
318 { orange code block }
322Multiple definitions, tight:
332Multiple definitions, loose:
346Blank line after term, indented marker, alternate markers:
363Simple block on one line:
367And nested without indentation:
378Interpreted markdown in a table:
382<td>This is *emphasized*</td>
383<td>And this is **strong**</td>
387<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
389Here's a simple block:
395This should be a code block, though:
415This should just be an HTML comment:
427 This is another comment.
434Just plain comment, with trailing spaces on the line:
456<hr class="foo" id="bar" />
458<hr class="foo" id="bar" />
460<hr class="foo" id="bar">
466This is *emphasized*, and so _is this_.
468This is **strong**, and so __is this__.
470An *[emphasized link](/url)*.
472***This is strong and em.***
474So is ***this*** word.
476___This is strong and em.___
478So is ___this___ word.
480This is code: `>`, `$`, `\`, `\$`, `<html>`.
482~~This is *strikeout*.~~
484Superscripts: a^bc^d a^*hello*^ a^hello\ there^.
486Subscripts: H~2~O, H~23~O, H~many\ of\ them~O.
488These should not be superscripts or subscripts,
489because of the unescaped spaces: a^b c^d, a~b c~d.
493# Smart quotes, ellipses, dashes
495"Hello," said the spider. "'Shelob' is my name."
497'A', 'B', and 'C' are letters.
499'Oak,' 'elm,' and 'beech' are names of trees.
502'He said, "I want to go."' Were you alive in the
505Here is some quoted '`code`' and a "[quoted link][1]".
507Some dashes: one---two --- three---four --- five.
509Dashes between numbers: 5--7, 255--66, 1987--1999.
511Ellipses...and...and....
517- \cite[22-23]{smith.1899}
520- $\alpha \wedge \omega$
523- Here's some display math:
524 $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
525- Here's one that has a line break in it: $\alpha + \omega \times
528These shouldn't be math:
530- To get the famous equation, write `$e = mc^2$`.
531- $22,000 is a *lot* of money. So is $34,000.
532 (It worked if "lot" is emphasized.)
533- Shoes ($20) and socks ($5).
534- Escaped `$`: $73 *this should be emphasized* 23\$.
538\begin{tabular}{|l|l|}\hline
539Animal & Number \\ \hline
556AT&T has an ampersand in their name.
558AT&T is another way to write it.
598- - - - - - - - - - - - -
606[URL and title](/url/ "title").
608[URL and title](/url/ "title preceded by two spaces").
610[URL and title](/url/ "title preceded by a tab").
612[URL and title](/url/ "title with "quotes" in it")
614[URL and title](/url/ 'title with single quotes')
616[with\_underscore](/url/with_underscore)
618[Email link](mailto:nobody@nowhere.net)
628With [embedded [brackets]][b].
630[b] by itself should be a link.
638This should [not][] be a link.
651Foo [biz](/url/ "Title with "quote" inside").
653 [bar]: /url/ "Title with "quotes" inside"
657Here's a [link with an ampersand in the URL][1].
659Here's a link with an amersand in the link text: [AT&T][2].
661Here's an [inline link](/script?foo=1&bar=2).
663Here's an [inline link in pointy braces](</script?foo=1&bar=2>).
665[1]: http://example.com/?foo=1&bar=2
666[2]: http://att.com/ "AT&T"
670With an ampersand: <http://example.com/?foo=1&bar=2>
673* <http://example.com/>
676An e-mail address: <nobody@nowhere.net>
678> Blockquoted: <http://example.com/>
680Auto-links should not occur here: `<http://example.com/>`
682 or here: <http://example.com/>
688From "Voyage dans la Lune" by Georges Melies (1902):
692 [lalune]: lalune.jpg "Voyage dans la Lune"
694Here is a movie  icon.
700Here is a footnote reference,[^1] and another.[^longnote]
701This should *not* be a footnote reference, because it
702contains a space.[^my note] Here is an inline note.^[This
703is *easier* to type. Inline notes may contain
704[links](http://google.com) and `]` verbatim characters,
705as well as [bracketed text].]
707> Notes can go in quotes.^[In quote.]
7091. And in list items.^[In list.]
711[^longnote]: Here's the long note. This one contains multiple
714 Subsequent blocks are indented to show that they belong to the
715footnote (as with list items).
719 If you want, you can indent every line, but you can also be
720 lazy and just indent the first line of each block.
722This paragraph should not be part of the note, as it is not indented.
724 [^1]: Here is the footnote. It can go anywhere after the footnote
725 reference. It need not be placed at the end of the document.
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