semvec/pypi-packages huggingface dataset:
md2html-python 1.0.2
A user-friendly tool for converting Markdown to HTML
License: MIT License

![PyPI - Version](https://img.shields.io/pypi/v/md2html-python)
![PyPI - Status](https://img.shields.io/pypi/status/md2html-python)

# A user-friendly tool for converting Markdown to HTML

## Installation

```bash
pip install md2html-python
```

## Usage

### Use in CMD

```bash
md2html --help

md2html --version

md2html input.md -o output.html

md2html input.md -o output.html --styles-css your_styles.css
```

### Use in Python

```python
from md2html.core import MD2HTML

content = '''
# Hello World

This is a test.
'''

md2html = MD2HTML(content)

md2html.convert('output.html')

html = md2html.convert()
print(html)
```

### Generate Pygments CSS

```bash
# List all available styles
pygmentize -L styles

# Generate css for given style
pygmentize -S default -f html -a .highlight > pygments.css
```

## Support Features
- [x] TOC
- [x] Code block
- [x] Inline code
- [x] Latex
- [x] Table
- [x] Image as B64
- [x] Mermaid
- [x] Checkbox
- [x] Details
- [x] Definition
- [x] Emoji
- [x] Tabbed

---

## Demo

- INPUT: [demo.md](https://suqingdong.github.io/md2html/tests/demo.md)
- OUTPUT: [demo.html](https://suqingdong.github.io/md2html/tests/demo.html)

---

### Thanks

> - [markdown](https://github.com/Python-Markdown/markdown)
> - [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions)