A learn-motivated markdown parser.
Supports all standard md elements.
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")
For Mac OS:
brew install [email protected]
For Windows User:
choco install python --version=3.7
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