git.iko.soy/typeable/pandoc
on de79021 help sign in
typeable/pandoc/tests/textile-reader.textile
218 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.
144"Example":http://www.example.com/: Example of a link followed by a colon.
146h1. Tables
148Textile allows tables with and without headers :
150h2. Without headers
152| name | age | sex |
153| joan | 24 | f |
154| archie | 29 | m |
155| bella | 45 | f |
157and some text following ...
159h2. With headers
161|_. name |_. age |_. sex |
162| joan | 24 | f |
163| archie | 29 | m |
164| bella | 45 | f |
168h1. Images
170Textile inline image syntax, like
171here !this_is_an_image.png(this is the alt text)!
172and here !this_is_an_image.png!.
174h1. Attributes
176h2{color:red}. HTML and CSS attributes are ignored
178as well as *(foo)inline attributes* of %{color:red} all kind%
180p{color:green}. and paragraph attributes, and table attributes.
182table{foo:bar}.
183| name | age | sex |
184| joan | 24 | f |
186h1. Raw HTML
188However, <strong> raw HTML inlines </strong> are accepted, as well as :
190<div class="foobar">
191 any *Raw HTML Block* with bold
192</div>
194Html blocks can be <div>inlined</div> as well.
196* this <div> won't produce raw html blocks </div>
197* but this <strong> will produce inline html </strong>
199Can you prove that 2 < 3 ?
201h1. Acronyms and marks
203PBS(Public Broadcasting System)
205Hi(tm)
207Hi (TM)
209(r) Hi(r)
211Hi(c)2008 (C) 2008
213h1. Footnotes
215A note.[1]
217fn1. The note
218is here!