Markdown扩展,支持和标签
项目描述
markdown_del_ins
允许Markdown
包将~~text~~
解释为<del>text</del>
,将++text++
解释为<ins>text</ins>
。
安装
$ pip install git+git://github.com/honzajavorek/markdown-del-ins.git
用法
>>> from markdown import Markdown
>>> md = Markdown(extensions=['markdown_del_ins'])
>>> src = 'This is ++added content++ and this is ~~deleted **strong** content~~'
>>> html = md.convert(src)
>>> print(html)
<p>This is <ins>added content</ins> and this is <del>deleted <strong>strong</strong> content</del></p>
许可证 & 信用
本软件以修改后的BSD许可证发布。有关详情,请参阅LICENSE。该项目是aleray/mdx_del_ins的分支。