这是我写的一篇介绍 Python 里的 Markdown Parser 的文章:
http://lepture.com/en/2014/markdown-parsers-in-python
列举了
* Misaka: A python binding for Sundown. (CPython required)
* Hoedown: A python binding for Hoedown, successor of Misaka.
* Discount: A python binding for Discount. (CPython required)
* cMarkdown: Markdown for Python, accelerated by C. (CPython required)
* Markdown: A pure markdown parser, the very first implementation.
* Markdown2: Another pure markdown parser.
* Mistune: The fastest markdown parser in pure Python.
其中要说明的是许多人被 Markdown2 骗了,这个号称 fast 的解析器是效率最低的。详情见我做的 benchmark: https://github.com/lepture/mistune/issues/1
http://lepture.com/en/2014/markdown-parsers-in-python
列举了
* Misaka: A python binding for Sundown. (CPython required)
* Hoedown: A python binding for Hoedown, successor of Misaka.
* Discount: A python binding for Discount. (CPython required)
* cMarkdown: Markdown for Python, accelerated by C. (CPython required)
* Markdown: A pure markdown parser, the very first implementation.
* Markdown2: Another pure markdown parser.
* Mistune: The fastest markdown parser in pure Python.
其中要说明的是许多人被 Markdown2 骗了,这个号称 fast 的解析器是效率最低的。详情见我做的 benchmark: https://github.com/lepture/mistune/issues/1