This is a set of tests for pandoc Textile Reader. Part of it comes
from John Gruber's markdown test suite.
-----
h1. Headers
h2. Level 2 with an "embeded link":http://www.example.com
h3. Level 3 with *emphasis*
h4. Level 4
h5. Level 5
h6. Level 6
h1. Paragraphs
Here's a regular paragraph.
Line breaks are preserved in textile, so you can not wrap your very
long paragraph with your favourite text editor and have it rendered
with no break.
Here's one with a bullet.
* criminey.
There should be a paragraph break between here
and here.
pandoc converts textile.
h1. Block Quotes
bq. This is a famous quote from somebody. He had a lot of things to
say, so the text is really really long and spans on multiple lines.
And a following paragraph.
h1. Code Blocks
Code:
---- (should be four hyphens)
sub status {
print "working";
}
this code block is indented by one tab
And:
this code block is indented by two tabs
These should not be escaped: \$ \\ \> \[ \{
bc. Code block with .bc
continued
@\
Inline code: @@, @.
h1. Notextile
A block of text can be protected with notextile :
No *bold* and
* no bullet
and inlines can be protected with ==double *equals (=)* markup==.
h1. Lists
h2. Unordered
Asterisks tight:
* asterisk 1
* asterisk 2
* asterisk 3
h2. Ordered
Tight:
# First
# Second
# Third
h2. Nested
* ui 1
** ui 1.1
### oi 1.1.1
### oi 1.1.2
** ui 1.2
* ui 2
## oi 2.1
*** ui 2.1.1
*** ui 2.1.2
h2. Definition List
- coffee := Hot and black
- tea := Also hot, but a little less black
- milk :=
Nourishing beverage for baby cows.
Cold drink that goes great with cookies.=:
- beer := fresh and bitter
h1. Inline Markup
This is _emphasized_, and so __is this__.
This is *strong*, and so **is this**.
Hyphenated-words-are-ok, as well as strange_underscore_notation.
A "*strong link*":http://www.foobar.com.
_*This is strong and em.*_
So is *_this_* word and __**that one**__.
-This is strikeout and *strong*-
Superscripts: a[^bc^]d a^*hello*^ a[^hello there^].
Subscripts: ~here~ H[~2~]O, H[~23~]O, H[~many of them~]O.
Dashes : How cool -- automatic dashes.
Elipses : He thought and thought ... and then thought some more.
Quotes and apostrophes : "I'd like to thank you" for example.
h1. Links
h2. Explicit
Just a "url":http://www.url.com
"Email link":mailto:nobody@nowhere.net
Automatic linking to http://www.example.com and foobar@example.com.
"Example":http://www.example.com/: Example of a link followed by a colon.
h1. Tables
Textile allows tables with and without headers :
h2. Without headers
| name | age | sex |
| joan | 24 | f |
| archie | 29 | m |
| bella | 45 | f |
and some text following ...
h2. With headers
|_. name |_. age |_. sex |
| joan | 24 | f |
| archie | 29 | m |
| bella | 45 | f |
h1. Images
Textile inline image syntax, like
here !this_is_an_image.png(this is the alt text)!
and here !this_is_an_image.png!.
h1. Attributes
h2{color:red}. HTML and CSS attributes are ignored
as well as *(foo)inline attributes* of %{color:red} all kind%
p{color:green}. and paragraph attributes, and table attributes.
table{foo:bar}.
| name | age | sex |
| joan | 24 | f |
h1. Raw HTML
However, raw HTML inlines are accepted, as well as :
any *Raw HTML Block* with bold
Html blocks can be inlined
as well.
* this won't produce raw html blocks
* but this will produce inline html
Can you prove that 2 < 3 ?
h1. Raw LaTeX
This Textile reader also accepts raw LaTeX for blocks :
\begin{itemize}
\item one
\item two
\end{itemize}
and for \emph{inlines}.
h1. Acronyms and marks
PBS(Public Broadcasting System)
Hi(tm)
Hi (TM)
(r) Hi(r)
Hi(c)2008 (C) 2008
h1. Footnotes
A note.[1]
fn1. The note
is here!