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:
298Multiple blocks with italics:
304 crisp, pleasant to taste
309 { orange code block }
313Multiple definitions, tight:
322Multiple definitions, loose:
334Blank line after term, indented marker, alternate markers:
351Simple block on one line:
355And nested without indentation:
366Interpreted markdown in a table:
370<td>This is *emphasized*</td>
371<td>And this is **strong**</td>
375<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
377Here's a simple block:
383This should be a code block, though:
403This should just be an HTML comment:
415 This is another comment.
422Just plain comment, with trailing spaces on the line:
444<hr class="foo" id="bar" />
446<hr class="foo" id="bar"/>
448<hr class="foo" id="bar" >
454This is *emphasized*, and so _is this_.
456This is **strong**, and so __is this__.
458An *[emphasized link](/url)*.
460***This is strong and em.***
462So is ***this*** word.
464___This is strong and em.___
466So is ___this___ word.
468This is code: `>`, `$`, `\`, `\$`, `<html>`.
470~~This is *strikeout*.~~
472Superscripts: a^bc^d a^*hello*^ a^hello\ there^.
474Subscripts: H~2~O, H~23~O, H~many\ of\ them~O.
476These should not be superscripts or subscripts,
477because of the unescaped spaces: a^b c^d, a~b c~d.
481# Smart quotes, ellipses, dashes
483"Hello," said the spider. "'Shelob' is my name."
485'A', 'B', and 'C' are letters.
487'Oak,' 'elm,' and 'beech' are names of trees.
490'He said, "I want to go."' Were you alive in the
493Here is some quoted '`code`' and a "[quoted link][1]".
495Some dashes: one---two --- three--four -- five.
497Dashes between numbers: 5-7, 255-66, 1987-1999.
499Ellipses...and. . .and . . . .
505- \cite[22-23]{smith.1899}
508- $\alpha \wedge \omega$
511- Here's some display math:
512 $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
513- Here's one that has a line break in it: $\alpha + \omega \times
516These shouldn't be math:
518- To get the famous equation, write `$e = mc^2$`.
519- $22,000 is a *lot* of money. So is $34,000.
520 (It worked if "lot" is emphasized.)
521- Shoes ($20) and socks ($5).
522- Escaped `$`: $73 *this should be emphasized* 23\$.
526\begin{tabular}{|l|l|}\hline
527Animal & Number \\ \hline
544AT&T has an ampersand in their name.
546AT&T is another way to write it.
586- - - - - - - - - - - - -
594[URL and title](/url/ "title").
596[URL and title](/url/ "title preceded by two spaces").
598[URL and title](/url/ "title preceded by a tab").
600[URL and title](/url/ "title with "quotes" in it")
602[URL and title](/url/ 'title with single quotes')
604[with\_underscore](/url/with_underscore)
606[Email link](mailto:nobody@nowhere.net)
621With [embedded [brackets]] [b].
623[b] by itself should be a link.
631This should [not][] be a link.
645Foo [biz](/url/ "Title with "quote" inside").
647 [bar]: /url/ "Title with "quotes" inside"
651Here's a [link with an ampersand in the URL] [1].
653Here's a link with an amersand in the link text: [AT&T] [2].
655Here's an [inline link](/script?foo=1&bar=2).
657Here's an [inline link in pointy braces](</script?foo=1&bar=2>).
659[1]: http://example.com/?foo=1&bar=2
660[2]: http://att.com/ "AT&T"
664With an ampersand: <http://example.com/?foo=1&bar=2>
667* <http://example.com/>
670An e-mail address: <nobody@nowhere.net>
672> Blockquoted: <http://example.com/>
674Auto-links should not occur here: `<http://example.com/>`
676 or here: <http://example.com/>
682From "Voyage dans la Lune" by Georges Melies (1902):
686 [lalune]: lalune.jpg "Voyage dans la Lune"
688Here is a movie  icon.
694Here is a footnote reference,[^1] and another.[^longnote]
695This should *not* be a footnote reference, because it
696contains a space.[^my note] Here is an inline note.^[This
697is *easier* to type. Inline notes may contain
698[links](http://google.com) and `]` verbatim characters,
699as well as [bracketed text].]
701> Notes can go in quotes.^[In quote.]
7031. And in list items.^[In list.]
705[^longnote]: Here's the long note. This one contains multiple
708 Subsequent blocks are indented to show that they belong to the
709footnote (as with list items).
713 If you want, you can indent every line, but you can also be
714 lazy and just indent the first line of each block.
716This paragraph should not be part of the note, as it is not indented.
718[^1]: Here is the footnote. It can go anywhere after the footnote
719reference. 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