Metadata-Version: 2.4
Name: md2html-python
Version: 1.0.2
Summary: A user-friendly tool for converting Markdown to HTML
Home-page: https://github.com/suqingdong/markdown_to_docx
Author: suqingdong
Author-email: suqingdong1114@gmail.com
License: MIT License
Classifier: Development Status :: 5 - Production/Stable
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/markdown
Requires-Dist: click
Requires-Dist: markdown
Requires-Dist: pymdown-extensions
Requires-Dist: pygments
Requires-Dist: jinja2
Requires-Dist: loguru
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: requires-dist
Dynamic: summary

![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)
