Convert MD to HTML with full control over generated elements
Project description
Md2HTMLpy
Md2HTMLpy is a library to convert markdown to html while maintaining full control over conversion.
Installation
pip install md2htmlpy
Example
# This is test.md file
find more information [here](http://www.moreinfo.com)
from md2htmlpy import Client, Heading, render_md
Heading.set_attribute('class', 'test')
client = Client('test.md')
print(client.render())
# <h1 class="test">This is test.md file</h1><p>find more information <a href="http://www.moreinfo.com">here</a></p>
or if you dont want to customise the generation, simply
from md2htmlpy import render_md
print(render_md('test.md'))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
md2htmlpy-1.0.0.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file md2htmlpy-1.0.0.tar.gz
.
File metadata
- Download URL: md2htmlpy-1.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 573957e920c5086a8b11b3b8eab7481c28a36cb4524209f36921f86ccb01e787 |
|
MD5 | b4537dc78c11f03990e5e2e8a18dae6c |
|
BLAKE2b-256 | 2ac279ab55ac61435d97c7a164961a0fb5e506564a409b90e3c04d196da9c9d7 |
File details
Details for the file md2htmlpy-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: md2htmlpy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f1d3f6e1d0a8c33af04b7156663897e31546203de0d8a0583cd197e8d8f8783 |
|
MD5 | e6b4964636ff0729024e87feb7525fb7 |
|
BLAKE2b-256 | c786e44751c15da44382815b7d9c50dc5ee1bcca29431177075c14597125ae21 |