Skip to main content

The Procedures language

Project description

Exposes two Rust crates which parse markdown to Python using PyO3. The first crate exposed is comrak from which we inherited the name:

Using Comrak

Example:

>>> from python_comrak import markdown_to_html
>>> markdown_to_html("\tfoo\tbaz\t\tbim\n")
"<pre><code>foo\tbaz\t\tbim\n</code></pre>\n"

markdown_to_html activates the extensions:

Using pulldown-cmark

The second crate is pulldown-cmark. Example:

>>> from python_comrak import commonmark_to_html
>>> commonmark_to_html("\tfoo\tbaz\t\tbim\n")
"<pre><code>foo\tbaz\t\tbim\n</code></pre>\n"

commonmark_to_html activates the extensions:

Warning

pulldown-cmark doesn’t implement 100% of CommonMark yet. Also it doesn’t have the same set of extensions we use with comrak.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-comrak, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size python_comrak-0.2.1-cp38-cp38-manylinux2010_x86_64.whl (1.5 MB) File type Wheel Python version cp38 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page