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
15** Level 2 with an [[/url][embedded link]]
17 :CUSTOM_ID: level-2-with-an-embedded-link
19*** Level 3 with /emphasis/
21 :CUSTOM_ID: level-3-with-emphasis
35** Level 2 with /emphasis/
37 :CUSTOM_ID: level-2-with-emphasis
55 :CUSTOM_ID: paragraphs
57Here's a regular paragraph.
59In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
60Because a hard-wrapped line in the middle of a paragraph looked like a list
63Here's one with a bullet. * criminey.
65There should be a hard line break\\
72 :CUSTOM_ID: block-quotes
77 This is a block quote. It is pretty short.
81 Code in a block quote:
105This should not be a block quote: 2 > 1.
107And a following paragraph.
113 :CUSTOM_ID: code-blocks
118 ---- (should be four hyphens)
124 this code block is indented by one tab
130 this code block is indented by two tabs
132 These should not be escaped: \$ \\ \> \[ \{
143 :CUSTOM_ID: unordered
223 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
251Same thing but with paragraphs:
265 :CUSTOM_ID: tabs-and-spaces
268- this is a list item indented with tabs
270- this is a list item indented with spaces
272 - this is an example list item indented with tabs
274 - this is an example list item indented with spaces
278 :CUSTOM_ID: fancy-list-markers
287 4. sublist with roman numerals, starting with 4
299 6) Decimal start with 6
301 3) Lower alpha with paren
310Should not be a list item:
320 :CUSTOM_ID: definition-lists
325- orange :: orange fruit
326- banana :: yellow fruit
331- orange :: orange fruit
332- banana :: yellow fruit
338- orange :: orange fruit
340- banana :: yellow fruit
342Multiple blocks with italics:
344- /apple/ :: red fruit
346 contains seeds, crisp, pleasant to taste
348- /orange/ :: orange fruit
351 { orange code block }
358Multiple definitions, tight:
362- orange :: orange fruit
365Multiple definitions, loose:
371- orange :: orange fruit
375Blank line after term, indented marker, alternate markers:
381- orange :: orange fruit
388 :CUSTOM_ID: html-blocks
390Simple block on one line:
394And nested without indentation:
400Interpreted markdown in a table:
439 <script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
442Here's a simple block:
446This should be a code block, though:
464This should just be an HTML comment:
481 This is another comment.
491Just plain comment, with trailing spaces on the line:
530 <hr class="foo" id="bar" />
534 <hr class="foo" id="bar" />
538 <hr class="foo" id="bar">
545 :CUSTOM_ID: inline-markup
547This is /emphasized/, and so /is this/.
549This is *strong*, and so *is this*.
551An /[[/url][emphasized link]]/.
553*/This is strong and em./*
557*/This is strong and em./*
561This is code: =>=, =$=, =\=, =\$=, =<html>=.
563+This is /strikeout/.+
565Superscripts: a^{bc}d a^{/hello/} a^{hello there}.
567Subscripts: H_{2}O, H_{23}O, H_{many of them}O.
569These should not be superscripts or subscripts, because of the unescaped
570spaces: a^b c^d, a~b c~d.
574* Smart quotes, ellipses, dashes
576 :CUSTOM_ID: smart-quotes-ellipses-dashes
578"Hello," said the spider. "'Shelob' is my name."
580'A', 'B', and 'C' are letters.
582'Oak,' 'elm,' and 'beech' are names of trees. So is 'pine.'
584'He said, "I want to go."' Were you alive in the 70's?
586Here is some quoted '=code=' and a "[[http://example.com/?foo=1&bar=2][quoted
589Some dashes: one---two --- three---four --- five.
591Dashes between numbers: 5--7, 255--66, 1987--1999.
593Ellipses...and...and....
602- \cite[22-23]{smith.1899}
605- $\alpha \wedge \omega$
608- Here's some display math:
609 $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
610- Here's one that has a line break in it: $\alpha + \omega \times x^2$.
612These shouldn't be math:
614- To get the famous equation, write =$e = mc^2$=.
615- $22,000 is a /lot/ of money. So is $34,000. (It worked if "lot" is
617- Shoes ($20) and socks ($5).
618- Escaped =$=: $73 /this should be emphasized/ 23$.
622\begin{tabular}{|l|l|}\hline
623Animal & Number \\ \hline
632 :CUSTOM_ID: special-characters
642AT&T has an ampersand in their name.
644AT&T is another way to write it.
694Just a [[/url/][URL]].
696[[/url/][URL and title]].
698[[/url/][URL and title]].
700[[/url/][URL and title]].
702[[/url/][URL and title]]
704[[/url/][URL and title]]
706[[/url/with_underscore][with_underscore]]
708[[mailto:nobody@nowhere.net][Email link]]
714 :CUSTOM_ID: reference
718With [[/url/][embedded [brackets]]].
720[[/url/][b]] by itself should be a link.
722Indented [[/url][once]].
724Indented [[/url][twice]].
726Indented [[/url][thrice]].
728This should [not][] be a link.
740 :CUSTOM_ID: with-ampersands
742Here's a [[http://example.com/?foo=1&bar=2][link with an ampersand in the
745Here's a link with an amersand in the link text: [[http://att.com/][AT&T]].
747Here's an [[/script?foo=1&bar=2][inline link]].
749Here's an [[/script?foo=1&bar=2][inline link in pointy braces]].
753 :CUSTOM_ID: autolinks
755With an ampersand: [[http://example.com/?foo=1&bar=2]]
758- [[http://example.com/]]
761An e-mail address: [[mailto:nobody@nowhere.net][nobody@nowhere.net]]
764 Blockquoted: [[http://example.com/]]
767Auto-links should not occur here: =<http://example.com/>=
770 or here: <http://example.com/>
779From "Voyage dans la Lune" by Georges Melies (1902):
784Here is a movie [[file:movie.jpg]] icon.
790 :CUSTOM_ID: footnotes
792Here is a footnote reference,[fn:1] and another.[fn:2] This should /not/ be a
793footnote reference, because it contains a space.[^my note] Here is an inline
797 Notes can go in quotes.[fn:4]
8001. And in list items.[fn:5]
802This paragraph should not be part of the note, as it is not indented.
804[fn:1] Here is the footnote. It can go anywhere after the footnote reference.
805 It need not be placed at the end of the document.
807[fn:2] Here's the long note. This one contains multiple blocks.
809 Subsequent blocks are indented to show that they belong to the footnote
810 (as with list items).
816 If you want, you can indent every line, but you can also be lazy and
817 just indent the first line of each block.
819[fn:3] This is /easier/ to type. Inline notes may contain
820 [[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