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