Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.14 KB

README.md

File metadata and controls

33 lines (25 loc) · 1.14 KB

cmarkwrapper

Python Version System Platform Code style: black Documentation Status

cmarkwrapper是一个基于paka.cmarkcmark 封装,更加符合使用习惯。

安装

使用 pypi
pip install cmarkwrapper

或使用 git+
pip install git+https://github.com/yangfan9702/cmarkwrapper.git

使用

from cmarkwrapper import markdown_to_html

html = markdown_to_html(
"""
*Italic*    _Italic_  
**Bold**    __Bold__  

![image](https://commonmark.org/help/images/favicon.png)
"""
)
print(html)

文档

Documentation is on Read the Docs. Code repository and issue tracker are on GitHub.