This is a light-weighted, purly python made markdown parser and render
Project description
markdown
A learn-motivated markdown parser.
Supports all standard md elements.
Sample use case:
Install:
pip install lightmd
Parse md.
import lightmd
with open("your.md", "r") as md_file:
## Parse content
parsed_content = lightmd.parse_md_to_ast(md_file.read())
## Render to HTML
rendered_html = lightmd.render_html(parsed_content)
## Render to HTML with custom css style
rendered_html = lightmd.render_html(parsed_content, "/path/to/css_style.css")
Dev onboarding
Install Python 3.7
For Mac OS:
brew install python@3.7
For Windows User:
choco install python --version=3.7
Create Virtual Enviroment
run following command to install pipenv
pip install pipenv
Restart your command-line console, run following command:
cd [project dir]
pipenv shell
Install all dependencies
pipenv install
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lightmd-0.0.2.0.tar.gz
(11.1 kB
view hashes)
Built Distribution
lightmd-0.0.2.0-py3-none-any.whl
(31.3 kB
view hashes)
Close
Hashes for lightmd-0.0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09ec386315ba76179295c7bf87970b8620c556e32736f1a40a20024472d091a3 |
|
MD5 | 593ec204d7a9d7b180462d9980958fd6 |
|
BLAKE2b-256 | 68f036e03a9922ab9e10ab14b23ed8aa20bdbaa60833cfa0477ecc1a4daf603b |