Study of Lightweight markup language

Posted on Sun 06 January 2013 in 我用(IT)

以前对txt2tags(moinmoin采用的语法标准)和reStructuredText的语法很熟,后来Jira升级到也支持Conflence wiki标准,于是textile【注1】也用得挺顺溜了。现在因为开始用github,另外一种轻量标记语言Markdown又走进了视野。 虽然都不复杂,但不看一下语法也是没法用的,还得占用我本就不够用的脑部存储。这些轮子的发明有些重复了。

推荐这篇语法说明,把原文翻译得比较好。

初次使用感受

段落和换行:双回车分段和txt2tags的语法一样,行尾加两个空格可以段内换行的规则挺不错的; 链接的格式比较新鲜:This link ; 表格:本身不支持,但可以用html的标记来完成; 代码:用单个或多个``把代码括起来。从在github上的效果上看与中文之间必须加空格。

引用资料

  • 轻量标记语言比较: http://en.wikipedia.org/wiki/Lightweight_markup_language
  • txt2tags http://en.wikipedia.org/wiki/Txt2tags
  • reStructuredText快速上手指南 http://li3huo.com/2010/08/rst2pdf_quick_guide/
  • Official site of Markdown project: http://daringfireball.net/projects/markdown/ 注1关于Conflence wiki使用的脚本语言: Keep in mind Confluence uses it's own markup, which is a custom textile/wiki hybrid https://spaces.ais.ucla.edu/display/intro/Confluence+Guide