A user-friendly tool for converting Markdown to HTML
Installation
pip install md2html-python
Usage
Use in CMD
md2html --help
md2html --version
md2html input.md -o output.html
md2html input.md -o output.html --styles-css your_styles.css
Use in 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
# List all available styles
pygmentize -L styles
# Generate css for given style
pygmentize -S default -f html -a .highlight > pygments.css
Support Features
- TOC
- Code block
- Inline code
- Latex
- Table
- Image as B64
- Mermaid
- Checkbox
- Details
- Definition
- Emoji
- Tabbed
Demo
Thanks
Metadata
Release files for md2html-python 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| md2html_python-1.0.2.tar.gz | 9.1 kB | Without provenance | Details for md2html_python-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| md2html_python-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for md2html_python-1.0.2-py3-none-any.whl |
Total release size: 17.2 kB
Release files / md2html_python-1.0.2.tar.gz
| Download URL | md2html_python-1.0.2.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e91d1c7e328df0aaef85a1d83b5018e4cca220ce680e8d0663e33368e9f577c
|
|
BLAKE2b-256 checksum How to use checksums |
a78c738d90150cf8f363f9dc3ec7a23ed93ea858c8c4b77bb702678a50e7f782
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / md2html_python-1.0.2-py3-none-any.whl
| Download URL | md2html_python-1.0.2-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01e4fca7430ec756364cac9f48aa83a3e764eb0a4dc59cdbe3434990f7d50088
|
|
BLAKE2b-256 checksum How to use checksums |
afb754aa406e17088a65c7c30d9fa8e83728ba8e8f8d490c067598d8645c3875
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for md2html-python 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.