1This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite.
6= Headers {{id name="headers" /}}=
8== Level 2 with an [[embedded link>>/url]] {{id name="level-2-with-an-embedded-link" /}}==
10=== Level 3 with //emphasis// {{id name="level-3-with-emphasis" /}}===
12==== Level 4 {{id name="level-4" /}}====
14===== Level 5 {{id name="level-5" /}}=====
16= Level 1 {{id name="level-1" /}}=
18== Level 2 with //emphasis// {{id name="level-2-with-emphasis" /}}==
20=== Level 3 {{id name="level-3" /}}===
24== Level 2 {{id name="level-2" /}}==
31= Paragraphs {{id name="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\\here.
44= Block Quotes {{id name="block-quotes" /}}=
48>This is a block quote. It is pretty short.
50>Code in a block quote:
70This should not be a block quote: 2 > 1.
72And a following paragraph.
77= Code Blocks {{id name="code-blocks" /}}=
83---- (should be four hyphens)
89this code block is indented by one tab
96 this code block is indented by two tabs
98These should not be escaped: \$ \\ \> \[ \{
104= Lists {{id name="lists" /}}=
106== Unordered {{id name="unordered" /}}==
144== Ordered {{id name="ordered" /}}==
174Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.
178== Nested {{id name="nested" /}}==
193Same thing but with paragraphs:
203== Tabs and spaces {{id name="tabs-and-spaces" /}}==
205*. this is a list item indented with tabs
206*. this is a list item indented with spaces
208**. this is an example list item indented with tabs
209**. this is an example list item indented with spaces
211== Fancy list markers {{id name="fancy-list-markers" /}}==
21811. sublist with roman numerals, starting with 4
227111. Decimal start with 6
2281111. Lower alpha with paren
236Should not be a list item:
245= Definition Lists {{id name="definition-lists" /}}=
277Multiple blocks with italics:
282contains seeds, crisp, pleasant to taste
295Multiple definitions, tight:
304Multiple definitions, loose:
317Blank line after term, indented marker, alternate markers:
330= HTML Blocks {{id name="html-blocks" /}}=
332Simple block on one line:
335And nested without indentation:
340Interpreted markdown in a table:
345This is //emphasized//
348And this is **strong**
353Here’s a simple block:
357This should be a code block, though:
376This should just be an HTML comment:
390Just plain comment, with trailing spaces on the line:
414= Inline Markup {{id name="inline-markup" /}}=
416This is //emphasized//, and so //is this//.
418This is **strong**, and so **is this**.
420An //[[emphasized link>>/url]]//.
422**//This is strong and em.//**
424So is **//this//** word.
426**//This is strong and em.//**
428So is **//this//** word.
430This is code: {{code}}>{{/code}}, {{code}}${{/code}}, {{code}}\{{/code}}, {{code}}\${{/code}}, {{code}}<html>{{/code}}.
432--This is //strikeout//.--
434Superscripts: a^^bc^^d a^^//hello//^^ a^^hello there^^.
436Subscripts: H,,2,,O, H,,23,,O, H,,many of them,,O.
438These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~~b c~~d.
443= Smart quotes, ellipses, dashes {{id name="smart-quotes-ellipses-dashes" /}}=
445“Hello,” said the spider. “‘Shelob’ is my name.”
447‘A’, ‘B’, and ‘C’ are letters.
449‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’
451‘He said, “I want to go.”’ Were you alive in the 70’s?
453Here is some quoted ‘{{code}}code{{/code}}’ and a “[[quoted link>>http://example.com/?foo=1&bar=2]]”.
455Some dashes: one—two — three—four — five.
457Dashes between numbers: 5–7, 255–66, 1987–1999.
464= LaTeX {{id name="latex" /}}=
467*. {{formula}}2+2=4{{/formula}}
468*. {{formula}}x \in y{{/formula}}
469*. {{formula}}\alpha \wedge \omega{{/formula}}
470*. {{formula}}223{{/formula}}
471*. {{formula}}p{{/formula}}-Tree
472*. Here’s some display math: {{formula}}\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}{{/formula}}
473*. Here’s one that has a line break in it: {{formula}}\alpha + \omega \times x^2{{/formula}}.
475These shouldn’t be math:
477*. To get the famous equation, write {{code}}$e = mc^2${{/code}}.
478*. $22,000 is a //lot// of money. So is $34,000. (It worked if “lot” is emphasized.)
479*. Shoes ($20) and socks ($5).
480*. Escaped {{code}}${{/code}}: $73 //this should be emphasized// 23$.
488= Special Characters {{id name="special-characters" /}}=
498AT&T has an ampersand in their name.
500AT&T is another way to write it.
543= Links {{id name="links" /}}=
545== Explicit {{id name="explicit" /}}==
547Just a [[URL>>/url/]].
549[[URL and title>>/url/]].
551[[URL and title>>/url/]].
553[[URL and title>>/url/]].
555[[URL and title>>/url/]]
557[[URL and title>>/url/]]
559[[with_underscore>>/url/with_underscore]]
561[[Email link>>mailto:nobody@nowhere.net]]
565== Reference {{id name="reference" /}}==
569With [[embedded [brackets]>>/url/]].
571[[b>>/url/]] by itself should be a link.
573Indented [[once>>/url]].
575Indented [[twice>>/url]].
577Indented [[thrice>>/url]].
579This should [not][] be a link.
590== With ampersands {{id name="with-ampersands" /}}==
592Here’s a [[link with an ampersand in the URL>>http://example.com/?foo=1&bar=2]].
594Here’s a link with an amersand in the link text: [[AT&T>>http://att.com/]].
596Here’s an [[inline link>>/script?foo=1&bar=2]].
598Here’s an [[inline link in pointy braces>>/script?foo=1&bar=2]].
600== Autolinks {{id name="autolinks" /}}==
602With an ampersand: http://example.com/?foo=1&bar=2
605*. http://example.com/
608An e-mail address: [[nobody@nowhere.net>>mailto:nobody@nowhere.net]]
610>Blockquoted: http://example.com/
612Auto-links should not occur here: {{code}}<http://example.com/>{{/code}}
616or here: <http://example.com/>
622= Images {{id name="images" /}}=
624From “Voyage dans la Lune” by Georges Melies (1902):
626[[image:lalune.jpg||alt="lalune" title="fig:Voyage dans la Lune"]]
628Here is a movie [[image:movie.jpg||alt="movie"]] icon.
633= Footnotes {{id name="footnotes" /}}=
635Here is a footnote reference,{{footnote}}Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.{{/footnote}} and another.{{footnote}}Here’s the long note. This one contains multiple blocks.
637Subsequent blocks are indented to show that they belong to the footnote (as with list items).
644If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.{{/footnote}} This should //not// be a footnote reference, because it contains a space.[^my note] Here is an inline note.{{footnote}}This is //easier// to type. Inline notes may contain [[links>>http://google.com]] and {{code}}]{{/code}} verbatim characters, as well as [bracketed text].{{/footnote}}
646>Notes can go in quotes.{{footnote}}In quote.{{/footnote}}
6481. And in list items.{{footnote}}In list.{{/footnote}}
650This 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