Python bindings for GitHub's cmark
Switch branches/tags
Nothing to show
Clone or download
theacodes Add travis test for 3.7 (#12)
* Add travis test for 3.7

* Add sudo and dist to travis.yml
Latest commit 21112ab Oct 14, 2018

README.rst

cmarkgfm - Bindings to GitHub's cmark

Minimalist bindings to GitHub's fork of cmark.

Installation

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.

Usage

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)

Contributing

Pull requests are welcome. :)

License

This project is under the MIT License. It includes components under differing copyright under the third_party directory in this source tree.