pip install md2html-python
md2html --help
md2html --version
md2html input.md -o output.html
md2html input.md -o output.html --styles-css your_styles.css
from md2html.core import MD2HTML
content = '''
# Hello World
This is a test.
'''
md2html = MD2HTML(content)
md2html.convert('output.html')
html = md2html.convert()
print(html)
# List all available styles
pygmentize -L styles
# Generate css for given style
pygmentize -S default -f html -a .highlight > pygments.css
- TOC
- Code block
- Inline code
- Latex
- Table
- Image as B64
- Mermaid
- Checkbox
- Details
- Definition
- Emoji
- Tabbed