git.iko.soy/typeable/pandoc
on 1.8 help sign in
typeable/pandoc/tests/textile-reader.textile
216 lines 3.5 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 @</\
71Inline code: @<tt>@, <tt>@</tt>.
73h1. Lists
75h2. Unordered
77Asterisks tight:
79* asterisk 1
80* asterisk 2
81* asterisk 3
83h2. Ordered
85Tight:
87# First
88# Second
89# Third
91h2. Nested
93* ui 1
94** ui 1.1
95### oi 1.1.1
96### oi 1.1.2
97** ui 1.2
98* ui 2
99## oi 2.1
100*** ui 2.1.1
101*** ui 2.1.2
103h2. Definition List
105- coffee := Hot and black
106- tea := Also hot, but a little less black
107- milk :=
108Nourishing beverage for baby cows.
110Cold drink that goes great with cookies.=:
111- beer := fresh and bitter
114h1. Inline Markup
116This is _emphasized_, and so __is this__.
117This is *strong*, and so **is this**.
118A "*strong link*":http://www.foobar.com.
120_*This is strong and em.*_
121So is *_this_* word and __**that one**__.
122-This is strikeout and *strong*-
124Superscripts: a^bc^d a^*hello*^ a^hello there^.
125Subscripts: H~2~O, H~23~O, H~many of them~O.
127Dashes : How cool -- automatic dashes.
129Elipses : He thought and thought ... and then thought some more.
131Quotes and apostrophes : "I'd like to thank you" for example.
134h1. Links
136h2. Explicit
138Just a "url":http://www.url.com
140"Email link":mailto:nobody@nowhere.net
142Automatic linking to http://www.example.com and foobar@example.com.
144h1. Tables
146Textile allows tables with and without headers :
148h2. Without headers
150| name | age | sex |
151| joan | 24 | f |
152| archie | 29 | m |
153| bella | 45 | f |
155and some text following ...
157h2. With headers
159|_. name |_. age |_. sex |
160| joan | 24 | f |
161| archie | 29 | m |
162| bella | 45 | f |
166h1. Images
168Textile inline image syntax, like
169here !this_is_an_image.png(this is the alt text)!
170and here !this_is_an_image.png!.
172h1. Attributes
174h2{color:red}. HTML and CSS attributes are ignored
176as well as *(foo)inline attributes* of %{color:red} all kind%
178p{color:green}. and paragraph attributes, and table attributes.
180table{foo:bar}.
181| name | age | sex |
182| joan | 24 | f |
184h1. Raw HTML
186However, <strong> raw HTML inlines </strong> are accepted, as well as :
188<div class="foobar">
189 any *Raw HTML Block* with bold
190</div>
192Html blocks can be <div>inlined</div> as well.
194* this <div> won't produce raw html blocks </div>
195* but this <strong> will produce inline html </strong>
197Can you prove that 2 < 3 ?
199h1. Acronyms and marks
201PBS(Public Broadcasting System)
203Hi(tm)
205Hi (TM)
207(r) Hi(r)
209Hi(c)2008 (C) 2008
211h1. Footnotes
213A note.[1]
215fn1. The note
216is here!