git.iko.soy/typeable/pandoc
on rc/2.11.0.4 help sign in
typeable/pandoc/test/writer.zimwiki
619 lines 8.6 kB history raw
1Content-Type: text/x-zim-wiki
2Wiki-Format: zim 0.4
4This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite.
7----
9====== Headers ======
11===== Level 2 with an embedded link =====
13==== Level 3 with emphasis ====
15=== Level 4 ===
17== Level 5 ==
19====== Level 1 ======
21===== Level 2 with emphasis =====
23==== Level 3 ====
25with no blank line
27===== Level 2 =====
29with no blank line
32----
34====== Paragraphs ======
36Here’s a regular paragraph.
38In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item.
40Here’s one with a bullet. * criminey.
42There should be a hard line break
43here.
46----
48====== Block Quotes ======
50E-mail style:
52> This is a block quote. It is pretty short.
54> Code in a block quote:
55>
56> '''
57> sub status {
58> print "working";
59> }
60> '''
61>
62> A list:
63>
64> 1. item one
65> 2. item two
66>
67> Nested block quotes:
68>
69> > nested
70>
71> > nested
73This should not be a block quote: 2 > 1.
75And a following paragraph.
78----
80====== Code Blocks ======
82Code:
84'''
85---- (should be four hyphens)
87sub status {
88 print "working";
91this code block is indented by one tab
92'''
94And:
96'''
97 this code block is indented by two tabs
99These should not be escaped: \$ \\ \> \[ \{
100'''
103----
105====== Lists ======
107===== Unordered =====
109Asterisks tight:
111* asterisk 1
112* asterisk 2
113* asterisk 3
115Asterisks loose:
117* asterisk 1
118* asterisk 2
119* asterisk 3
121Pluses tight:
123* Plus 1
124* Plus 2
125* Plus 3
127Pluses loose:
129* Plus 1
130* Plus 2
131* Plus 3
133Minuses tight:
135* Minus 1
136* Minus 2
137* Minus 3
139Minuses loose:
141* Minus 1
142* Minus 2
143* Minus 3
145===== Ordered =====
147Tight:
1491. First
1502. Second
1513. Third
153and:
1551. One
1562. Two
1573. Three
159Loose using tabs:
1611. First
1622. Second
1633. Third
165and using spaces:
1671. One
1682. Two
1693. Three
171Multiple paragraphs:
1731. Item 1, graf one.
174Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.
1752. Item 2.
1763. Item 3.
178===== Nested =====
180* Tab
181 * Tab
182 * Tab
184Here’s another:
1861. First
1872. Second:
188 * Fee
189 * Fie
190 * Foe
1913. Third
193Same thing but with paragraphs:
1951. First
1962. Second:
197 * Fee
198 * Fie
199 * Foe
2003. Third
202===== Tabs and spaces =====
204* this is a list item indented with tabs
205* this is a list item indented with spaces
206 * this is an example list item indented with tabs
207 * this is an example list item indented with spaces
209===== Fancy list markers =====
2111. begins with 2
2122. and now 3
213with a continuation
214 1. sublist with roman numerals, starting with 4
215 2. more items
216 1. a subsublist
217 2. a subsublist
219Nesting:
2211. Upper Alpha
222 1. Upper Roman.
223 1. Decimal start with 6
224 1. Lower alpha with paren
226Autonumbering:
2281. Autonumber.
2292. More.
230 1. Nested.
232Should not be a list item:
234M.A. 2007
236B. Williams
239----
241====== Definition Lists ======
243Tight using spaces:
245* **apple** red fruit
246* **orange** orange fruit
247* **banana** yellow fruit
248Tight using tabs:
250* **apple** red fruit
251* **orange** orange fruit
252* **banana** yellow fruit
253Loose:
255* **apple** red fruit
257* **orange** orange fruit
259* **banana** yellow fruit
261Multiple blocks with italics:
263* **//apple//** red fruit
265contains seeds, crisp, pleasant to taste
267* **//orange//** orange fruit
269'''
270{ orange code block }
271'''
273> orange block quote
275Multiple definitions, tight:
277* **apple** red fruitcomputer
278* **orange** orange fruitbank
279Multiple definitions, loose:
281* **apple** red fruit
282computer
284* **orange** orange fruit
285bank
287Blank line after term, indented marker, alternate markers:
289* **apple** red fruit
290computer
292* **orange** orange fruit
2941. sublist
2952. sublist
297====== HTML Blocks ======
299Simple block on one line:
301foo
303And nested without indentation:
305foo
309bar
312Interpreted markdown in a table:
317This is //emphasized//
320And this is **strong**
325Here’s a simple block:
327foo
330This should be a code block, though:
332'''
333<div>
334 foo
335</div>
336'''
338As should this:
340'''
341<div>foo</div>
342'''
344Now, nested:
346foo
350This should just be an HTML comment:
353Multiline:
357Code block:
359'''
360<!-- Comment -->
361'''
363Just plain comment, with trailing spaces on the line:
366Code:
368'''
369<hr />
370'''
372Hr’s:
384----
386====== Inline Markup ======
388This is //emphasized//, and so //is this//.
390This is **strong**, and so **is this**.
392An //[[url|emphasized link]]//.
394**//This is strong and em.//**
396So is **//this//** word.
398**//This is strong and em.//**
400So is **//this//** word.
402This is code: ''>'', ''$'', ''\'', ''\$'', ''<html>''.
404~~This is //strikeout//.~~
406Superscripts: a^{bc}d a^{//hello//} a^{hello there}.
408Subscripts: H_{2}O, H_{23}O, H_{many of them}O.
410These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.
413----
415====== Smart quotes, ellipses, dashes ======
417“Hello,” said the spider. “‘Shelob’ is my name.”
419‘A’, ‘B’, and ‘C’ are letters.
421‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’
423‘He said, “I want to go.”’ Were you alive in the 70’s?
425Here is some quoted ‘''code''’ and a “[[http://example.com/?foo=1&bar=2|quoted link]]”.
427Some dashes: one—two — three—four — five.
429Dashes between numbers: 5–7, 255–66, 1987–1999.
431Ellipses…and…and….
434----
436====== LaTeX ======
438*
439* $2+2=4$
440* $x \in y$
441* $\alpha \wedge \omega$
442* $223$
443* $p$-Tree
444* Here’s some display math: $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
445* Here’s one that has a line break in it: $\alpha + \omega \times x^2$.
447These shouldn’t be math:
449* To get the famous equation, write ''$e = mc^2$''.
450* $22,000 is a //lot// of money. So is $34,000. (It worked if “lot” is emphasized.)
451* Shoes ($20) and socks ($5).
452* Escaped ''$'': $73 //this should be emphasized// 23$.
454Here’s a LaTeX table:
458----
460====== Special Characters ======
462Here is some unicode:
464* I hat: Î
465* o umlaut: ö
466* section: §
467* set membership: ∈
468* copyright: ©
470AT&T has an ampersand in their name.
472AT&T is another way to write it.
474This & that.
4764 < 5.
4786 > 5.
480Backslash: \
482Backtick: `
484Asterisk: *
486Underscore: _
488Left brace: {
490Right brace: }
492Left bracket: [
494Right bracket: ]
496Left paren: (
498Right paren: )
500Greater-than: >
502Hash: #
504Period: .
506Bang: !
508Plus: +
510Minus: -
513----
515====== Links ======
517===== Explicit =====
519Just a [[url/|URL]].
521[[url/|URL and title]].
523[[url/|URL and title]].
525[[url/|URL and title]].
527[[url/|URL and title]]
529[[url/|URL and title]]
531[[url/with_underscore|with_underscore]]
533[[mailto:nobody@nowhere.net|Email link]]
535[[|Empty]].
537===== Reference =====
539Foo [[url/|bar]].
541With [[url/|embedded [brackets]]].
543[[url/|b]] by itself should be a link.
545Indented [[url|once]].
547Indented [[url|twice]].
549Indented [[url|thrice]].
551This should [not][] be a link.
553'''
554[not]: /url
555'''
557Foo [[url/|bar]].
559Foo [[url/|biz]].
561===== With ampersands =====
563Here’s a [[http://example.com/?foo=1&bar=2|link with an ampersand in the URL]].
565Here’s a link with an amersand in the link text: [[http://att.com/|AT&T]].
567Here’s an [[script?foo=1&bar=2|inline link]].
569Here’s an [[script?foo=1&bar=2|inline link in pointy braces]].
571===== Autolinks =====
573With an ampersand: http://example.com/?foo=1&bar=2
575* In a list?
576* http://example.com/
577* It should.
579An e-mail address: <nobody@nowhere.net>
581> Blockquoted: http://example.com/
583Auto-links should not occur here: ''<http://example.com/>''
585'''
586or here: <http://example.com/>
587'''
590----
592====== Images ======
594From “Voyage dans la Lune” by Georges Melies (1902):
596{{lalune.jpg|Voyage dans la Lune lalune}}
598Here is a movie {{movie.jpg|movie}} icon.
601----
603====== Footnotes ======
605Here is a footnote reference, **{Note:** Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.**}** and another. **{Note:** Here’s the long note. This one contains multiple blocks.
607Subsequent blocks are indented to show that they belong to the footnote (as with list items).
609'''
610 { <code> }
611'''
613If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.**}** This should //not// be a footnote reference, because it contains a space.[^my note] Here is an inline note. **{Note:** This is //easier// to type. Inline notes may contain [[http://google.com|links]] and '']'' verbatim characters, as well as [bracketed text].**}**
615> Notes can go in quotes. **{Note:** In quote.**}**
6171. And in list items. **{Note:** In list.**}**
619This paragraph should not be part of the note, as it is not indented.