@@ -5,39 +5,43 @@ July 17, 2006
55This is a set of tests for pandoc. Most of them are adapted from John Gruber’s
66markdown test suite.
77
8−* * * * *
8+------------------------------------------------------------------------------
9+
10+
911
1012Headers
11−=======
13+
1214
1315Level 2 with an embedded link
14−-----------------------------
1516
16−Level 3 with emphasis
17+Level 3 with _emphasis_
1718
1819Level 4
1920
2021Level 5
2122
23+
24+
2225Level 1
23−=======
2426
25−Level 2 with emphasis
26−---------------------
27+
28+Level 2 with _emphasis_
2729
2830Level 3
2931
3032with no blank line
3133
34+
3235Level 2
33−-------
3436
3537with no blank line
3638
37−* * * * *
39+------------------------------------------------------------------------------
40+
41+
3842
3943Paragraphs
40−==========
44+
4145
4246Here’s a regular paragraph.
4347
@@ -47,13 +51,15 @@ item.
4751
4852Here’s one with a bullet. * criminey.
4953
50−There should be a hard line break
54+There should be a hard line break
5155here.
5256
53−* * * * *
57+------------------------------------------------------------------------------
58+
59+
5460
5561Block Quotes
56−============
62+
5763
5864E-mail style:
5965
@@ -80,10 +86,12 @@ This should not be a block quote: 2 > 1.
8086
8187And a following paragraph.
8288
83−* * * * *
89+------------------------------------------------------------------------------
90+
91+
8492
8593Code Blocks
86−===========
94+
8795
8896Code:
8997
@@ -101,13 +109,14 @@ And:
101109
102110 These should not be escaped: \$ \\ \> \[ \{
103111
104−* * * * *
112+------------------------------------------------------------------------------
113+
114+
105115
106116Lists
107−=====
117+
108118
109119Unordered
110−---------
111120
112121Asterisks tight:
113122
@@ -151,8 +160,8 @@ Minuses loose:
151160
152161- Minus 3
153162
163+
154164Ordered
155−-------
156165
157166Tight:
158167
@@ -192,8 +201,8 @@ Multiple paragraphs:
192201
1932023. Item 3.
194203
204+
195205Nested
196−------
197206
198207- Tab
199208 - Tab
@@ -221,8 +230,8 @@ Same thing but with paragraphs:
221230
2222313. Third
223232
233+
224234Tabs and spaces
225−---------------
226235
227236- this is a list item indented with tabs
228237
@@ -232,8 +241,8 @@ Tabs and spaces
232241
233242 - this is an example list item indented with spaces
234243
244+
235245Fancy list markers
236−------------------
237246
238247(2) begins with 2
239248(3) and now 3
@@ -264,17 +273,21 @@ M.A. 2007
264273
265274B. Williams
266275
267−* * * * *
276+------------------------------------------------------------------------------
277+
278+
268279
269280Definition Lists
270−================
281+
271282
272283Tight using spaces:
273284
274285apple
275286 red fruit
287+
276288orange
277289 orange fruit
290+
278291banana
279292 yellow fruit
280293
@@ -282,30 +295,37 @@ Tight using tabs:
282295
283296apple
284297 red fruit
298+
285299orange
286300 orange fruit
301+
287302banana
288303 yellow fruit
289304
290305Loose:
291306
292307apple
308+
293309 red fruit
294310
295311orange
312+
296313 orange fruit
297314
298315banana
316+
299317 yellow fruit
300318
301319Multiple blocks with italics:
302320
303−apple
321+_apple_
322+
304323 red fruit
305324
306325 contains seeds, crisp, pleasant to taste
307326
308−orange
327+_orange_
328+
309329 orange fruit
310330
311331 { orange code block }
@@ -317,6 +337,7 @@ Multiple definitions, tight:
317337apple
318338 red fruit
319339 computer
340+
320341orange
321342 orange fruit
322343 bank
@@ -324,11 +345,13 @@ orange
324345Multiple definitions, loose:
325346
326347apple
348+
327349 red fruit
328350
329351 computer
330352
331353orange
354+
332355 orange fruit
333356
334357 bank
@@ -336,18 +359,22 @@ orange
336359Blank line after term, indented marker, alternate markers:
337360
338361apple
362+
339363 red fruit
340364
341365 computer
342366
343367orange
368+
344369 orange fruit
345370
346371 1. sublist
347372 2. sublist
348373
374+
375+
349376HTML Blocks
350−===========
377+
351378
352379Simple block on one line:
353380
@@ -361,8 +388,8 @@ bar
361388
362389Interpreted markdown in a table:
363390
364−This is emphasized
365−And this is strong
391+This is _emphasized_
392+And this is STRONG
366393Here’s a simple block:
367394
368395foo
@@ -397,40 +424,44 @@ Code:
397424
398425Hr’s:
399426
400−* * * * *
427+------------------------------------------------------------------------------
428+
429+
401430
402431Inline Markup
403−=============
404432
405−This is emphasized, and so is this.
406433
407−This is strong, and so is this.
434+This is _emphasized_, and so _is this_.
435+
436+This is STRONG, and so IS THIS.
408437
409−An emphasized link.
438+An _emphasized link_.
410439
411−This is strong and em.
440+_THIS IS STRONG AND EM._
412441
413−So is this word.
442+So is _THIS_ word.
414443
415−This is strong and em.
444+_THIS IS STRONG AND EM._
416445
417−So is this word.
446+So is _THIS_ word.
418447
419448This is code: >, $, \, \$, <html>.
420449
421−This is strikeout.
450+~~This is _strikeout_.~~
422451
423−Superscripts: abcd ahello ahello there.
452+Superscripts: a^bc^d a^_hello_^ a^hello there^.
424453
425−Subscripts: H2O, H23O, Hmany of themO.
454+Subscripts: H~2~O, H~23~O, H~many of them~O.
426455
427456These should not be superscripts or subscripts, because of the unescaped
428457spaces: a^b c^d, a~b c~d.
429458
430−* * * * *
459+------------------------------------------------------------------------------
460+
461+
431462
432463Smart quotes, ellipses, dashes
433−==============================
464+
434465
435466“Hello,” said the spider. “‘Shelob’ is my name.”
436467
@@ -448,35 +479,39 @@ Dashes between numbers: 5–7, 255–66, 1987–1999.
448479
449480Ellipses…and…and….
450481
451−* * * * *
482+------------------------------------------------------------------------------
483+
484+
452485
453486LaTeX
454−=====
455487
456−-
457−- 2+2=4
458−- x \in y
459−- \alpha \wedge \omega
488+
489+- \cite[22-23]{smith.1899}
490+- 2 + 2 = 4
491+- x ∈ y
492+- α ∧ ω
460493- 223
461494- p-Tree
462495- Here’s some display math:
463− \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.
496+ $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
497+- Here’s one that has a line break in it: α + ω × x^2^.
465498
466499These shouldn’t be math:
467500
468501- 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
470503 emphasized.)
471504- Shoes ($20) and socks ($5).
472−- Escaped $: $73 this should be emphasized 23$.
505+- Escaped $: $73 _this should be emphasized_ 23$.
473506
474507Here’s a LaTeX table:
475508
476−* * * * *
509+------------------------------------------------------------------------------
510+
511+
477512
478513Special Characters
479−==================
514+
480515
481516Here is some unicode:
482517
@@ -528,13 +563,14 @@ Plus: +
528563
529564Minus: -
530565
531−* * * * *
566+------------------------------------------------------------------------------
567+
568+
532569
533570Links
534−=====
571+
535572
536573Explicit
537−--------
538574
539575Just a URL.
540576
@@ -554,8 +590,8 @@ Email link
554590
555591Empty.
556592
593+
557594Reference
558−---------
559595
560596Foo bar.
561597
@@ -581,8 +617,8 @@ Foo bar.
581617
582618Foo biz.
583619
620+
584621With ampersands
585−---------------
586622
587623Here’s a link with an ampersand in the URL.
588624
@@ -592,8 +628,8 @@ Here’s an inline link.
592628
593629Here’s an inline link in pointy braces.
594630
631+
595632Autolinks
596−---------
597633
598634With an ampersand: http://example.com/?foo=1&bar=2
599635
@@ -609,10 +645,12 @@ Auto-links should not occur here: <http://example.com/>
609645
610646 or here: <http://example.com/>
611647
612−* * * * *
648+------------------------------------------------------------------------------
649+
650+
613651
614652Images
615−======
653+
616654
617655From “Voyage dans la Lune” by Georges Melies (1902):
618656
@@ -620,37 +658,39 @@ From “Voyage dans la Lune” by Georges Melies (1902):
620658
621659Here is a movie [movie] icon.
622660
623−* * * * *
661+------------------------------------------------------------------------------
662+
663+
624664
625665Footnotes
626−=========
627666
628−Here is a footnote reference,[^1] and another.[^2] This should not be a
667+
668+Here is a footnote reference,[1] and another.[2] This should _not_ be a
629669footnote reference, because it contains a space.[^my note] Here is an inline
630−note.[^3]
670+note.[3]
631671
632− Notes can go in quotes.[^4]
672+ Notes can go in quotes.[4]
633673
634−1. And in list items.[^5]
674+1. And in list items.[5]
635675
636676This paragraph should not be part of the note, as it is not indented.
637677
638−[^1]: Here is the footnote. It can go anywhere after the footnote reference.
639− It need not be placed at the end of the document.
678+[1] Here is the footnote. It can go anywhere after the footnote reference. It
679+need not be placed at the end of the document.
640680
641−[^2]: Here’s the long note. This one contains multiple blocks.
681+[2] Here’s the long note. This one contains multiple blocks.
642682
643− Subsequent blocks are indented to show that they belong to the footnote
644− (as with list items).
683+Subsequent blocks are indented to show that they belong to the footnote (as
684+with list items).
645685
646− { <code> }
686+ { <code> }
647687
648− If you want, you can indent every line, but you can also be lazy and just
649− indent the first line of each block.
688+If you want, you can indent every line, but you can also be lazy and just
689+indent the first line of each block.
650690
651−[^3]: This is easier to type. Inline notes may contain links and ] verbatim
652− characters, as well as [bracketed text].
691+[3] This is _easier_ to type. Inline notes may contain links and ] verbatim
692+characters, as well as [bracketed text].
653693
654−[^4]: In quote.
694+[4] In quote.
655695
656−[^5]: In list.
696+[5] In list.