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 embedded link =====
10==== Level 3 with emphasis ====
18===== Level 2 with emphasis =====
31====== Paragraphs ======
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\\
45====== Block Quotes ======
49> This is a block quote. It is pretty short.
71This should not be a block quote: 2 > 1.
73And a following paragraph.
78====== Code Blocks ======
83---- (should be four hyphens)
89this code block is indented by one tab
95 this code block is indented by two tabs
97These should not be escaped: \$ \\ \> \[ \{
171<HTML><ol style="list-style-type: decimal;"></HTML>
172<HTML><li></HTML><HTML><p></HTML>Item 1, graf one.<HTML></p></HTML>
173<HTML><p></HTML>Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.<HTML></p></HTML><HTML></li></HTML>
174<HTML><li></HTML><HTML><p></HTML>Item 2.<HTML></p></HTML><HTML></li></HTML>
175<HTML><li></HTML><HTML><p></HTML>Item 3.<HTML></p></HTML><HTML></li></HTML><HTML></ol></HTML>
192Same thing but with paragraphs:
201===== Tabs and spaces =====
203 * this is a list item indented with tabs
204 * this is a list item indented with spaces
205 * this is an example list item indented with tabs
206 * this is an example list item indented with spaces
208===== Fancy list markers =====
210<HTML><ol start="2" style="list-style-type: decimal;"></HTML>
211<HTML><li></HTML><HTML><p></HTML>begins with 2<HTML></p></HTML><HTML></li></HTML>
212<HTML><li></HTML><HTML><p></HTML>and now 3<HTML></p></HTML>
213<HTML><p></HTML>with a continuation<HTML></p></HTML>
214<HTML><ol start="4" style="list-style-type: lower-roman;"></HTML>
215<HTML><li></HTML>sublist with roman numerals, starting with 4<HTML></li></HTML>
216<HTML><li></HTML>more items
217<HTML><ol style="list-style-type: upper-alpha;"></HTML>
218<HTML><li></HTML>a subsublist<HTML></li></HTML>
219<HTML><li></HTML>a subsublist<HTML></li></HTML><HTML></ol></HTML>
220<HTML></li></HTML><HTML></ol></HTML>
221<HTML></li></HTML><HTML></ol></HTML>
225<HTML><ol style="list-style-type: upper-alpha;"></HTML>
226<HTML><li></HTML>Upper Alpha
227<HTML><ol style="list-style-type: upper-roman;"></HTML>
228<HTML><li></HTML>Upper Roman.
229<HTML><ol start="6" style="list-style-type: decimal;"></HTML>
230<HTML><li></HTML>Decimal start with 6
231<HTML><ol start="3" style="list-style-type: lower-alpha;"></HTML>
232<HTML><li></HTML>Lower alpha with paren<HTML></li></HTML><HTML></ol></HTML>
233<HTML></li></HTML><HTML></ol></HTML>
234<HTML></li></HTML><HTML></ol></HTML>
235<HTML></li></HTML><HTML></ol></HTML>
243Should not be a list item:
252====== Definition Lists ======
256 * **apple** red fruit
257 * **orange** orange fruit
258 * **banana** yellow fruit
262 * **apple** red fruit
263 * **orange** orange fruit
264 * **banana** yellow fruit
268 * **apple** red fruit
269 * **orange** orange fruit
270 * **banana** yellow fruit
272Multiple blocks with italics:
275<HTML><dt></HTML>//apple//<HTML></dt></HTML>
276<HTML><dd></HTML><HTML><p></HTML>red fruit<HTML></p></HTML>
277<HTML><p></HTML>contains seeds, crisp, pleasant to taste<HTML></p></HTML><HTML></dd></HTML>
278<HTML><dt></HTML>//orange//<HTML></dt></HTML>
279<HTML><dd></HTML><HTML><p></HTML>orange fruit<HTML></p></HTML>
284> <HTML><p></HTML>orange block quote<HTML></p></HTML>
285<HTML></dd></HTML><HTML></dl></HTML>
287Multiple definitions, tight:
289 * **apple** red fruitcomputer
290 * **orange** orange fruitbank
292Multiple definitions, loose:
294 * **apple** red fruitcomputer
295 * **orange** orange fruitbank
297Blank line after term, indented marker, alternate markers:
299 * **apple** red fruitcomputer
300 * **orange** orange fruit
304====== HTML Blocks ======
306Simple block on one line:
310And nested without indentation:
319Interpreted markdown in a table:
326This is //emphasized//
331And this is **strong**
336<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
338Here’s a simple block:
343This should be a code block, though:
363This should just be an HTML comment:
376 This is another comment.
385Just plain comment, with trailing spaces on the line:
405<hr class="foo" id="bar" />
406<hr class="foo" id="bar" />
407<hr class="foo" id="bar">
412====== Inline Markup ======
414This is //emphasized//, and so //is this//.
416This is **strong**, and so **is this**.
418An //[[url|emphasized link]]//.
420**//This is strong and em.//**
422So is **//this//** word.
424**//This is strong and em.//**
426So is **//this//** word.
428This is code: ''%%>%%'', ''%%$%%'', ''%%\%%'', ''%%\$%%'', ''%%<html>%%''.
430<del>This is //strikeout//.</del>
432Superscripts: a<sup>bc</sup>d a<sup>//hello//</sup> a<sup>hello there</sup>.
434Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.
436These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.
441====== Smart quotes, ellipses, dashes ======
443“Hello,” said the spider. “‘Shelob’ is my name.”
445‘A’, ‘B’, and ‘C’ are letters.
447‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’
449‘He said, “I want to go.”’ Were you alive in the 70’s?
451Here is some quoted ‘''%%code%%''’ and a “[[http://example.com/?foo=1&bar=2|quoted link]]”.
453Some dashes: one—two — three—four — five.
455Dashes between numbers: 5–7, 255–66, 1987–1999.
467 * $\alpha \wedge \omega$
470 * Here’s some display math: $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
471 * Here’s one that has a line break in it: $\alpha + \omega \times x^2$.
473These shouldn’t be math:
475 * To get the famous equation, write ''%%$e = mc^2$%%''.
476 * $22,000 is a //lot// of money. So is $34,000. (It worked if “lot” is emphasized.)
477 * Shoes ($20) and socks ($5).
478 * Escaped ''%%$%%'': $73 //this should be emphasized// 23$.
486====== Special Characters ======
496AT&T has an ampersand in their name.
498AT&T is another way to write it.
547[[url/|URL and title]].
549[[url/|URL and title]].
551[[url/|URL and title]].
553[[url/|URL and title]]
555[[url/|URL and title]]
557[[url/with_underscore|with_underscore]]
559[[mailto:nobody@nowhere.net|Email link]]
567With [[url/|embedded [brackets]]].
569[[url/|b]] by itself should be a link.
571Indented [[url|once]].
573Indented [[url|twice]].
575Indented [[url|thrice]].
577This should [not][] be a link.
587===== With ampersands =====
589Here’s a [[http://example.com/?foo=1&bar=2|link with an ampersand in the URL]].
591Here’s a link with an amersand in the link text: [[http://att.com/|AT&T]].
593Here’s an [[script?foo=1&bar=2|inline link]].
595Here’s an [[script?foo=1&bar=2|inline link in pointy braces]].
599With an ampersand: http://example.com/?foo=1&bar=2
602 * http://example.com/
605An e-mail address: <nobody@nowhere.net>
607> Blockquoted: http://example.com/
609Auto-links should not occur here: ''%%<http://example.com/>%%''
612or here: <http://example.com/>
620From “Voyage dans la Lune” by Georges Melies (1902):
622{{lalune.jpg|Voyage dans la Lune lalune}}
624Here is a movie {{movie.jpg|movie}} icon.
629====== Footnotes ======
631Here is a footnote reference,((Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.
632)) and another.((Here’s the long note. This one contains multiple blocks.
634Subsequent blocks are indented to show that they belong to the footnote (as with list items).
640If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.
641)) This should //not// be a footnote reference, because it contains a space.[^my note] Here is an inline note.((This is //easier// to type. Inline notes may contain [[http://google.com|links]] and ''%%]%%'' verbatim characters, as well as [bracketed text].
644> Notes can go in quotes.((In quote.
647 - And in list items.((In list.))
649This 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