本文根据 Devhints / Textile 翻译。代码示例及版本范围沿用原文。原文标注更新日期:2017-09-20。
参考资料
行内元素
| 代码 (Code) | 说明 |
|---|---|
_em_ | |
*strong* | |
__bold-italic__ | |
@code@ | |
??citation?? | |
-strikethrough- | |
+insertion+ | |
%span% | HTML 标签 |
%{color:red}formatting% | CSS 样式 |
代码块
h1. Header 1
h2. Header 2
bq. Blockquote
p(classname). Class.
p(#id). ID.
列表 (Lists)
## ordered list
* unordered list
链接
| 代码 (Code) | 说明 |
|---|---|
"Hypertext":index.html | 建立链接 |
"Text link":link [link]http://link.com | 通过引用链接 |
图像
| 代码 (Code) | 说明 |
|---|---|
!image.jpg! | 图像 |
!image.jpg(title text)! | |
!image.jpg!:link.html | |
!>right.jpg! |
转义的 HTML
<pre>
I am <b>very serious.</b> -- this
will get escaped.
</pre>
换行符
Line breaks.
Just break the lines.
实体
one(TM), two(R), three(C).
水平线
--
脚注
Footnotes[1].
fn1. Something.