2#title Pandoc Test Suite
5This is a set of tests for pandoc. Most of them are adapted from John Gruber’s
14** Level 2 with an [[/url][embedded link]]
16#level-2-with-an-embedded-link
18*** Level 3 with <em>emphasis</em>
34** Level 2 with <em>emphasis</em>
53Here’s a regular paragraph.
55In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
56Because a hard-wrapped line in the middle of a paragraph looked like a list
59Here’s one with a bullet. <verbatim>*</verbatim> criminey.
61There should be a hard line break<br>
72This is a block quote. It is pretty short.
100This should not be a block quote: 2 <verbatim>></verbatim> 1.
102And a following paragraph.
112---- (should be four hyphens)
118this code block is indented by one tab
124 this code block is indented by two tabs
126These should not be escaped: \$ \\ \> \[ \{
205 Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.
225Same thing but with paragraphs:
238 - this is a list item indented with tabs
239 - this is a list item indented with spaces
241 - this is an example list item indented with tabs
242 - this is an example list item indented with spaces
252 iv. sublist with roman numerals, starting with 4
261 6. Decimal start with 6
262 c. Lower alpha with paren
270Should not be a list item:
284 orange :: orange fruit
285 banana :: yellow fruit
290 orange :: orange fruit
291 banana :: yellow fruit
296 orange :: orange fruit
297 banana :: yellow fruit
299Multiple blocks with italics:
301 <em>apple</em> :: red fruit
303 contains seeds, crisp, pleasant to taste
304 <em>orange</em> :: orange fruit
307 { orange code block }
314Multiple definitions, tight:
318 orange :: orange fruit
321Multiple definitions, loose:
326 orange :: orange fruit
330Blank line after term, indented marker, alternate markers:
335 orange :: orange fruit
343Simple block on one line:
345fooAnd nested without indentation:
349barInterpreted markdown in a table:
351<literal style="html">
355<literal style="html">
359<literal style="html">
363This is <em>emphasized</em>
365<literal style="html">
369<literal style="html">
373And this is <strong>strong</strong>
375<literal style="html">
379<literal style="html">
383<literal style="html">
387<literal style="html">
388<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
391Here’s a simple block:
395This should be a code block, though:
411fooThis should just be an HTML comment:
413<literal style="html">
419<literal style="html">
426<literal style="html">
428 This is another comment.
438Just plain comment, with trailing spaces on the line:
440<literal style="html">
452<literal style="html">
456<literal style="html">
460<literal style="html">
464<literal style="html">
468<literal style="html">
472<literal style="html">
476<literal style="html">
477<hr class="foo" id="bar" />
480<literal style="html">
481<hr class="foo" id="bar" />
484<literal style="html">
485<hr class="foo" id="bar">
493This is <em>emphasized</em>, and so <em>is this</em>.
495This is <strong>strong</strong>, and so <strong>is this</strong>.
497An <em>[[/url][emphasized link]]</em>.
499<strong><em>This is strong and em.</em></strong>
501So is <strong><em>this</em></strong> word.
503<strong><em>This is strong and em.</em></strong>
505So is <strong><em>this</em></strong> word.
507This is code: <code><verbatim>></verbatim></code>, <code>$</code>,
508<code>\</code>, <code>\$</code>, <code><verbatim><html></verbatim></code>.
510<del>This is <em>strikeout</em>.</del>
512Superscripts: a<sup>bc</sup>d a<sup><em>hello</em></sup>
513a<sup>hello there</sup>.
515Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.
517These should not be superscripts or subscripts, because of the unescaped
518spaces: a^b c^d, a~b c~d.
522* Smart quotes, ellipses, dashes
524#smart-quotes-ellipses-dashes
525"Hello," said the spider. "'Shelob' is my name."
527'A', 'B', and 'C' are letters.
529'Oak,' 'elm,' and 'beech' are names of trees. So is 'pine.'
531'He said, "I want to go."' Were you alive in the 70’s?
533Here is some quoted '<code>code</code>' and a
534"[[http://example.com/?foo=1&bar=2][quoted link]]".
536Some dashes: one—two — three—four — five.
538Dashes between numbers: 5–7, 255–66, 1987–1999.
547 - <literal style="tex">\cite[22-23]{smith.1899}</literal>
548 - 2 + 2 <verbatim>=</verbatim> 4
549 - <em>x</em> ∈ <em>y</em>
550 - <em>α</em> ∧ <em>ω</em>
553 - Here’s some display math:
554 <verse><verbatim>$$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$</verbatim></verse>
555 - Here’s one that has a line break in it:
556 <em>α</em> + <em>ω</em> × <em>x</em><sup>2</sup>.
558These shouldn’t be math:
560 - To get the famous equation, write
561 <code><verbatim>$e = mc^2$</verbatim></code>.
562 - $22,000 is a <em>lot</em> of money. So is $34,000. (It worked if "lot" is
564 - Shoes ($20) and socks ($5).
565 - Escaped <code>$</code>: $73 <em>this should be emphasized</em> 23$.
569<literal style="latex">
570\begin{tabular}{|l|l|}\hline
571Animal & Number \\ \hline
590AT&T has an ampersand in their name.
592AT&T is another way to write it.
5964 <verbatim><</verbatim> 5.
5986 <verbatim>></verbatim> 5.
604Asterisk: <verbatim>*</verbatim>
612Left bracket: <verbatim>[</verbatim>
614Right bracket: <verbatim>]</verbatim>
620Greater-than: <verbatim>></verbatim>
641Just a [[/url/][URL]].
643[[/url/][URL and title]].
645[[/url/][URL and title]].
647[[/url/][URL and title]].
649[[/url/][URL and title]]
651[[/url/][URL and title]]
653[[/url/with_underscore][with_underscore]]
655[[mailto:nobody@nowhere.net][Email link]]
668With [[/url/][embedded <verbatim>[brackets]</verbatim>]].
670[[/url/][b]] by itself should be a link.
672Indented [[/url][once]].
674Indented [[/url][twice]].
676Indented [[/url][thrice]].
678This should <verbatim>[not][]</verbatim> be a link.
691Here’s a [[http://example.com/?foo=1&bar=2][link with an ampersand in the
694Here’s a link with an amersand in the link text: [[http://att.com/][AT&T]].
696Here’s an [[/script?foo=1&bar=2][inline link]].
698Here’s an [[/script?foo=1&bar=2][inline link in pointy braces]].
703With an ampersand: [[http://example.com/?foo=1&bar=2]]
706 - [[http://example.com/]]
709An e-mail address: [[mailto:nobody@nowhere.net][nobody@nowhere.net]]
712Blockquoted: [[http://example.com/]]
715Auto-links should not occur here:
716<code><verbatim><http://example.com/></verbatim></code>
719or here: <http://example.com/>
727From "Voyage dans la Lune" by Georges Melies (1902):
729[[lalune.jpg][Voyage dans la Lune]]
731Here is a movie [[movie.jpg][movie]] icon.
738Here is a footnote reference,[1] and another.[2] This should <em>not</em> be a
739footnote reference, because it contains a <verbatim>space.[^my</verbatim>
740<verbatim>note]</verbatim> Here is an inline note.[3]
743Notes can go in quotes.[4]
746 1. And in list items.[5]
748This paragraph should not be part of the note, as it is not indented.
750[1] Here is the footnote. It can go anywhere after the footnote reference. It
751 need not be placed at the end of the document.
753[2] Here’s the long note. This one contains multiple blocks.
755 Subsequent blocks are indented to show that they belong to the footnote
756 (as with list items).
762 If you want, you can indent every line, but you can also be lazy and just
763 indent the first line of each block.
765[3] This is <em>easier</em> to type. Inline notes may contain
766 [[http://google.com][links]] and <code><verbatim>]</verbatim></code>
767 verbatim characters, as well as <verbatim>[bracketed</verbatim>
768 <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