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
302 4. sublist with roman numerals, starting with 4
314 6) Decimal start with 6
316 3) Lower alpha with paren
325Should not be a list item:
335 :CUSTOM_ID: definition-lists
341- orange :: orange fruit
342- banana :: yellow fruit
347- orange :: orange fruit
348- banana :: yellow fruit
354- orange :: orange fruit
356- banana :: yellow fruit
358Multiple blocks with italics:
360- /apple/ :: red fruit
362 contains seeds, crisp, pleasant to taste
364- /orange/ :: orange fruit
367 { orange code block }
374Multiple definitions, tight:
378- orange :: orange fruit
381Multiple definitions, loose:
387- orange :: orange fruit
391Blank line after term, indented marker, alternate markers:
397- orange :: orange fruit
404 :CUSTOM_ID: html-blocks
407Simple block on one line:
411And nested without indentation:
417Interpreted markdown in a table:
456 <script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
459Here's a simple block:
463This should be a code block, though:
481This should just be an HTML comment:
498 This is another comment.
508Just plain comment, with trailing spaces on the line:
547 <hr class="foo" id="bar" />
551 <hr class="foo" id="bar" />
555 <hr class="foo" id="bar">
562 :CUSTOM_ID: inline-markup
565This is /emphasized/, and so /is this/.
567This is *strong*, and so *is this*.
569An /[[/url][emphasized link]]/.
571*/This is strong and em./*
575*/This is strong and em./*
579This is code: =>=, =$=, =\=, =\$=, =<html>=.
581+This is /strikeout/.+
583Superscripts: a^{bc}d a^{/hello/} a^{hello there}.
585Subscripts: H_{2}O, H_{23}O, H_{many of them}O.
587These should not be superscripts or subscripts, because of the unescaped
588spaces: a^b c^d, a~b c~d.
592* Smart quotes, ellipses, dashes
594 :CUSTOM_ID: smart-quotes-ellipses-dashes
597"Hello," said the spider. "'Shelob' is my name."
599'A', 'B', and 'C' are letters.
601'Oak,' 'elm,' and 'beech' are names of trees. So is 'pine.'
603'He said, "I want to go."' Were you alive in the 70's?
605Here is some quoted '=code=' and a "[[http://example.com/?foo=1&bar=2][quoted
608Some dashes: one---two --- three---four --- five.
610Dashes between numbers: 5--7, 255--66, 1987--1999.
612Ellipses...and...and....
621- \cite[22-23]{smith.1899}
624- $\alpha \wedge \omega$
627- Here's some display math:
628 $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
629- Here's one that has a line break in it: $\alpha + \omega \times x^2$.
631These shouldn't be math:
633- To get the famous equation, write =$e = mc^2$=.
634- $22,000 is a /lot/ of money. So is $34,000. (It worked if "lot" is
636- Shoes ($20) and socks ($5).
637- Escaped =$=: $73 /this should be emphasized/ 23$.
641\begin{tabular}{|l|l|}\hline
642Animal & Number \\ \hline
651 :CUSTOM_ID: special-characters
662AT&T has an ampersand in their name.
664AT&T is another way to write it.
716Just a [[/url/][URL]].
718[[/url/][URL and title]].
720[[/url/][URL and title]].
722[[/url/][URL and title]].
724[[/url/][URL and title]]
726[[/url/][URL and title]]
728[[/url/with_underscore][with_underscore]]
730[[mailto:nobody@nowhere.net][Email link]]
736 :CUSTOM_ID: reference
741With [[/url/][embedded [brackets]]].
743[[/url/][b]] by itself should be a link.
745Indented [[/url][once]].
747Indented [[/url][twice]].
749Indented [[/url][thrice]].
751This should [not][] be a link.
763 :CUSTOM_ID: with-ampersands
766Here's a [[http://example.com/?foo=1&bar=2][link with an ampersand in the
769Here's a link with an amersand in the link text: [[http://att.com/][AT&T]].
771Here's an [[/script?foo=1&bar=2][inline link]].
773Here's an [[/script?foo=1&bar=2][inline link in pointy braces]].
777 :CUSTOM_ID: autolinks
780With an ampersand: [[http://example.com/?foo=1&bar=2]]
783- [[http://example.com/]]
786An e-mail address: [[mailto:nobody@nowhere.net][nobody@nowhere.net]]
789 Blockquoted: [[http://example.com/]]
792Auto-links should not occur here: =<http://example.com/>=
795 or here: <http://example.com/>
805From "Voyage dans la Lune" by Georges Melies (1902):
810Here is a movie [[file:movie.jpg]] icon.
816 :CUSTOM_ID: footnotes
819Here is a footnote reference,[fn:1] and another.[fn:2] This should /not/ be a
820footnote reference, because it contains a space.[^my note] Here is an inline
824 Notes can go in quotes.[fn:4]
8271. And in list items.[fn:5]
829This paragraph should not be part of the note, as it is not indented.
831[fn:1] Here is the footnote. It can go anywhere after the footnote reference.
832 It need not be placed at the end of the document.
834[fn:2] Here's the long note. This one contains multiple blocks.
836 Subsequent blocks are indented to show that they belong to the footnote
837 (as with list items).
843 If you want, you can indent every line, but you can also be lazy and
844 just indent the first line of each block.
846[fn:3] This is /easier/ to type. Inline notes may contain
847 [[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