New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

comrak

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comrak

Python bindings for the Comrak Rust library, a fast CommonMark/GFM parser

0.0.6
PyPI
Maintainers
1

comrak

uv pdm-managed PyPI Supported Python versions License pre-commit.ci status

Python bindings for the Comrak Rust library, a fast CommonMark/GFM parser

Installation

pip install comrak

Requirements

  • Python 3.9+

Features

Fast Markdown to HTML parser in Rust, shipped for Python via PyO3.

Options

All options are exposed in a simple manner:

>>> import comrak
>>> opts = comrak.ExtensionOptions()
>>> comrak.render_markdown("foo :smile:", extension_options=opts)
'<p>foo :smile:</p>\n'
>>> opts.shortcodes = True
>>> comrak.render_markdown("foo :smile:", extension_options=opts)
'<p>foo 😄</p>\n'

Refer to the Comrak docs for all available options.

Benchmarks

Tested with small (8 lines) and medium (1200 lines) markdown strings

Contributing

Maintained by lmmx. Contributions welcome!

  • Issues & Discussions: Please open a GitHub issue or discussion for bugs, feature requests, or questions.
  • Pull Requests: PRs are welcome!
    • Install the dev extra (e.g. with uv: uv pip install -e .[dev])
    • Run tests (when available) and include updates to docs or examples if relevant.
    • If reporting a bug, please include the version and the error message/traceback if available.

License

Licensed under the 2-Clause BSD License. See LICENSE for all the details.

Keywords

markdown

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts