Block modifier syntax:
CSS attributes can be applied to blocks (paragraphs, headers,
etc.). CSS classes are specifed with
;
CSS IDs are specified with (class)
; both can be
specified with (#id)
. An arbtirary
CSS style can be applied by using
(class#id)
. Finally, language attributes are
applied using {style}
.
[language]
Additionally, alignment and indentation shorthands are provided. To
left-align, right-align, center, and justify text, use
, <
, >
, and
=
, respectively. <>
left-indents
a block 1em for each occurrence, and (
right-indents
similarly.
)
Tables have additional options.
, ^
,
and -
specify top, middle, and bottom vertical
alignment. The ~
attribute on a cell indicates that
it is a table header.
_
The examples below illustrate these attributes.
The class, ID, style, and language attributes described above also apply to the span phrase modifier as shown below.
| textile input | output |
|---|---|
| _emphasis_ | emphasis |
| __italic__ | italic |
| *strong* | strong |
| **bold** | bold |
| ??citation?? | citation |
| -delete text- | |
| +inserted text+ | inserted text |
| ^superscript^ | superscript |
| ~subscript~ | subscript |
| @code@ | code |
| %(class)span% | span |
| %{color:red;}span% | span |
| ==no textile== | no textile |
| "link text":@url | link text |
| "link text(title)":@url | link text |
| !@image-url! | |
| !@image-url(alt text)! | |
| !@image-url!:@url | |
| ABC(Always Be Closing) | ABC |
| Footnote reference[10] | Footnote reference10 |