2#title Pandoc Test Suite
5This is a set of tests for pandoc. Most of them are adapted from John Gruber’s
12** Level 2 with an [[/url][embedded link]]
14*** Level 3 with <em>emphasis</em>
22** Level 2 with <em>emphasis</em>
36Here’s a regular paragraph.
38In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
39Because a hard-wrapped line in the middle of a paragraph looked like a list
42Here’s one with a bullet. <verbatim>*</verbatim> criminey.
44There should be a hard line break<br>
54This is a block quote. It is pretty short.
82This should not be a block quote: 2 <verbatim>></verbatim> 1.
84And a following paragraph.
93---- (should be four hyphens)
99this code block is indented by one tab
105 this code block is indented by two tabs
107These should not be escaped: \$ \\ \> \[ \{
182 Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.
201Same thing but with paragraphs:
213 - this is a list item indented with tabs
214 - this is a list item indented with spaces
216 - this is an example list item indented with tabs
217 - this is an example list item indented with spaces
226 iv. sublist with roman numerals, starting with 4
235 6. Decimal start with 6
236 c. Lower alpha with paren
244Should not be a list item:
257 orange :: orange fruit
258 banana :: yellow fruit
263 orange :: orange fruit
264 banana :: yellow fruit
269 orange :: orange fruit
270 banana :: yellow fruit
272Multiple blocks with italics:
274 <em>apple</em> :: red fruit
276 contains seeds, crisp, pleasant to taste
277 <em>orange</em> :: orange fruit
280 { orange code block }
287Multiple definitions, tight:
291 orange :: orange fruit
294Multiple definitions, loose:
299 orange :: orange fruit
303Blank line after term, indented marker, alternate markers:
308 orange :: orange fruit
315Simple block on one line:
318And nested without indentation:
323Interpreted markdown in a table:
325<literal style="html">
329<literal style="html">
333<literal style="html">
337This is <em>emphasized</em>
339<literal style="html">
343<literal style="html">
347And this is <strong>strong</strong>
349<literal style="html">
353<literal style="html">
357<literal style="html">
361<literal style="html">
362<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
365Here’s a simple block:
369This should be a code block, though:
386This should just be an HTML comment:
388<literal style="html">
394<literal style="html">
401<literal style="html">
403 This is another comment.
413Just plain comment, with trailing spaces on the line:
415<literal style="html">
427<literal style="html">
431<literal style="html">
435<literal style="html">
439<literal style="html">
443<literal style="html">
447<literal style="html">
451<literal style="html">
452<hr class="foo" id="bar" />
455<literal style="html">
456<hr class="foo" id="bar" />
459<literal style="html">
460<hr class="foo" id="bar">
467This is <em>emphasized</em>, and so <em>is this</em>.
469This is <strong>strong</strong>, and so <strong>is this</strong>.
471An <em>[[/url][emphasized link]]</em>.
473<strong><em>This is strong and em.</em></strong>
475So is <strong><em>this</em></strong> word.
477<strong><em>This is strong and em.</em></strong>
479So is <strong><em>this</em></strong> word.
481This is code: <code><verbatim>></verbatim></code>, <code>$</code>,
482<code>\</code>, <code>\$</code>, <code><verbatim><html></verbatim></code>.
484<del>This is <em>strikeout</em>.</del>
486Superscripts: a<sup>bc</sup>d a<sup><em>hello</em></sup>
487a<sup>hello there</sup>.
489Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.
491These should not be superscripts or subscripts, because of the unescaped
492spaces: a^b c^d, a~b c~d.
496* Smart quotes, ellipses, dashes
498"Hello," said the spider. "'Shelob' is my name."
500'A', 'B', and 'C' are letters.
502'Oak,' 'elm,' and 'beech' are names of trees. So is 'pine.'
504'He said, "I want to go."' Were you alive in the 70’s?
506Here is some quoted '<code>code</code>' and a
507"[[http://example.com/?foo=1&bar=2][quoted link]]".
509Some dashes: one—two — three—four — five.
511Dashes between numbers: 5–7, 255–66, 1987–1999.
519 - <literal style="tex">\cite[22-23]{smith.1899}</literal>
520 - 2 + 2 <verbatim>=</verbatim> 4
521 - <em>x</em> ∈ <em>y</em>
522 - <em>α</em> ∧ <em>ω</em>
525 - Here’s some display math:
526 <verse><verbatim>$$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$</verbatim></verse>
527 - Here’s one that has a line break in it:
528 <em>α</em> + <em>ω</em> × <em>x</em><sup>2</sup>.
530These shouldn’t be math:
532 - To get the famous equation, write
533 <code><verbatim>$e = mc^2$</verbatim></code>.
534 - $22,000 is a <em>lot</em> of money. So is $34,000. (It worked if "lot" is
536 - Shoes ($20) and socks ($5).
537 - Escaped <code>$</code>: $73 <em>this should be emphasized</em> 23$.
541<literal style="latex">
542\begin{tabular}{|l|l|}\hline
543Animal & Number \\ \hline
561AT&T has an ampersand in their name.
563AT&T is another way to write it.
5674 <verbatim><</verbatim> 5.
5696 <verbatim>></verbatim> 5.
575Asterisk: <verbatim>*</verbatim>
583Left bracket: <verbatim>[</verbatim>
585Right bracket: <verbatim>]</verbatim>
591Greater-than: <verbatim>></verbatim>
609Just a [[/url/][URL]].
611[[/url/][URL and title]].
613[[/url/][URL and title]].
615[[/url/][URL and title]].
617[[/url/][URL and title]]
619[[/url/][URL and title]]
621[[/url/with_underscore][with_underscore]]
623[[mailto:nobody@nowhere.net][Email link]]
631With [[/url/][embedded <verbatim>[brackets]</verbatim>]].
633[[/url/][b]] by itself should be a link.
635Indented [[/url][once]].
637Indented [[/url][twice]].
639Indented [[/url][thrice]].
641This should <verbatim>[not][]</verbatim> be a link.
653Here’s a [[http://example.com/?foo=1&bar=2][link with an ampersand in the
656Here’s a link with an amersand in the link text: [[http://att.com/][AT&T]].
658Here’s an [[/script?foo=1&bar=2][inline link]].
660Here’s an [[/script?foo=1&bar=2][inline link in pointy braces]].
664With an ampersand: [[http://example.com/?foo=1&bar=2]]
667 - [[http://example.com/]]
670An e-mail address: [[mailto:nobody@nowhere.net][nobody@nowhere.net]]
673Blockquoted: [[http://example.com/]]
676Auto-links should not occur here:
677<code><verbatim><http://example.com/></verbatim></code>
680or here: <http://example.com/>
687From "Voyage dans la Lune" by Georges Melies (1902):
689[[lalune.jpg][Voyage dans la Lune]]
691Here is a movie [[movie.jpg][movie]] icon.
697Here is a footnote reference,[1] and another.[2] This should <em>not</em> be a
698footnote reference, because it contains a <verbatim>space.[^my</verbatim>
699<verbatim>note]</verbatim> Here is an inline note.[3]
702Notes can go in quotes.[4]
705 1. And in list items.[5]
707This paragraph should not be part of the note, as it is not indented.
709[1] Here is the footnote. It can go anywhere after the footnote reference. It
710 need not be placed at the end of the document.
712[2] Here’s the long note. This one contains multiple blocks.
714 Subsequent blocks are indented to show that they belong to the footnote
715 (as with list items).
721 If you want, you can indent every line, but you can also be lazy and just
722 indent the first line of each block.
724[3] This is <em>easier</em> to type. Inline notes may contain
725 [[http://google.com][links]] and <code><verbatim>]</verbatim></code>
726 verbatim characters, as well as <verbatim>[bracketed</verbatim>
727 <verbatim>text].</verbatim>
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