CrossDown/MarkDown.py

8 lines
169 B
Python
Raw Normal View History

2024-09-15 20:51:20 +08:00
import markdown
with open('README.md', encoding='utf-8') as text:
html = markdown.markdown(text.read(), extensions=['markdown.extensions.extra'])
print(html)