python扩展库简介_Python-Markdown模块简介
Python-Markdown是John Gruber的Markdown语法的python实现。但是与⼀般Markdown还是有些许差别。这些差别包括:
* Python-Markdown默认忽略掉单词中间的加重标识(middle-word emphasis)。如some_不会被转译成
some
* Markdown语法规则中指出如果⼀个列表组件包含多个段落,那么后⾯的段落必须空出4个空格或者⼀个tab。与其他语法解释器不
英译汉在线翻译句子
同,Python-Markdown严格遵守这条规定,并且所有在列表中的块⼀级元素都如此规定。scott forstall
* 当列表的⼀⾏遇到其他列表标识(如星号,数字等),官⽅规则没有指明是否需要另起⼀⾏。为了⼀致性,Python-Markdown也不做修改。但是Sane List 这个扩展模块提供了更友好的解决⽅式。
ems是什么意思另外,Python-Markdown还提供的弹性的扩展机制。允许使⽤者在不修改项⽬源代码的情况下,对⾃⼰想要扩展的语法进⾏扩展开发。官⽅已经提供的扩展模块如下:
Extension “Name”
Extra extra
Abbreviations abbr
Attribute Lists attr_list
龙岗网页设计Definition Lists def_list
Fenced Code Blocks fenced_code
gets>ufo是什么Footnotes footnotes
Tables tables
Smart Strong smart_strong
Admonition admonition
2000亿韩元等于多少人民币CodeHilite codehilite
hall是什么意思
wssa
密歇根大学HeaderId headerid
Meta-Data meta
New Line to Break nl2br
Sane Lists sane_lists
SmartyPants smarty
Table of Contents toc
WikiLinks wikilinks