git.iko.soy/typeable/pandoc
on 34412cf help sign in
typeable/pandoc/test/textile-reader.textile
278 lines 4.2 kB history raw
1This is a set of tests for pandoc Textile Reader. Part of it comes
2from John Gruber's markdown test suite.
4-----
6h1. Headers
8h2. Level 2 with an "embeded link":http://www.example.com
10h3. Level 3 with *emphasis*
12h4. Level 4
14h5. Level 5
16h6. Level 6
19h1. Paragraphs
21Here's a regular paragraph.
23Line breaks are preserved in textile, so you can not wrap your very
24long paragraph with your favourite text editor and have it rendered
25with no break.
28Here's one with a bullet.
30* criminey.
32There should be a paragraph break between here
34and here.
36pandoc converts textile.
38h1. Block Quotes
40bq. This is a famous quote from somebody. He had a lot of things to
41say, so the text is really really long and spans on multiple lines.
43And a following paragraph.
45h1. Code Blocks
47Code:
49<pre>
50 ---- (should be four hyphens)
52 sub status {
53 print "working";
54 }
56 this code block is indented by one tab
57</pre>
59And:
61<pre>
62 this code block is indented by two tabs
64 These should not be escaped: \$ \\ \> \[ \{
65</pre>
67bc. Code block with .bc
68 continued
69 @</\
71bc.. extended code block
73 continued
74p. ended by paragraph
76Inline code: @<tt>@, <tt>@</tt>.
78h1. Notextile
80A block of text can be protected with notextile :
82<notextile>
83No *bold* and
84* no bullet
85</notextile>
87and inlines can be protected with ==double *equals (=)* markup==.
89h1. Lists
91h2. Unordered
93Asterisks tight:
95* asterisk 1
96* asterisk 2
97* asterisk 3
99With line breaks:
101* asterisk 1
102newline
103* asterisk 2
105h2. Ordered
107Tight:
109# First
110# Second
111# Third
113h2. Nested
115* ui 1
116** ui 1.1
117### oi 1.1.1
118### oi 1.1.2
119** ui 1.2
120* ui 2
121## oi 2.1
122*** ui 2.1.1
123*** ui 2.1.2
125h2. Issue #1500
127* one
128* two
129-> and more
131h2. Issue #1513
133List:
134* one
135* two
137h2. Definition List
139- coffee := Hot and black
140- tea := Also hot, but a little less black
141- milk :=
142Nourishing beverage for baby cows.
144Cold drink that goes great with cookies.=:
145- beer := fresh and bitter
148h1. Inline Markup
150This is _emphasized_, and so __is this__.
151This is *strong*, and so **is this**.
152Hyphenated-words-are-ok, as well as strange_underscore_notation.
153A "*strong link*":http://www.foobar.com.
155_*This is strong and em.*_
156So is *_this_* word and __**that one**__.
157-This is strikeout and *strong*-
159Superscripts: a[^bc^]d a ^*hello*^ a[^hello there^].
160Subscripts: ~here~ H[ ~2~]O, H[ ~23~]O, H[ ~many of them~]O.
162Dashes : How cool -- automatic dashes.
164Elipses : He thought and thought ... and then thought some more.
166Quotes and apostrophes : "I'd like to thank you" for example.
169h1. Links
171h2. Explicit
173Just a "url":http://www.url.com
175"Email link":mailto:nobody@nowhere.net
177"not a link": foo
179Automatic linking to "$":http://www.example.com.
181"Example":http://www.example.com/: Example of a link followed by a colon.
183A link["with brackets":http://www.example.com]and no spaces.
185h1. Tables
187Textile allows tables with and without headers :
189h2. Without headers
191| name | age | sex |
192| joan | 24 | f |
193| archie | 29 | m |
194| bella | 45 | f |
196and some text following ...
198h2. With headers
200|_. name |_. age |_. sex |
201| joan | 24 | f |
202| archie | 29 | m |
203| bella | 45 | f |
207h1. Images
209Textile inline image syntax, like
210here !this_is_an_image.png(this is the alt text)!
211and here !this_is_an_image.png!.
213h1. Attributes
215h2[en]{color:red}(foo bar #ident). HTML and CSS attributes are parsed in headers.
217h2=. Centered
219h2>. Right
221h2<>{color:blue}[en]. Justified
223as well as *(foo)inline attributes* of %{color:red}all kind%
225p{color:green}. and paragraph attributes, and table attributes.
227table{foo:bar}.
228| name | age | sex |
229| joan | 24 | f |
231_(class#id) emph_
233_(no class#id) emph_
235h1. Entities
237&#42;
238&amp;
240h1. Raw HTML
242However, <strong> raw HTML inlines </strong> are accepted, as well as :
244<div class="foobar">
245 any *Raw HTML Block* with bold
246</div>
248Html blocks can <div>interrupt paragraphs</div> as well.
250Can you prove that 2 < 3 ?
252h1. Acronyms and marks
254PBS(Public Broadcasting System)
256Hi(tm)
258Hi (TM)
260(r) Hi(r)
262Hi(c)2008 (C) 2008
264h1. Footnotes
266A note.[1] Another note[2].
268fn1. The note
269is here!
271fn2. Other note.
273h1. Comment blocks
275###. my comment
276is here.
278not a comment.