git.iko.soy/typeable/pandoc
on master help sign in
Updated asciidoc test.

The test output still contains some mistakes.

commit4c122be58a66283dd31c2a357099637c945055a6 authorJohn MacFarlane <fiddlosopher@gmail.com> dateFri 18 Nov 2011, 19:46 (15 years ago) parentc1710f9
1 file changed+229−326
tests/writer.asciidoc+229−326
tests/writer.asciidoc+229−326
@@ -1,10 +1,11 @@
11Pandoc Test Suite
22=================
3−John MacFarlane; Anonymous
4−July 17, 2006
3+:author: John MacFarlane
4+:author: Anonymous
5+:date: July 17, 2006
56
6−This is a set of tests for pandoc. Most of them are adapted from John Gruber's
7−markdown test suite.
7+This is a set of tests for pandoc. Most of them are adapted from John
8+Gruber’s markdown test suite.
89
910'''''
1011
@@ -14,7 +15,7 @@ Headers
1415Level 2 with an link:/url[embedded link]
1516~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1617
17−Level 3 with *emphasis*
18+Level 3 with _emphasis_
1819^^^^^^^^^^^^^^^^^^^^^^^
1920
2021Level 4
@@ -34,7 +35,7 @@ Level 3
3435with no blank line
3536
3637Level 2
37−-------
38+~~~~~~~
3839
3940with no blank line
4041
@@ -45,9 +46,9 @@ Paragraphs
4546
4647Here’s a regular paragraph.
4748
48−In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
49−Because a hard-wrapped line in the middle of a paragraph looked like a list
50−item.
49+In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
50+item. Because a hard-wrapped line in the middle of a paragraph looked
51+like a list item.
5152
5253Here’s one with a bullet. \* criminey.
5354
@@ -65,28 +66,34 @@ __________________________________________
6566This is a block quote. It is pretty short.
6667__________________________________________
6768
68−------------------------
69+______________________
70+--
6971Code in a block quote:
7072
71− sub status {
72− print "working";
73− }
74−------------------------
73+--------------------
74+sub status {
75+ print "working";
76+}
77+--------------------
7578
7679A list:
7780
78−. item one
79−. item two
81+1. item one
82+2. item two
8083
8184Nested block quotes:
8285
8386______
8487nested
8588______
86−nested
89+
8790______
91+nested
8892______
8993
94+--
95+______________________
96+
9097This should not be a block quote: 2 \> 1.
9198
9299And a following paragraph.
@@ -98,7 +105,7 @@ Code Blocks
98105
99106Code:
100107
101−----
108+--------------------------------------
102109---- (should be four hyphens)
103110
104111sub status {
@@ -106,15 +113,15 @@ sub status {
106113}
107114
108115this code block is indented by one tab
109−----
116+--------------------------------------
110117
111118And:
112119
113−----
120+--------------------------------------------
114121 this code block is indented by two tabs
115122
116123These should not be escaped: \$ \\ \> \[ \{
117−----
124+--------------------------------------------
118125
119126'''''
120127
@@ -126,7 +133,6 @@ Unordered
126133
127134Asterisks tight:
128135
129−[options="compact"]
130136* asterisk 1
131137* asterisk 2
132138* asterisk 3
@@ -134,14 +140,11 @@ Asterisks tight:
134140Asterisks loose:
135141
136142* asterisk 1
137−
138143* asterisk 2
139−
140144* asterisk 3
141145
142146Pluses tight:
143147
144−[options="compact"]
145148* Plus 1
146149* Plus 2
147150* Plus 3
@@ -149,14 +152,11 @@ Pluses tight:
149152Pluses loose:
150153
151154* Plus 1
152−
153155* Plus 2
154−
155156* Plus 3
156157
157158Minuses tight:
158159
159−[options="compact"]
160160* Minus 1
161161* Minus 2
162162* Minus 3
@@ -164,9 +164,7 @@ Minuses tight:
164164Minuses loose:
165165
166166* Minus 1
167−
168167* Minus 2
169−
170168* Minus 3
171169
172170Ordered
@@ -174,43 +172,35 @@ Ordered
174172
175173Tight:
176174
177−[options="compact"]
178−1. First
179−2. Second
180−3. Third
175+1. First
176+2. Second
177+3. Third
181178
182179and:
183180
184−[options="compact"]
185−1. One
186−2. Two
187−3. Three
181+1. One
182+2. Two
183+3. Three
188184
189185Loose using tabs:
190186
191−1. First
192−
193−2. Second
194−
195−3. Third
187+1. First
188+2. Second
189+3. Third
196190
197191and using spaces:
198192
199−1. One
200−
201−2. Two
202−
203−3. Three
193+1. One
194+2. Two
195+3. Three
204196
205197Multiple paragraphs:
206198
207−1. Item 1, graf one.
199+1. Item 1, graf one.
208200+
209201Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.
210−
211−2. Item 2.
212−
213−3. Item 3.
202+2. Item 2.
203+3. Item 3.
214204
215205Nested
216206~~~~~~
@@ -221,70 +211,54 @@ Nested
221211
222212Here’s another:
223213
224−1. First
225−2. Second:
226− [options="compact"]
227− * Fee
228− * Fie
229− * Foe
230−
231−3. Third
214+1. First
215+2. Second:
216+* Fee
217+* Fie
218+* Foe
219+3. Third
232220
233221Same thing but with paragraphs:
234222
235−1. First
236−
237−2. Second:
238−
239− [options="compact"]
240− * Fee
241− * Fie
242− * Foe
243−
223+1. First
224+2. Second:
225+* Fee
226+* Fie
227+* Foe
2442283. Third
245229
246230Tabs and spaces
247231~~~~~~~~~~~~~~~
248232
249233* this is a list item indented with tabs
250−
251234* this is a list item indented with spaces
252−
253235** this is an example list item indented with tabs
254−
255236** this is an example list item indented with spaces
256237
257238Fancy list markers
258239~~~~~~~~~~~~~~~~~~
259240
260−[start=2]
261−2. begins with 2
262−3. and now 3
241+2. begins with 2
242+3. and now 3
263243+
264244with a continuation
265−+
266−[start=4]
267−4. sublist with roman numerals, starting with 4
268−5. more items
269− A. a subsublist
270− B. a subsublist
245+iv. sublist with roman numerals, starting with 4
246+v. more items
247+A. a subsublist
248+B. a subsublist
271249
272250Nesting:
273251
274−A. Upper Alpha
275− 1. Upper Roman.
276− +
277− [start=6]
278− 6. Decimal start with 6
279− +
280− [start=3]
281− c. Lower alpha with paren
252+A. Upper Alpha
253+I. Upper Roman.
254+6. Decimal start with 6
255+c. Lower alpha with paren
282256
283257Autonumbering:
284258
285−1. Autonumber.
286−2. More.
287− 1. Nested.
259+1. Autonumber.
260+2. More.
261+1. Nested.
288262
289263Should not be a list item:
290264
@@ -299,217 +273,160 @@ Definition Lists
299273
300274Tight using spaces:
301275
302−apple
303− ~ red fruit
304−orange
305− ~ orange fruit
306−banana
307− ~ yellow fruit
276+apple::
277+ red fruit
278+orange::
279+ orange fruit
280+banana::
281+ yellow fruit
308282
309283Tight using tabs:
310284
311−apple
312− ~ red fruit
313−orange
314− ~ orange fruit
315−banana
316− ~ yellow fruit
285+apple::
286+ red fruit
287+orange::
288+ orange fruit
289+banana::
290+ yellow fruit
317291
318292Loose:
319293
320−apple
321− ~ red fruit
322−
323−orange
324− ~ orange fruit
325−
326−banana
327− ~ yellow fruit
294+apple::
295+ red fruit
296+orange::
297+ orange fruit
298+banana::
299+ yellow fruit
328300
329301Multiple blocks with italics:
330302
331−*apple*
332− ~ red fruit
333−
334− contains seeds, crisp, pleasant to taste
335−
336−*orange*
337− ~ orange fruit
338−
339− { orange code block }
340−
341− > orange block quote
303+_apple_::
304+ red fruit
305+ +
306+ contains seeds, crisp, pleasant to taste
307+_orange_::
308+ orange fruit
309+ +
310+---------------------
311+{ orange code block }
312+---------------------
313+ +
314+ __________________
315+ orange block quote
316+ __________________
342317
343318Multiple definitions, tight:
344319
345−apple
346− ~ red fruit
347− ~ computer
348−orange
349− ~ orange fruit
350− ~ bank
320+apple::
321+ red fruit
322+ +
323+ computer
324+orange::
325+ orange fruit
326+ +
327+ bank
351328
352329Multiple definitions, loose:
353330
354−apple
355− ~ red fruit
356−
357− ~ computer
358−
359−orange
360− ~ orange fruit
361−
362− ~ bank
331+apple::
332+ red fruit
333+ +
334+ computer
335+orange::
336+ orange fruit
337+ +
338+ bank
363339
364340Blank line after term, indented marker, alternate markers:
365341
366−apple
367− ~ red fruit
368−
369− ~ computer
370−
371−orange
372− ~ orange fruit
373−
374− 1. sublist
375− 2. sublist
342+apple::
343+ red fruit
344+ +
345+ computer
346+orange::
347+ orange fruit
348+ +
349+ 1. sublist
350+ 2. sublist
376351
377352HTML Blocks
378353-----------
379354
380355Simple block on one line:
381356
382−<div>
383357foo
384−</div>
385−
386358And nested without indentation:
387359
388−<div>
389−<div>
390−<div>
391360foo
392−</div>
393−</div>
394−<div>
395361bar
396−</div>
397−</div>
398−
399362Interpreted markdown in a table:
400363
401−<table>
402−<tr>
403−<td>
404−This is *emphasized*
405−</td>
406−<td>
407−And this is **strong**
408−</td>
409−</tr>
410−</table>
411−
412−<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
413−
364+This is _emphasized_
365+And this is *strong*
414366Here’s a simple block:
415367
416−<div>
417−
418368foo
419−</div>
420−
421369This should be a code block, though:
422370
423− <div>
424− foo
425− </div>
371+-------
372+<div>
373+ foo
374+</div>
375+-------
426376
427377As should this:
428378
429− <div>foo</div>
379+--------------
380+<div>foo</div>
381+--------------
430382
431383Now, nested:
432384
433−<div>
434− <div>
435− <div>
436−
437385foo
438−</div>
439− </div>
440−</div>
441−
442386This should just be an HTML comment:
443387
444−<!-- Comment -->
445−
446388Multiline:
447389
448−<!--
449−Blah
450−Blah
451−-->
452−
453−<!--
454− This is another comment.
455−-->
456−
457390Code block:
458391
459− <!-- Comment -->
392+----------------
393+<!-- Comment -->
394+----------------
460395
461396Just plain comment, with trailing spaces on the line:
462397
463−<!-- foo -->
464−
465398Code:
466399
467− <hr />
468−
469−Hr’s:
470−
471−<hr>
472−
473−<hr />
474−
400+------
475401<hr />
402+------
476403
477−<hr>
478−
479−<hr />
480−
481−<hr />
482−
483−<hr class="foo" id="bar" />
484−
485−<hr class="foo" id="bar" />
486−
487−<hr class="foo" id="bar">
404+Hr’s:
488405
489406'''''
490407
491408Inline Markup
492409-------------
493410
494−This is *emphasized*, and so *is this*.
411+This is _emphasized_, and so _is this_.
495412
496−This is **strong**, and so **is this**.
413+This is *strong*, and so *is this*.
497414
498−An *[emphasized link](/url)*.
415+An _link:/url[emphasized link]_.
499416
500−***This is strong and em.***
417+*_This is strong and em._*
501418
502−So is ***this*** word.
419+So is *_this_* word.
503420
504−***This is strong and em.***
421+*_This is strong and em._*
505422
506−So is ***this*** word.
423+So is *_this_* word.
507424
508425This is code: `>`, `$`, `\`, `\$`, `<html>`.
509426
510−~~This is *strikeout*.~~
427+[line-through]*This is _strikeout_.*
511428
512−Superscripts: a^bc^d a^*hello*^ a^hello there^.
429+Superscripts: a^bc^d a^_hello_^ a^hello there^.
513430
514431Subscripts: H~2~O, H~23~O, H~many of them~O.
515432
@@ -521,16 +438,16 @@ spaces: a\^b c\^d, a\~b c\~d.
521438Smart quotes, ellipses, dashes
522439------------------------------
523440
524−“Hello,” said the spider. “‘Shelob’ is my name.”
441+``Hello,'' said the spider. ```Shelob' is my name.''
525442
526−‘A’, ‘B’, and ‘C’ are letters.
443+`A', `B', and `C' are letters.
527444
528−‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’
445+`Oak,' `elm,' and `beech' are names of trees. So is `pine.'
529446
530−‘He said, “I want to go.”’ Were you alive in the 70’s?
447+`He said, ``I want to go.''' Were you alive in the 70’s?
531448
532−Here is some quoted ‘`code`’ and a “[quoted
533−link](http://example.com/?foo=1&bar=2)”.
449+Here is some quoted ``code`' and a
450+``http://example.com/?foo=1&bar=2[quoted link]''.
534451
535452Some dashes: one—two — three—four — five.
536453
@@ -543,32 +460,27 @@ Ellipses…and…and….
543460LaTeX
544461-----
545462
546−- \cite[22-23]{smith.1899}
547−- $2+2=4$
548−- $x \in y$
549−- $\alpha \wedge \omega$
550−- $223$
551−- $p$-Tree
552−- Here’s some display math:
553− $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
554−- Here’s one that has a line break in it: $\alpha + \omega \times x^2$.
463+*
464+* latexmath:[$2+2=4$]
465+* latexmath:[$x \in y$]
466+* latexmath:[$\alpha \wedge \omega$]
467+* latexmath:[$223$]
468+* latexmath:[$p$]-Tree
469+* Here’s some display math:
470+latexmath:[$$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$]
471+* Here’s one that has a line break in it:
472+latexmath:[$\alpha + \omega \times x^2$].
555473
556474These shouldn’t be math:
557475
558−- To get the famous equation, write `$e = mc^2$`.
559−- $22,000 is a *lot* of money. So is $34,000. (It worked if “lot” is
560− emphasized.)
561−- Shoes ($20) and socks ($5).
562−- Escaped `$`: $73 *this should be emphasized* 23$.
476+* To get the famous equation, write `$e = mc^2$`.
477+* $22,000 is a _lot_ of money. So is $34,000. (It worked if ``lot'' is
478+emphasized.)
479+* Shoes ($20) and socks ($5).
480+* Escaped `$`: $73 _this should be emphasized_ 23$.
563481
564482Here’s a LaTeX table:
565483
566−\begin{tabular}{|l|l|}\hline
567−Animal & Number \\ \hline
568−Dog & 2 \\
569−Cat & 1 \\ \hline
570−\end{tabular}
571−
572484'''''
573485
574486Special Characters
@@ -576,11 +488,11 @@ Special Characters
576488
577489Here is some unicode:
578490
579−- I hat: Î
580−- o umlaut: ö
581−- section: §
582−- set membership: ∈
583−- copyright: ©
491+* I hat: Î
492+* o umlaut: ö
493+* section: §
494+* set membership: ∈
495+* copyright: ©
584496
585497AT&T has an ampersand in their name.
586498
@@ -600,7 +512,7 @@ Asterisk: \*
600512
601513Underscore: \_
602514
603−Left brace: {
515+Left brace: \{
604516
605517Right brace: }
606518
@@ -620,7 +532,7 @@ Period: .
620532
621533Bang: !
622534
623−Plus: +
535+Plus: \+
624536
625537Minus: -
626538
@@ -632,123 +544,114 @@ Links
632544Explicit
633545~~~~~~~~
634546
635−Just a [URL](/url/).
547+Just a link:/url/[URL].
636548
637−[URL and title](/url/ "title").
549+link:/url/[URL and title].
638550
639−[URL and title](/url/ "title preceded by two spaces").
551+link:/url/[URL and title].
640552
641−[URL and title](/url/ "title preceded by a tab").
553+link:/url/[URL and title].
642554
643−[URL and title](/url/ "title with "quotes" in it")
555+link:/url/[URL and title]
644556
645−[URL and title](/url/ "title with single quotes")
557+link:/url/[URL and title]
646558
647−[with\_underscore](/url/with_underscore)
559+link:/url/with_underscore[with\_underscore]
648560
649−[Email link](mailto:nobody@nowhere.net)
561+mailto:nobody@nowhere.net[Email link]
650562
651−[Empty]().
563+link:[Empty].
652564
653565Reference
654566~~~~~~~~~
655567
656−Foo [bar](/url/).
568+Foo link:/url/[bar].
657569
658−Foo [bar](/url/).
570+Foo link:/url/[bar].
659571
660−Foo [bar](/url/).
572+Foo link:/url/[bar].
661573
662−With [embedded [brackets]](/url/).
574+With link:/url/[embedded [brackets]].
663575
664−[b](/url/) by itself should be a link.
576+link:/url/[b] by itself should be a link.
665577
666−Indented [once](/url).
578+Indented link:/url[once].
667579
668−Indented [twice](/url).
580+Indented link:/url[twice].
669581
670−Indented [thrice](/url).
582+Indented link:/url[thrice].
671583
672584This should [not][] be a link.
673585
674− [not]: /url
586+-----------
587+[not]: /url
588+-----------
675589
676−Foo [bar](/url/ "Title with "quotes" inside").
590+Foo link:/url/[bar].
677591
678−Foo [biz](/url/ "Title with "quote" inside").
592+Foo link:/url/[biz].
679593
680594With ampersands
681595~~~~~~~~~~~~~~~
682596
683−Here’s a [link with an ampersand in the URL](http://example.com/?foo=1&bar=2).
597+Here’s a http://example.com/?foo=1&bar=2[link with an ampersand in the
598+URL].
684599
685−Here’s a link with an amersand in the link text:
686−[AT&T](http://att.com/ "AT&T").
600+Here’s a link with an amersand in the link text: http://att.com/[AT&T].
687601
688−Here’s an [inline link](/script?foo=1&bar=2).
602+Here’s an link:/script?foo=1&bar=2[inline link].
689603
690−Here’s an [inline link in pointy braces](/script?foo=1&bar=2).
604+Here’s an link:/script?foo=1&bar=2[inline link in pointy braces].
691605
692606Autolinks
693607~~~~~~~~~
694608
695−With an ampersand: <http://example.com/?foo=1&bar=2>
609+With an ampersand: http://example.com/?foo=1&bar=2
696610
697−- In a list?
698−- <http://example.com/>
699−- It should.
611+* In a list?
612+* http://example.com/
613+* It should.
700614
701−An e-mail address: <nobody@nowhere.net>
615+An e-mail address: nobody@nowhere.net
702616
703−> Blockquoted: <http://example.com/>
617+________________________________
618+Blockquoted: http://example.com/
619+________________________________
704620
705621Auto-links should not occur here: `<http://example.com/>`
706622
707− or here: <http://example.com/>
623+------------------------------
624+or here: <http://example.com/>
625+------------------------------
708626
709627'''''
710628
711629Images
712630------
713631
714−From “Voyage dans la Lune” by Georges Melies (1902):
632+From ``Voyage dans la Lune'' by Georges Melies (1902):
715633
716−![lalune](lalune.jpg "Voyage dans la Lune")
634+image:lalune.jpg[lalune,title="Voyage dans la Lune"]
717635
718−Here is a movie ![movie](movie.jpg) icon.
636+Here is a movie image:movie.jpg[movie] icon.
719637
720638'''''
721639
722640Footnotes
723641---------
724642
725−Here is a footnote reference,[^1] and another.[^2] This should *not* be a
726−footnote reference, because it contains a space.[\^my note] Here is an inline
727−note.[^3]
643+Here is a footnote reference,footnote:[Here is the footnote. It can go
644+anywhere after the footnote reference. It need not be placed at the end
645+of the document.] and another.[multiblock footnote omitted] This should
646+_not_ be a footnote reference, because it contains a space.[\^my note]
647+Here is an inline note.footnote:[This is _easier_ to type. Inline notes
648+may contain http://google.com[links] and `]` verbatim characters, as
649+well as [bracketed text].]
728650
729−> Notes can go in quotes.[^4]
651+___________________________________________
652+Notes can go in quotes.footnote:[In quote.]
653+___________________________________________
730654
731−1. And in list items.[^5]
655+1. And in list items.footnote:[In list.]
732656
733657This paragraph should not be part of the note, as it is not indented.
734−
735−[^1]: Here is the footnote. It can go anywhere after the footnote reference.
736− It need not be placed at the end of the document.
737−
738−[^2]: Here’s the long note. This one contains multiple blocks.
739−
740− Subsequent blocks are indented to show that they belong to the footnote
741− (as with list items).
742−
743− { <code> }
744−
745− If you want, you can indent every line, but you can also be lazy and just
746− indent the first line of each block.
747−
748−[^3]: This is *easier* to type. Inline notes may contain
749− [links](http://google.com) and `]` verbatim characters, as well as
750− [bracketed text].
751−
752−[^4]: In quote.
753−
754−[^5]: In list.