Python-Markdown -


BSD
跨平台
Python

软件简介

MarkDown 的 python 实现。

示例代码:

import markdown
import bleach
html = bleach.clean(markdown.markdown(untrusted_text))

md = markdown.Markdown(safe_mode='replace', 
                   html_replacement_text='--RAW HTML NOT ALLOWED--')