git.iko.soy/typeable/pandoc
on 0.10 help sign in
typeable/pandoc/tests/textile-reader.textile
258 lines 4.1 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. Notextile
75A block of text can be protected with notextile :
77<notextile>
78No *bold* and
79* no bullet
80</notextile>
82and inlines can be protected with ==double *equals (=)* markup==.
84h1. Lists
86h2. Unordered
88Asterisks tight:
90* asterisk 1
91* asterisk 2
92* asterisk 3
94With line breaks:
96* asterisk 1
97newline
98* asterisk 2
100h2. Ordered
102Tight:
104# First
105# Second
106# Third
108h2. Nested
110* ui 1
111** ui 1.1
112### oi 1.1.1
113### oi 1.1.2
114** ui 1.2
115* ui 2
116## oi 2.1
117*** ui 2.1.1
118*** ui 2.1.2
120h2. Definition List
122- coffee := Hot and black
123- tea := Also hot, but a little less black
124- milk :=
125Nourishing beverage for baby cows.
127Cold drink that goes great with cookies.=:
128- beer := fresh and bitter
131h1. Inline Markup
133This is _emphasized_, and so __is this__.
134This is *strong*, and so **is this**.
135Hyphenated-words-are-ok, as well as strange_underscore_notation.
136A "*strong link*":http://www.foobar.com.
138_*This is strong and em.*_
139So is *_this_* word and __**that one**__.
140-This is strikeout and *strong*-
142Superscripts: a[^bc^]d a^*hello*^ a[^hello there^].
143Subscripts: ~here~ H[~2~]O, H[~23~]O, H[~many of them~]O.
145Dashes : How cool -- automatic dashes.
147Elipses : He thought and thought ... and then thought some more.
149Quotes and apostrophes : "I'd like to thank you" for example.
152h1. Links
154h2. Explicit
156Just a "url":http://www.url.com
158"Email link":mailto:nobody@nowhere.net
160Automatic linking to "$":http://www.example.com.
162"Example":http://www.example.com/: Example of a link followed by a colon.
164A link["with brackets":http://www.example.com]and no spaces.
166h1. Tables
168Textile allows tables with and without headers :
170h2. Without headers
172| name | age | sex |
173| joan | 24 | f |
174| archie | 29 | m |
175| bella | 45 | f |
177and some text following ...
179h2. With headers
181|_. name |_. age |_. sex |
182| joan | 24 | f |
183| archie | 29 | m |
184| bella | 45 | f |
188h1. Images
190Textile inline image syntax, like
191here !this_is_an_image.png(this is the alt text)!
192and here !this_is_an_image.png!.
194h1. Attributes
196h2{color:red}. HTML and CSS attributes are ignored
198as well as *(foo)inline attributes* of %{color:red} all kind%
200p{color:green}. and paragraph attributes, and table attributes.
202table{foo:bar}.
203| name | age | sex |
204| joan | 24 | f |
206h1. Raw HTML
208However, <strong> raw HTML inlines </strong> are accepted, as well as :
210<div class="foobar">
211 any *Raw HTML Block* with bold
212</div>
214Html blocks can be <div>inlined</div> as well.
216* this <div> won't produce raw html blocks </div>
217* but this <strong> will produce inline html </strong>
219Can you prove that 2 < 3 ?
221h1. Raw LaTeX
223This Textile reader also accepts raw LaTeX for blocks :
225\begin{itemize}
226 \item one
227 \item two
228\end{itemize}
230and for \emph{inlines}.
232h1. Acronyms and marks
234PBS(Public Broadcasting System)
236Hi(tm)
238Hi (TM)
240(r) Hi(r)
242Hi(c)2008 (C) 2008
244h1. Footnotes
246A note.[1] Another note[2].
248fn1. The note
249is here!
251fn2. Other note.
253h1. Comment blocks
255###. my comment
256is here.
258not a comment.