git.iko.soy/typeable/pandoc
on 2.4 help sign in
typeable/pandoc/test/textile-reader.textile
279 lines 4.3 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 "embedded 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**.
152This is +inserted+, and this is -deleted-.
153Hyphenated-words-are-ok, as well as strange_underscore_notation.
154A "*strong link*":http://www.foobar.com.
156_*This is strong and em.*_
157So is *_this_* word and __**that one**__.
158-This is strikeout and *strong*-
160Superscripts: a[^bc^]d a ^*hello*^ a[^hello there^].
161Subscripts: ~here~ H[ ~2~]O, H[ ~23~]O, H[ ~many of them~]O.
163Dashes : How cool -- automatic dashes.
165Elipses : He thought and thought ... and then thought some more.
167Quotes and apostrophes : "I'd like to thank you" for example.
170h1. Links
172h2. Explicit
174Just a "url":http://www.url.com
176"Email link":mailto:nobody@nowhere.net
178"not a link": foo
180Automatic linking to "$":http://www.example.com.
182"Example":http://www.example.com/: Example of a link followed by a colon.
184A link["with brackets":http://www.example.com]and no spaces.
186h1. Tables
188Textile allows tables with and without headers :
190h2. Without headers
192| name | age | sex |
193| joan | 24 | f |
194| archie | 29 | m |
195| bella | 45 | f |
197and some text following ...
199h2. With headers
201|_. name |_. age |_. sex |
202| joan | 24 | f |
203| archie | 29 | m |
204| bella | 45 | f |
208h1. Images
210Textile inline image syntax, like
211here !this_is_an_image.png(this is the alt text)!
212and here !this_is_an_image.png!.
214h1. Attributes
216h2[en]{color:red}(foo bar #ident). HTML and CSS attributes are parsed in headers.
218h2=. Centered
220h2>. Right
222h2<>{color:blue}[en]. Justified
224as well as *(foo)inline attributes* of %{color:red}all kind%
226p{color:green}. and paragraph attributes, and table attributes.
228table{foo:bar}.
229| name | age | sex |
230| joan | 24 | f |
232_(class#id) emph_
234_(no class#id) emph_
236h1. Entities
238&#42;
239&amp;
241h1. Raw HTML
243However, <strong> raw HTML inlines </strong> are accepted, as well as :
245<div class="foobar">
246 any *Raw HTML Block* with bold
247</div>
249Html blocks can <div>interrupt paragraphs</div> as well.
251Can you prove that 2 < 3 ?
253h1. Acronyms and marks
255PBS(Public Broadcasting System)
257Hi(tm)
259Hi (TM)
261(r) Hi(r)
263Hi(c)2008 (C) 2008
265h1. Footnotes
267A note.[1] Another note[2].
269fn1. The note
270is here!
272fn2. Other note.
274h1. Comment blocks
276###. my comment
277is here.
279not a comment.