Textile
Textile is a web text markup-language that balances the strength of HTML with speed and ease of editing.
Unlike many wiki or other markup languages, Textile sticks closely to the semantics of HTML, headings for example are represented by ‘h1’, ‘h2’ for <h1>
and <h2>
. Attaching classes and ids to elements is also easy with Textile.
Textile is used by both blogs and a number of wikis, including the Ruby on Rails instiki powered wiki and by SWiK. Textile does not make a provision for wiki links however, so various wikis have interpreted their own wiki link standards.
Textile implementations
- Redcloth – Ruby (我的选择)
- Text::Textile – Perl
- PyTextile – Python
- TextilePHP – PHP
- Textile4J – Java
- JTextile – Java
- Textile-J – Java and Eclipse
- PLextile – Java
Redcloth
RedCloth is a module for using Textile in Ruby. Textile is a text format. RedCloth acts as a complete Textile processing engine.
因为 Jekyll 是基于 Ruby 的,故选择了同样基于 Ruby 的 RedCloth
Step1
使用 RubyGems 安装:
1
2 $ gem install RedCloth
Step2
在 _config.yml 中配置:
markdown: redcloth
使用方法
可以学习官方的 >>>Textile Quick Reference
也可以使用轻量级的 >>Textism