Skip to content

Latest commit

 

History

History
278 lines (166 loc) · 4.12 KB

textile-reader.textile

File metadata and controls

278 lines (166 loc) · 4.12 KB

This is a set of tests for pandoc Textile Reader. Part of it comes
from John Gruber’s markdown test suite.


Headers

Level 2 with an embeded link

Level 3 with emphasis

Level 4

Level 5
Level 6

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.

Block Quotes

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.

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:  \$ \\ \> \[ \{

Code block with .bc
        continued
    @</\
extended code block

        continued
p. ended by paragraph

Inline code: @<tt>@, <tt>@</tt>.

Notextile

A block of text can be protected with notextile :

No *bold* and * no bullet

and inlines can be protected with ==double equals (=) markup==.

Lists

Unordered

Asterisks tight:

  • asterisk 1
  • asterisk 2
  • asterisk 3

With line breaks:

  • asterisk 1
    newline
  • asterisk 2

Ordered

Tight:

  1. First
  2. Second
  3. Third

Nested

  • ui 1
    • ui 1.1
      1. oi 1.1.1
      2. oi 1.1.2
    • ui 1.2
  • ui 2
    1. oi 2.1
      • ui 2.1.1
      • ui 2.1.2

Issue #1500

  • one
  • two
    → and more

Issue #1513

List:

  • one
  • two

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

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.

This is strong and em.
So is this word and that one.
This is strikeout and strong

Superscripts: abcd a hello ahello 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.

Links

Explicit

Just a url

Email link

“not a link”: foo

Automatic linking to $.

Example: Example of a link followed by a colon.

A linkwith bracketsand no spaces.

Tables

Textile allows tables with and without headers :

Without headers

name age sex
joan 24 f
archie 29 m
bella 45 f

and some text following …

With headers

name age sex
joan 24 f
archie 29 m
bella 45 f

Images

Textile inline image syntax, like
here this is the alt text
and here .

Attributes

HTML and CSS attributes are parsed in headers.

Centered

Right

Justified

as well as inline attributes of all kind

and paragraph attributes, and table attributes.

name age sex
joan 24 f

(class#id) emph

(no class#id) emph

Entities

*
&

Raw HTML

However, raw HTML inlines are accepted, as well as :

any Raw HTML Block with bold

Html blocks can

interrupt paragraphs
as well.

Can you prove that 2 < 3 ?

Acronyms and marks

PBS

Hi™

Hi™

® Hi®

Hi©2008 © 2008

Footnotes

A note.1 Another note2.

1 The note
is here!

2 Other note.

Comment blocks

###. my comment
is here.

not a comment.