1#+TITLE: Pandoc Test Suite
3#+AUTHOR: John MacFarlane; Anonymous
6This is a set of tests for pandoc. Most of them are adapted from John Gruber's
16** Level 2 with an [[/url][embedded link]]
18 :CUSTOM_ID: level-2-with-an-embedded-link
21*** Level 3 with /emphasis/
23 :CUSTOM_ID: level-3-with-emphasis
41** Level 2 with /emphasis/
43 :CUSTOM_ID: level-2-with-emphasis
64 :CUSTOM_ID: paragraphs
67Here's a regular paragraph.
69In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
70Because a hard-wrapped line in the middle of a paragraph looked like a list
73Here's one with a bullet. * criminey.
75There should be a hard line break\\
82 :CUSTOM_ID: block-quotes
88 This is a block quote. It is pretty short.
92 Code in a block quote:
116This should not be a block quote: 2 > 1.
118And a following paragraph.
124 :CUSTOM_ID: code-blocks
130 ---- (should be four hyphens)
136 this code block is indented by one tab
142 this code block is indented by two tabs
144 These should not be escaped: \$ \\ \> \[ \{
156 :CUSTOM_ID: unordered
238 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
266Same thing but with paragraphs:
280 :CUSTOM_ID: tabs-and-spaces
283- this is a list item indented with tabs
285- this is a list item indented with spaces
287 - this is an example list item indented with tabs
289 - this is an example list item indented with spaces
293 :CUSTOM_ID: fancy-list-markers
301 4. sublist with roman numerals, starting with 4
313 6) Decimal start with 6
315 3) Lower alpha with paren
324Should not be a list item:
334 :CUSTOM_ID: definition-lists
340- orange :: orange fruit
341- banana :: yellow fruit
346- orange :: orange fruit
347- banana :: yellow fruit
353- orange :: orange fruit
355- banana :: yellow fruit
357Multiple blocks with italics:
359- /apple/ :: red fruit
361 contains seeds, crisp, pleasant to taste
363- /orange/ :: orange fruit
366 { orange code block }
373Multiple definitions, tight:
377- orange :: orange fruit
380Multiple definitions, loose:
386- orange :: orange fruit
390Blank line after term, indented marker, alternate markers:
396- orange :: orange fruit
403 :CUSTOM_ID: html-blocks
406Simple block on one line:
410And nested without indentation:
416Interpreted markdown in a table:
455 <script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
458Here's a simple block:
462This should be a code block, though:
480This should just be an HTML comment:
497 This is another comment.
507Just plain comment, with trailing spaces on the line:
546 <hr class="foo" id="bar" />
550 <hr class="foo" id="bar" />
554 <hr class="foo" id="bar">
561 :CUSTOM_ID: inline-markup
564This is /emphasized/, and so /is this/.
566This is *strong*, and so *is this*.
568An /[[/url][emphasized link]]/.
570*/This is strong and em./*
574*/This is strong and em./*
578This is code: =>=, =$=, =\=, =\$=, =<html>=.
580+This is /strikeout/.+
582Superscripts: a^{bc}d a^{/hello/} a^{hello there}.
584Subscripts: H_{2}O, H_{23}O, H_{many of them}O.
586These should not be superscripts or subscripts, because of the unescaped
587spaces: a\^b c\^d, a~b c~d.
591* Smart quotes, ellipses, dashes
593 :CUSTOM_ID: smart-quotes-ellipses-dashes
596"Hello," said the spider. "'Shelob' is my name."
598'A', 'B', and 'C' are letters.
600'Oak,' 'elm,' and 'beech' are names of trees. So is 'pine.'
602'He said, "I want to go."' Were you alive in the 70's?
604Here is some quoted '=code=' and a "[[http://example.com/?foo=1&bar=2][quoted
607Some dashes: one---two --- three---four --- five.
609Dashes between numbers: 5--7, 255--66, 1987--1999.
611Ellipses...and...and....
620- \cite[22-23]{smith.1899}
623- $\alpha \wedge \omega$
626- Here's some display math:
627 $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
628- Here's one that has a line break in it: $\alpha + \omega \times x^2$.
630These shouldn't be math:
632- To get the famous equation, write =$e = mc^2$=.
633- $22,000 is a /lot/ of money. So is $34,000. (It worked if "lot" is
635- Shoes ($20) and socks ($5).
636- Escaped =$=: $73 /this should be emphasized/ 23$.
640\begin{tabular}{|l|l|}\hline
641Animal & Number \\ \hline
650 :CUSTOM_ID: special-characters
661AT&T has an ampersand in their name.
663AT&T is another way to write it.
715Just a [[/url/][URL]].
717[[/url/][URL and title]].
719[[/url/][URL and title]].
721[[/url/][URL and title]].
723[[/url/][URL and title]]
725[[/url/][URL and title]]
727[[/url/with_underscore][with\_underscore]]
729[[mailto:nobody@nowhere.net][Email link]]
735 :CUSTOM_ID: reference
740With [[/url/][embedded [brackets]]].
742[[/url/][b]] by itself should be a link.
744Indented [[/url][once]].
746Indented [[/url][twice]].
748Indented [[/url][thrice]].
750This should [not][] be a link.
762 :CUSTOM_ID: with-ampersands
765Here's a [[http://example.com/?foo=1&bar=2][link with an ampersand in the
768Here's a link with an amersand in the link text: [[http://att.com/][AT&T]].
770Here's an [[/script?foo=1&bar=2][inline link]].
772Here's an [[/script?foo=1&bar=2][inline link in pointy braces]].
776 :CUSTOM_ID: autolinks
779With an ampersand: [[http://example.com/?foo=1&bar=2]]
782- [[http://example.com/]]
785An e-mail address: [[mailto:nobody@nowhere.net][nobody@nowhere.net]]
788 Blockquoted: [[http://example.com/]]
791Auto-links should not occur here: =<http://example.com/>=
794 or here: <http://example.com/>
804From "Voyage dans la Lune" by Georges Melies (1902):
809Here is a movie [[file:movie.jpg]] icon.
815 :CUSTOM_ID: footnotes
818Here is a footnote reference,[fn:1] and another.[fn:2] This should /not/ be a
819footnote reference, because it contains a space.[\^my note] Here is an inline
823 Notes can go in quotes.[fn:4]
8261. And in list items.[fn:5]
828This paragraph should not be part of the note, as it is not indented.
830[fn:1] Here is the footnote. It can go anywhere after the footnote reference.
831 It need not be placed at the end of the document.
833[fn:2] Here's the long note. This one contains multiple blocks.
835 Subsequent blocks are indented to show that they belong to the footnote
836 (as with list items).
842 If you want, you can indent every line, but you can also be lazy and
843 just indent the first line of each block.
845[fn:3] This is /easier/ to type. Inline notes may contain
846 [[http://google.com][links]] and =]= verbatim characters, as well as
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