cmarkgfm - Bindings to GitHub's cmark
Minimalist bindings to GitHub's fork of cmark.
This package is published as cmarkgfm and can be installed with pip or pipenv:
pip install --user cmarkgfm pipenv install cmarkgfm
Wheels are provided for macOS, Linux, and Windows for Python 2.7, 3.4, 3.5, and 3.6.
High-level usage is really straightforward. To render normal CommonMark markdown:
import cmarkgfm html = cmarkgfm.markdown_to_html(markdown_text)
To render GitHub-flavored markdown:
import cmarkgfm html = cmarkgfm.github_flavored_markdown_to_html(markdown_text)
Pull requests are welcome. :)
This project is under the MIT License. It includes components under differing
copyright under the
third_party directory in this source tree.