git.iko.soy/typeable/pandoc
on rc/test4 help sign in
typeable/pandoc/test/writer.asciidoctor
649 lines 8.3 kB history raw
1= Pandoc Test Suite
2John MacFarlane; Anonymous
3July 17, 2006
4:stem: latexmath
6This is a set of tests for pandoc. Most of them are adapted from John Gruber’s
7markdown test suite.
9'''''
11== Headers
13=== Level 2 with an link:/url[embedded link]
15==== Level 3 with _emphasis_
17===== Level 4
19====== Level 5
21== Level 1
23=== Level 2 with _emphasis_
25==== Level 3
27with no blank line
29=== Level 2
31with no blank line
33'''''
35== Paragraphs
37Here’s a regular paragraph.
39In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
40Because a hard-wrapped line in the middle of a paragraph looked like a list
41item.
43Here’s one with a bullet. * criminey.
45There should be a hard line break +
46here.
48'''''
50== Block Quotes
52E-mail style:
54____
55This is a block quote. It is pretty short.
56____
58____
59--
60Code in a block quote:
62....
63sub status {
64 print "working";
66....
68A list:
70[arabic]
71. item one
72. item two
74Nested block quotes:
76____
77nested
78____
80____
81nested
82____
84--
85____
87This should not be a block quote: 2 > 1.
89And a following paragraph.
91'''''
93== Code Blocks
95Code:
97....
98---- (should be four hyphens)
100sub status {
101 print "working";
104this code block is indented by one tab
105....
107And:
109....
110 this code block is indented by two tabs
112These should not be escaped: \$ \\ \> \[ \{
113....
115'''''
117== Lists
119=== Unordered
121Asterisks tight:
123* asterisk 1
124* asterisk 2
125* asterisk 3
127Asterisks loose:
129* asterisk 1
130* asterisk 2
131* asterisk 3
133Pluses tight:
135* Plus 1
136* Plus 2
137* Plus 3
139Pluses loose:
141* Plus 1
142* Plus 2
143* Plus 3
145Minuses tight:
147* Minus 1
148* Minus 2
149* Minus 3
151Minuses loose:
153* Minus 1
154* Minus 2
155* Minus 3
157=== Ordered
159Tight:
161[arabic]
162. First
163. Second
164. Third
166and:
168[arabic]
169. One
170. Two
171. Three
173Loose using tabs:
175[arabic]
176. First
177. Second
178. Third
180and using spaces:
182[arabic]
183. One
184. Two
185. Three
187Multiple paragraphs:
189[arabic]
190. Item 1, graf one.
192Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.
193. Item 2.
194. Item 3.
196=== Nested
198* Tab
199** Tab
200*** Tab
202Here’s another:
204[arabic]
205. First
206. Second:
207* Fee
208* Fie
209* Foe
210. Third
212Same thing but with paragraphs:
214[arabic]
215. First
216. Second:
217* Fee
218* Fie
219* Foe
220. Third
222=== Tabs and spaces
224* this is a list item indented with tabs
225* this is a list item indented with spaces
226** this is an example list item indented with tabs
227** this is an example list item indented with spaces
229=== Fancy list markers
231[arabic, start=2]
232. begins with 2
233. and now 3
235with a continuation
236[lowerroman, start=4]
237.. sublist with roman numerals, starting with 4
238.. more items
239[upperalpha]
240... a subsublist
241... a subsublist
243Nesting:
245[upperalpha]
246. Upper Alpha
247[upperroman]
248.. Upper Roman.
249[arabic, start=6]
250... Decimal start with 6
251[loweralpha, start=3]
252.... Lower alpha with paren
254Autonumbering:
256. Autonumber.
257. More.
258.. Nested.
260Should not be a list item:
262M.A. 2007
264B. Williams
266'''''
268== Definition Lists
270Tight using spaces:
272apple::
273 red fruit
274orange::
275 orange fruit
276banana::
277 yellow fruit
279Tight using tabs:
281apple::
282 red fruit
283orange::
284 orange fruit
285banana::
286 yellow fruit
288Loose:
290apple::
291 red fruit
292orange::
293 orange fruit
294banana::
295 yellow fruit
297Multiple blocks with italics:
299_apple_::
300 red fruit
301 +
302 contains seeds, crisp, pleasant to taste
303_orange_::
304 orange fruit
305 +
306....
307{ orange code block }
308....
309 +
310 ____
311 orange block quote
312 ____
314Multiple definitions, tight:
316apple::
317 red fruit
318 +
319 computer
320orange::
321 orange fruit
322 +
323 bank
325Multiple definitions, loose:
327apple::
328 red fruit
329 +
330 computer
331orange::
332 orange fruit
333 +
334 bank
336Blank line after term, indented marker, alternate markers:
338apple::
339 red fruit
340 +
341 computer
342orange::
343 orange fruit
344 +
345 [arabic]
346 . sublist
347 . sublist
349== HTML Blocks
351Simple block on one line:
353foo
355And nested without indentation:
357foo
359bar
361Interpreted markdown in a table:
363This is _emphasized_
365And this is *strong*
367Here’s a simple block:
369foo
371This should be a code block, though:
373....
374<div>
375 foo
376</div>
377....
379As should this:
381....
382<div>foo</div>
383....
385Now, nested:
387foo
389This should just be an HTML comment:
391Multiline:
393Code block:
395....
396<!-- Comment -->
397....
399Just plain comment, with trailing spaces on the line:
401Code:
403....
404<hr />
405....
407Hr’s:
409'''''
411== Inline Markup
413This is _emphasized_, and so _is this_.
415This is *strong*, and so *is this*.
417An _link:/url[emphasized link]_.
419*_This is strong and em._*
421So is *_this_* word.
423*_This is strong and em._*
425So is *_this_* word.
427This is code: `+>+`, `+$+`, `+\+`, `+\$+`, `+<html>+`.
429[line-through]*This is _strikeout_.*
431Superscripts: a^bc^d a^_hello_^ a^hello there^.
433Subscripts: H~2~O, H~23~O, H~many of them~O.
435These should not be superscripts or subscripts, because of the unescaped
436spaces: a^b c^d, a~b c~d.
438'''''
440== Smart quotes, ellipses, dashes
442"`Hello,`" said the spider. "`'`Shelob`' is my name.`"
444'`A`', '`B`', and '`C`' are letters.
446'`Oak,`' '`elm,`' and '`beech`' are names of trees. So is '`pine.`'
448'`He said, "`I want to go.`"`' Were you alive in the 70’s?
450Here is some quoted '``+code+``' and a
451"`http://example.com/?foo=1&bar=2[quoted link]`".
453Some dashes: one—two — three—four — five.
455Dashes between numbers: 5–7, 255–66, 1987–1999.
457Ellipses…and…and….
459'''''
461== LaTeX
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:
471[latexmath]
472++++
473\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}
474++++
475* Here’s one that has a line break in it:
476latexmath:[\alpha + \omega \times x^2].
478These shouldn’t be math:
480* To get the famous equation, write `+$e = mc^2$+`.
481* $22,000 is a _lot_ of money. So is $34,000. (It worked if "`lot`" is
482emphasized.)
483* Shoes ($20) and socks ($5).
484* Escaped `+$+`: $73 _this should be emphasized_ 23$.
486Here’s a LaTeX table:
488'''''
490== Special Characters
492Here is some unicode:
494* I hat: Î
495* o umlaut: ö
496* section: §
497* set membership: ∈
498* copyright: ©
500AT&T has an ampersand in their name.
502AT&T is another way to write it.
504This & that.
5064 < 5.
5086 > 5.
510Backslash: \
512Backtick: `
514Asterisk: *
516Underscore: _
518Left brace: \{
520Right brace: }
522Left bracket: [
524Right bracket: ]
526Left paren: (
528Right paren: )
530Greater-than: >
532Hash: #
534Period: .
536Bang: !
538Plus: +
540Minus: -
542'''''
544== Links
546=== Explicit
548Just a link:/url/[URL].
550link:/url/[URL and title].
552link:/url/[URL and title].
554link:/url/[URL and title].
556link:/url/[URL and title]
558link:/url/[URL and title]
560link:/url/with_underscore[with_underscore]
562mailto:nobody@nowhere.net[Email link]
564link:[Empty].
566=== Reference
568Foo link:/url/[bar].
570With link:/url/[embedded [brackets]].
572link:/url/[b] by itself should be a link.
574Indented link:/url[once].
576Indented link:/url[twice].
578Indented link:/url[thrice].
580This should [not][] be a link.
582....
583[not]: /url
584....
586Foo link:/url/[bar].
588Foo link:/url/[biz].
590=== With ampersands
592Here’s a http://example.com/?foo=1&bar=2[link with an ampersand in the URL].
594Here’s a link with an amersand in the link text: http://att.com/[AT&T].
596Here’s an link:/script?foo=1&bar=2[inline link].
598Here’s an link:/script?foo=1&bar=2[inline link in pointy braces].
600=== Autolinks
602With an ampersand: http://example.com/?foo=1&bar=2
604* In a list?
605* http://example.com/
606* It should.
608An e-mail address: nobody@nowhere.net
610____
611Blockquoted: http://example.com/
612____
614Auto-links should not occur here: `+<http://example.com/>+`
616....
617or here: <http://example.com/>
618....
620'''''
622== Images
624From "`Voyage dans la Lune`" by Georges Melies (1902):
626image::lalune.jpg[lalune,title="Voyage dans la Lune"]
628Here is a movie image:movie.jpg[movie] icon.
630'''''
632== Footnotes
634Here is a footnote reference,footnote:[Here is the footnote. It can go
635anywhere after the footnote reference. It need not be placed at the end of the
636document.] and another.[multiblock footnote omitted] This should _not_ be a
637footnote reference, because it contains a space.[^my note] Here is an inline
638note.footnote:[This is _easier_ to type. Inline notes may contain
639http://google.com[links] and `+]+` verbatim characters, as well as [bracketed
640text].]
642____
643Notes can go in quotes.footnote:[In quote.]
644____
646[arabic]
647. And in list items.footnote:[In list.]
649This paragraph should not be part of the note, as it is not indented.