Pip
https://pypi.org/project/Markdown/
安装:
pip install markdown
使用:
from markdown import markdown
print(dir(markdown))
file = open('help.md','r',encoding='utf-8').read()
html = markdown(file)
print(html)
with open('ret.html', 'w', encoding='utf-8') as file:
file.write(html)
THE END