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:
298 orange :: orange fruit
301Blank line after term, indented marker, alternate markers:
305 orange :: orange fruit
312Simple block on one line:
315And nested without indentation:
320Interpreted markdown in a table:
322<literal style="html">
326<literal style="html">
330<literal style="html">
334This is <em>emphasized</em>
336<literal style="html">
340<literal style="html">
344And this is <strong>strong</strong>
346<literal style="html">
350<literal style="html">
354<literal style="html">
358<literal style="html">
359<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
362Here’s a simple block:
366This should be a code block, though:
383This should just be an HTML comment:
385<literal style="html">
391<literal style="html">
398<literal style="html">
400 This is another comment.
410Just plain comment, with trailing spaces on the line:
412<literal style="html">
424<literal style="html">
428<literal style="html">
432<literal style="html">
436<literal style="html">
440<literal style="html">
444<literal style="html">
448<literal style="html">
449<hr class="foo" id="bar" />
452<literal style="html">
453<hr class="foo" id="bar" />
456<literal style="html">
457<hr class="foo" id="bar">
464This is <em>emphasized</em>, and so <em>is this</em>.
466This is <strong>strong</strong>, and so <strong>is this</strong>.
468An <em>[[/url][emphasized link]]</em>.
470<strong><em>This is strong and em.</em></strong>
472So is <strong><em>this</em></strong> word.
474<strong><em>This is strong and em.</em></strong>
476So is <strong><em>this</em></strong> word.
478This is code: <code>></code>, <code>$</code>, <code>\</code>, <code>\$</code>,
481<del>This is <em>strikeout</em>.</del>
483Superscripts: a<sup>bc</sup>d a<sup><em>hello</em></sup>
484a<sup>hello there</sup>.
486Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.
488These should not be superscripts or subscripts, because of the unescaped
489spaces: a^b c^d, a~b c~d.
493* Smart quotes, ellipses, dashes
495“Hello,” said the spider. “‘Shelob’ is my name.”
497‘A’, ‘B’, and ‘C’ are letters.
499‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’
501‘He said, “I want to go.”’ Were you alive in the 70’s?
503Here is some quoted ‘<code>code</code>’ and a
504“[[http://example.com/?foo=1&bar=2][quoted link]]”.
506Some dashes: one—two — three—four — five.
508Dashes between numbers: 5–7, 255–66, 1987–1999.
516 - <literal style="tex">\cite[22-23]{smith.1899}</literal>
517 - <verbatim>2 + 2 = 4</verbatim>
518 - <em>x</em> ∈ <em>y</em>
519 - <em>α</em> ∧ <em>ω</em>
522 - Here’s some display math:
523 <verbatim>$$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$</verbatim>
524 - Here’s one that has a line break in it:
525 <em>α</em> + <em>ω</em> × <em>x</em><sup>2</sup>.
527These shouldn’t be math:
529 - To get the famous equation, write <code>$e = mc^2$</code>.
530 - $22,000 is a <em>lot</em> of money. So is $34,000. (It worked if “lot” is
532 - Shoes ($20) and socks ($5).
533 - Escaped <code>$</code>: $73 <em>this should be emphasized</em> 23$.
537<literal style="latex">
538\begin{tabular}{|l|l|}\hline
539Animal & Number \\ \hline
557AT&T has an ampersand in their name.
559AT&T is another way to write it.
5634 <verbatim><</verbatim> 5.
5656 <verbatim>></verbatim> 5.
571Asterisk: <verbatim>*</verbatim>
579Left bracket: <verbatim>[</verbatim>
581Right bracket: <verbatim>]</verbatim>
587Greater-than: <verbatim>></verbatim>
589Hash: <verbatim>#</verbatim>
597Minus: <verbatim>-</verbatim>
605Just a [[/url/][URL]].
607[[/url/][URL and title]].
609[[/url/][URL and title]].
611[[/url/][URL and title]].
613[[/url/][URL and title]]
615[[/url/][URL and title]]
617[[/url/with_underscore][with_underscore]]
619[[mailto:nobody@nowhere.net][Email link]]
627With [[/url/][embedded <verbatim>[brackets]</verbatim>]].
629[[/url/][b]] by itself should be a link.
631Indented [[/url][once]].
633Indented [[/url][twice]].
635Indented [[/url][thrice]].
637This should <verbatim>[not][]</verbatim> be a link.
649Here’s a [[http://example.com/?foo=1&bar=2][link with an ampersand in the
652Here’s a link with an amersand in the link text: [[http://att.com/][AT&T]].
654Here’s an [[/script?foo=1&bar=2][inline link]].
656Here’s an [[/script?foo=1&bar=2][inline link in pointy braces]].
660With an ampersand: [[http://example.com/?foo=1&bar=2]]
663 - [[http://example.com/]]
666An e-mail address: [[mailto:nobody@nowhere.net][nobody@nowhere.net]]
669Blockquoted: [[http://example.com/]]
672Auto-links should not occur here: <code><http://example.com/></code>
675or here: <http://example.com/>
682From “Voyage dans la Lune” by Georges Melies (1902):
684[[lalune.jpg][Voyage dans la Lune]]
686Here is a movie [[movie.jpg][movie]] icon.
692Here is a footnote reference,[1] and another.[2] This should <em>not</em> be a
693footnote reference, because it contains a <verbatim>space.[^my</verbatim>
694<verbatim>note]</verbatim> Here is an inline note.[3]
697Notes can go in quotes.[4]
700 1. And in list items.[5]
702This paragraph should not be part of the note, as it is not indented.
704[1] Here is the footnote. It can go anywhere after the footnote reference. It
705 need not be placed at the end of the document.
707[2] Here’s the long note. This one contains multiple blocks.
709 Subsequent blocks are indented to show that they belong to the footnote
710 (as with list items).
716 If you want, you can indent every line, but you can also be lazy and just
717 indent the first line of each block.
719[3] This is <em>easier</em> to type. Inline notes may contain
720 [[http://google.com][links]] and <code>]</code> verbatim characters, as
721 well as <verbatim>[bracketed</verbatim> <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