Python implementation of Markdown.
This is a Python implementation of John Gruber's Markdown. It is almost completely compliant with the reference implementation, though there are a few known issues. See Features for information on what exactly is supported and what is not. Additional features are supported by the Available Extensions.
A fast and complete Python implementation of Markdown
markdown2: A fast and complete Python implementation of Markdown.
Markdown is a text-to-HTML filter; it translates an easy-to-read / easy-to-write structured text format into HTML. Markdown's text format is most similar to that of plain text email, and supports features such as headers, emphasis, code blocks, blockquotes, and links.
有对比么?大神们推荐使用哪个呢?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
据说是Markdown2更快一些
官方文档说是Markdown2比Markdown 更加迅速和完整。用那个的话,你可以自己选择,哪个舒服用哪个。就我个人来说,推荐Markdown2,就因为一个字:快
另外说一个区别:
Python-Markdown的结构上比Markdown2好得多,扩展性也好,可以自定义extension。
推荐misaka
python-markdown在解析代码块时有Bug