A Python interface for markdown-it.rs, using Rust for blazingly fast Markdown parsing. Current version 0.4.0, requires Python >=3.9. Release cadence is irregular.
pip install markdown-it-pyrsVerified import paths — ran on the pinned version, not inferred.
Create a MarkdownIt instance and render Markdown to HTML.
Pass xhtml=True to md.render(text, xhtml=True) instead of to the constructor.
Upgrade to Python 3.9 or later.
Use 'import markdown_it_pyrs' or 'from markdown_it_pyrs import MarkdownIt'.
Install markdown-it-py or change import to 'from markdown_it_pyrs import MarkdownIt'.
Remove xhtml from MarkdownIt() and pass it to render(): md.render(text, xhtml=True).