{"repo":"lmmx/comrak","free":true,"listed":false,"github":"https://github.com/lmmx/comrak","clone":"git clone https://github.com/lmmx/comrak.git","description":"Python bindings for the Comrak Rust library, a fast CommonMark/GFM parser","language":"Python","stars":12,"topics":["markdown","markdown-renderer","markdown-to-html"],"license":null,"category":"productivity","readme_excerpt":"comrak Python bindings for the Comrak Rust library, a fast CommonMark/GFM parser. Currently tracking comrak 0.54 . Installation Requirements - Python 3.9+ Usage CommonMark output render commonmark renders Markdown back to normalized CommonMark instead of HTML. It takes the same extension options / parse options / render options as render markdown : Options Every option in comrak's Extension , Parse and Render structs is exposed, with the same name and the same default: The three option objects are independent and can be combined: For what each option does, see comrak's own documentation. The field names match one-for-one: - options::Extension - options::Parse - options::Render Two options take enums rather than raw values: RenderOptions.alert style ( comrak.AlertStyle ) and RenderOptions.list style ( comrak.ListStyle ). Both compare equal to their integer discriminants. The one naming difference from the Rust API is: Rust Python --- --- render.unsafe RenderOptions.unsafe ExtensionOptions.header ids is a deprecated alias for header id prefix and raises a FutureWarning ; it will be removed in a future release. Not exposed - parse.broken link callback — see tracking issue - extension.phoenix heex — gated behind a comrak crate feature that isn't built here - Plugins (syntax highlighting, heading adapters) - XML output ( comrak::markdown to commonmark xml ) render markdown renders to HTML. render commonmark renders to normalized [CommonMark][commonmark]. The options that solely af","default_branch":null,"files":null,"tree":[],"storefront":"/r/lmmx","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lmmx/comrak/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}