@@ -5,39 +5,43 @@ July 17, 2006
5This is a set of tests for pandoc. Most of them are adapted from John Gruber’s
5This is a set of tests for pandoc. Most of them are adapted from John Gruber’s
6markdown test suite.
6markdown test suite.
8−* * * * *
8+------------------------------------------------------------------------------
13Level 2 with an embedded link
15Level 2 with an embedded link
14−-----------------------------
16−Level 3 with emphasis
17+Level 3 with _emphasis_
25−Level 2 with emphasis
28+Level 2 with _emphasis_
30with no blank line
32with no blank line
35with no blank line
37with no blank line
37−* * * * *
39+------------------------------------------------------------------------------
42Here’s a regular paragraph.
46Here’s a regular paragraph.
@@ -47,13 +51,15 @@ item.
48Here’s one with a bullet. * criminey.
52Here’s one with a bullet. * criminey.
50−There should be a hard line break
54+There should be a hard line break
53−* * * * *
57+------------------------------------------------------------------------------
55Block Quotes
61Block Quotes
58E-mail style:
64E-mail style:
@@ -80,10 +86,12 @@ This should not be a block quote: 2 > 1.
81And a following paragraph.
87And a following paragraph.
83−* * * * *
89+------------------------------------------------------------------------------
85Code Blocks
93Code Blocks
@@ -101,13 +109,14 @@ And:
102 These should not be escaped: \$ \\ \> \[ \{
110 These should not be escaped: \$ \\ \> \[ \{
104−* * * * *
112+------------------------------------------------------------------------------
112Asterisks tight:
121Asterisks tight:
@@ -151,8 +160,8 @@ Minuses loose:
@@ -192,8 +201,8 @@ Multiple paragraphs:
1933. Item 3.
2023. Item 3.
@@ -221,8 +230,8 @@ Same thing but with paragraphs:
224Tabs and spaces
234Tabs and spaces
227- this is a list item indented with tabs
236- this is a list item indented with tabs
@@ -232,8 +241,8 @@ Tabs and spaces
233 - this is an example list item indented with spaces
242 - this is an example list item indented with spaces
235Fancy list markers
245Fancy list markers
238(2) begins with 2
247(2) begins with 2
239(3) and now 3
248(3) and now 3
@@ -264,17 +273,21 @@ M.A. 2007
265B. Williams
274B. Williams
267−* * * * *
276+------------------------------------------------------------------------------
269Definition Lists
280Definition Lists
272Tight using spaces:
283Tight using spaces:
275 red fruit
286 red fruit
277 orange fruit
289 orange fruit
279 yellow fruit
292 yellow fruit
@@ -282,30 +295,37 @@ Tight using tabs:
284 red fruit
297 red fruit
286 orange fruit
300 orange fruit
288 yellow fruit
303 yellow fruit
293 red fruit
309 red fruit
296 orange fruit
313 orange fruit
299 yellow fruit
317 yellow fruit
301Multiple blocks with italics:
319Multiple blocks with italics:
304 red fruit
323 red fruit
306 contains seeds, crisp, pleasant to taste
325 contains seeds, crisp, pleasant to taste
309 orange fruit
329 orange fruit
311 { orange code block }
331 { orange code block }
@@ -317,6 +337,7 @@ Multiple definitions, tight:
318 red fruit
338 red fruit
321 orange fruit
342 orange fruit
@@ -324,11 +345,13 @@ orange
324Multiple definitions, loose:
345Multiple definitions, loose:
327 red fruit
349 red fruit
332 orange fruit
355 orange fruit
@@ -336,18 +359,22 @@ orange
336Blank line after term, indented marker, alternate markers:
359Blank line after term, indented marker, alternate markers:
339 red fruit
363 red fruit
344 orange fruit
369 orange fruit
346 1. sublist
371 1. sublist
347 2. sublist
372 2. sublist
349HTML Blocks
376HTML Blocks
352Simple block on one line:
379Simple block on one line:
@@ -361,8 +388,8 @@ bar
362Interpreted markdown in a table:
389Interpreted markdown in a table:
364−This is emphasized
391+This is _emphasized_
365−And this is strong
392+And this is STRONG
366Here’s a simple block:
393Here’s a simple block:
@@ -397,40 +424,44 @@ Code:
400−* * * * *
427+------------------------------------------------------------------------------
402Inline Markup
431Inline Markup
405−This is emphasized, and so is this.
407−This is strong, and so is this.
434+This is _emphasized_, and so _is this_.
436+This is STRONG, and so IS THIS.
409−An emphasized link.
438+An _emphasized link_.
411−This is strong and em.
440+_THIS IS STRONG AND EM._
413−So is this word.
442+So is _THIS_ word.
415−This is strong and em.
444+_THIS IS STRONG AND EM._
417−So is this word.
446+So is _THIS_ word.
419This is code: >, $, \, \$, <html>.
448This is code: >, $, \, \$, <html>.
421−This is strikeout.
450+~~This is _strikeout_.~~
423−Superscripts: abcd ahello ahello there.
452+Superscripts: a^bc^d a^_hello_^ a^hello there^.
425−Subscripts: H2O, H23O, Hmany of themO.
454+Subscripts: H~2~O, H~23~O, H~many of them~O.
427These should not be superscripts or subscripts, because of the unescaped
456These should not be superscripts or subscripts, because of the unescaped
428spaces: a^b c^d, a~b c~d.
457spaces: a^b c^d, a~b c~d.
430−* * * * *
459+------------------------------------------------------------------------------
432Smart quotes, ellipses, dashes
463Smart quotes, ellipses, dashes
433−==============================
464+
435“Hello,” said the spider. “‘Shelob’ is my name.”
466“Hello,” said the spider. “‘Shelob’ is my name.”
@@ -448,35 +479,39 @@ Dashes between numbers: 5–7, 255–66, 1987–1999.
449Ellipses…and…and….
480Ellipses…and…and….
451−* * * * *
482+------------------------------------------------------------------------------
489+- \cite[22-23]{smith.1899}
457−- 2+2=4
490+- 2 + 2 = 4
459−- \alpha \wedge \omega
492+- α ∧ ω
462- Here’s some display math:
495- Here’s some display math:
463− \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}
496+ $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
464−- Here’s one that has a line break in it: \alpha + \omega \times x^2.
497+- Here’s one that has a line break in it: α + ω × x^2^.
466These shouldn’t be math:
499These shouldn’t be math:
468- To get the famous equation, write $e = mc^2$.
501- To get the famous equation, write $e = mc^2$.
469−- $22,000 is a lot of money. So is $34,000. (It worked if “lot” is
502+- $22,000 is a _lot_ of money. So is $34,000. (It worked if “lot” is
470 emphasized.)
503 emphasized.)
471- Shoes ($20) and socks ($5).
504- Shoes ($20) and socks ($5).
472−- Escaped $: $73 this should be emphasized 23$.
505+- Escaped $: $73 _this should be emphasized_ 23$.
474Here’s a LaTeX table:
507Here’s a LaTeX table:
476−* * * * *
509+------------------------------------------------------------------------------
478Special Characters
513Special Characters
479−==================
514+
481Here is some unicode:
516Here is some unicode:
@@ -528,13 +563,14 @@ Plus: +
531−* * * * *
566+------------------------------------------------------------------------------
539Just a URL.
575Just a URL.
@@ -554,8 +590,8 @@ Email link
@@ -581,8 +617,8 @@ Foo bar.
584With ampersands
621With ampersands
587Here’s a link with an ampersand in the URL.
623Here’s a link with an ampersand in the URL.
@@ -592,8 +628,8 @@ Here’s an inline link.
593Here’s an inline link in pointy braces.
629Here’s an inline link in pointy braces.
598With an ampersand: http://example.com/?foo=1&bar=2
634With an ampersand: http://example.com/?foo=1&bar=2
@@ -609,10 +645,12 @@ Auto-links should not occur here: <http://example.com/>
610 or here: <http://example.com/>
646 or here: <http://example.com/>
612−* * * * *
648+------------------------------------------------------------------------------
617From “Voyage dans la Lune” by Georges Melies (1902):
655From “Voyage dans la Lune” by Georges Melies (1902):
@@ -620,37 +658,39 @@ From “Voyage dans la Lune” by Georges Melies (1902):
621Here is a movie [movie] icon.
659Here is a movie [movie] icon.
623−* * * * *
661+------------------------------------------------------------------------------
628−Here is a footnote reference,[^1] and another.[^2] This should not be a
668+Here is a footnote reference,[1] and another.[2] This should _not_ be a
629footnote reference, because it contains a space.[^my note] Here is an inline
669footnote reference, because it contains a space.[^my note] Here is an inline
630−note.[^3]
670+note.[3]
632− Notes can go in quotes.[^4]
672+ Notes can go in quotes.[4]
634−1. And in list items.[^5]
674+1. And in list items.[5]
636This paragraph should not be part of the note, as it is not indented.
676This paragraph should not be part of the note, as it is not indented.
638−[^1]: Here is the footnote. It can go anywhere after the footnote reference.
678+[1] Here is the footnote. It can go anywhere after the footnote reference. It
639− It need not be placed at the end of the document.
679+need not be placed at the end of the document.
641−[^2]: Here’s the long note. This one contains multiple blocks.
681+[2] Here’s the long note. This one contains multiple blocks.
643− Subsequent blocks are indented to show that they belong to the footnote
683+Subsequent blocks are indented to show that they belong to the footnote (as
644− (as with list items).
684+with list items).
646− { <code> }
686+ { <code> }
648− If you want, you can indent every line, but you can also be lazy and just
688+If you want, you can indent every line, but you can also be lazy and just
649− indent the first line of each block.
689+indent the first line of each block.
651−[^3]: This is easier to type. Inline notes may contain links and ] verbatim
691+[3] This is _easier_ to type. Inline notes may contain links and ] verbatim
652− characters, as well as [bracketed text].
692+characters, as well as [bracketed text].
654−[^4]: In quote.
694+[4] In quote.
656−[^5]: In list.
696+[5] In list.