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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
lightmd-0.0.2.0-py3-none-any.whl
(31.3 kB
view details)
File details
Details for the file lightmd-0.0.2.0.tar.gz.
File metadata
- Download URL: lightmd-0.0.2.0.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a637ba6e3bde18b1b7338b3037fecaeeb719597ae1c913d190fe62ac341be43
|
|
| MD5 |
4ee030689f327fde0dd29fa1b42d8797
|
|
| BLAKE2b-256 |
1f66003e627e07474c66c3056538b43e983c50ad47343f7ee96f07eff48b6893
|
File details
Details for the file lightmd-0.0.2.0-py3-none-any.whl.
File metadata
- Download URL: lightmd-0.0.2.0-py3-none-any.whl
- Upload date:
- Size: 31.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09ec386315ba76179295c7bf87970b8620c556e32736f1a40a20024472d091a3
|
|
| MD5 |
593ec204d7a9d7b180462d9980958fd6
|
|
| BLAKE2b-256 |
68f036e03a9922ab9e10ab14b23ed8aa20bdbaa60833cfa0477ecc1a4daf603b
|