pyromark - Blazingly Fast Markdown Parser

0.9.10 · active · verified Thu Apr 16

pyromark (stands for Python Rust Optimized Markdown) is a blazingly fast CommonMark-compliant Markdown parser for Python. It leverages the `pulldown-cmark` Rust crate under the hood for high performance, often outperforming other Python Markdown libraries significantly. The library is actively maintained and releases new versions periodically. It's designed for speed, including releasing the GIL for better threading performance.

Common errors

Warnings

Install

Imports

Quickstart

Parse a Markdown string to an HTML string using the default CommonMark options.

import pyromark

markdown_text = """
# My Title

This is some **bold** and *italic* text.

- Item 1
- Item 2

```python
print('Hello, Pyromark!')
```
"""

html_output = pyromark.markdown(markdown_text)
print(html_output)

view raw JSON →