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.
70This should not be a block quote: 2 > 1.
72And a following paragraph.
77====== Code Blocks ======
82---- (should be four hyphens)
88this code block is indented by one tab
93 this code block is indented by two tabs
95These should not be escaped: \$ \\ \> \[ \{
168<HTML><ol style="list-style-type: decimal;"></HTML>
169<HTML><li></HTML><HTML><p></HTML>Item 1, graf one.<HTML></p></HTML>
170<HTML><p></HTML>Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.<HTML></p></HTML><HTML></li></HTML>
171<HTML><li></HTML><HTML><p></HTML>Item 2.<HTML></p></HTML><HTML></li></HTML>
172<HTML><li></HTML><HTML><p></HTML>Item 3.<HTML></p></HTML><HTML></li></HTML><HTML></ol></HTML>
189Same thing but with paragraphs:
198===== Tabs and spaces =====
200 * this is a list item indented with tabs
201 * this is a list item indented with spaces
202 * this is an example list item indented with tabs
203 * this is an example list item indented with spaces
205===== Fancy list markers =====
207<HTML><ol start="2" style="list-style-type: decimal;"></HTML>
208<HTML><li></HTML>begins with 2<HTML></li></HTML>
209<HTML><li></HTML><HTML><p></HTML>and now 3<HTML></p></HTML>
210<HTML><p></HTML>with a continuation<HTML></p></HTML>
211<HTML><ol start="4" style="list-style-type: lower-roman;"></HTML>
212<HTML><li></HTML>sublist with roman numerals, starting with 4<HTML></li></HTML>
213<HTML><li></HTML>more items
214<HTML><ol style="list-style-type: upper-alpha;"></HTML>
215<HTML><li></HTML>a subsublist<HTML></li></HTML>
216<HTML><li></HTML>a subsublist<HTML></li></HTML><HTML></ol></HTML>
217<HTML></li></HTML><HTML></ol></HTML>
218<HTML></li></HTML><HTML></ol></HTML>
222<HTML><ol style="list-style-type: upper-alpha;"></HTML>
223<HTML><li></HTML>Upper Alpha
224<HTML><ol style="list-style-type: upper-roman;"></HTML>
225<HTML><li></HTML>Upper Roman.
226<HTML><ol start="6" style="list-style-type: decimal;"></HTML>
227<HTML><li></HTML>Decimal start with 6
228<HTML><ol start="3" style="list-style-type: lower-alpha;"></HTML>
229<HTML><li></HTML>Lower alpha with paren<HTML></li></HTML><HTML></ol></HTML>
230<HTML></li></HTML><HTML></ol></HTML>
231<HTML></li></HTML><HTML></ol></HTML>
232<HTML></li></HTML><HTML></ol></HTML>
240Should not be a list item:
249====== Definition Lists ======
253 * **apple** red fruit
254 * **orange** orange fruit
255 * **banana** yellow fruit
259 * **apple** red fruit
260 * **orange** orange fruit
261 * **banana** yellow fruit
265 * **apple** red fruit
266 * **orange** orange fruit
267 * **banana** yellow fruit
269Multiple blocks with italics:
272<HTML><dt></HTML>//apple//<HTML></dt></HTML>
273<HTML><dd></HTML><HTML><p></HTML>red fruit<HTML></p></HTML>
274<HTML><p></HTML>contains seeds, crisp, pleasant to taste<HTML></p></HTML><HTML></dd></HTML>
275<HTML><dt></HTML>//orange//<HTML></dt></HTML>
276<HTML><dd></HTML><HTML><p></HTML>orange fruit<HTML></p></HTML>
280> <HTML><p></HTML>orange block quote<HTML></p></HTML>
281<HTML></dd></HTML><HTML></dl></HTML>
283Multiple definitions, tight:
285 * **apple** red fruitcomputer
286 * **orange** orange fruitbank
288Multiple definitions, loose:
290 * **apple** red fruitcomputer
291 * **orange** orange fruitbank
293Blank line after term, indented marker, alternate markers:
295 * **apple** red fruitcomputer
296 * **orange** orange fruit
300====== HTML Blocks ======
302Simple block on one line:
306And nested without indentation:
315Interpreted markdown in a table:
322This is //emphasized//
327And this is **strong**
332<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
334Here’s a simple block:
339This should be a code block, though:
357This should just be an HTML comment:
370 This is another comment.
378Just plain comment, with trailing spaces on the line:
397<hr class="foo" id="bar" />
398<hr class="foo" id="bar" />
399<hr class="foo" id="bar">
404====== Inline Markup ======
406This is //emphasized//, and so //is this//.
408This is **strong**, and so **is this**.
410An //[[url|emphasized link]]//.
412**//This is strong and em.//**
414So is **//this//** word.
416**//This is strong and em.//**
418So is **//this//** word.
420This is code: ''%%>%%'', ''%%$%%'', ''%%\%%'', ''%%\$%%'', ''%%<html>%%''.
422<del>This is //strikeout//.</del>
424Superscripts: a<sup>bc</sup>d a<sup>//hello//</sup> a<sup>hello there</sup>.
426Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.
428These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.
433====== Smart quotes, ellipses, dashes ======
435“Hello,” said the spider. “‘Shelob’ is my name.”
437‘A’, ‘B’, and ‘C’ are letters.
439‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’
441‘He said, “I want to go.”’ Were you alive in the 70’s?
443Here is some quoted ‘''%%code%%''’ and a “[[http://example.com/?foo=1&bar=2|quoted link]]”.
445Some dashes: one—two — three—four — five.
447Dashes between numbers: 5–7, 255–66, 1987–1999.
459 * $\alpha \wedge \omega$
462 * Here’s some display math: $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
463 * Here’s one that has a line break in it: $\alpha + \omega \times x^2$.
465These shouldn’t be math:
467 * To get the famous equation, write ''%%$e = mc^2$%%''.
468 * $22,000 is a //lot// of money. So is $34,000. (It worked if “lot” is emphasized.)
469 * Shoes ($20) and socks ($5).
470 * Escaped ''%%$%%'': $73 //this should be emphasized// 23$.
478====== Special Characters ======
488AT&T has an ampersand in their name.
490AT&T is another way to write it.
539[[url/|URL and title]].
541[[url/|URL and title]].
543[[url/|URL and title]].
545[[url/|URL and title]]
547[[url/|URL and title]]
549[[url/with_underscore|with_underscore]]
551[[mailto:nobody@nowhere.net|Email link]]
559With [[url/|embedded [brackets]]].
561[[url/|b]] by itself should be a link.
563Indented [[url|once]].
565Indented [[url|twice]].
567Indented [[url|thrice]].
569This should [not][] be a link.
578===== With ampersands =====
580Here’s a [[http://example.com/?foo=1&bar=2|link with an ampersand in the URL]].
582Here’s a link with an amersand in the link text: [[http://att.com/|AT&T]].
584Here’s an [[script?foo=1&bar=2|inline link]].
586Here’s an [[script?foo=1&bar=2|inline link in pointy braces]].
590With an ampersand: http://example.com/?foo=1&bar=2
593 * http://example.com/
596An e-mail address: <nobody@nowhere.net>
598> Blockquoted: http://example.com/
600Auto-links should not occur here: ''%%<http://example.com/>%%''
603or here: <http://example.com/>
610From “Voyage dans la Lune” by Georges Melies (1902):
612{{:lalune.jpg|Voyage dans la Lune lalune}}
614Here is a movie {{:movie.jpg|movie}} icon.
619====== Footnotes ======
621Here 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.
622)) and another.((Here’s the long note. This one contains multiple blocks.
624Subsequent blocks are indented to show that they belong to the footnote (as with list items).
629If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.
630)) 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].
633> Notes can go in quotes.((In quote.
636 - And in list items.((In list.))
638This 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