Comrak
Python bindings for the Comrak Rust library, a fast CommonMark/GFM parser
Install / Use
/learn @lmmx/ComrakREADME
comrak
<!-- [](https://pepy.tech/project/comrak) -->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.
- Install the dev extra (e.g. with uv:
License
Licensed under the 2-Clause BSD License. See LICENSE for all the details.
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
