markdown-it-pyrs
A Python interface for markdown-it.rs, using Rust for blazingly fast Markdown parsing ⚡️
Decision gist · record as of 2026-08-14
Yes, if you need fast Markdown parsing and can accept that plugins must be chosen at install time rather than added dynamically. The library is actively maintained, has no vulnerabilities, and offers a familiar API. Install friction is moderate due to compiled wheels, but prebuilt binaries cover common platforms. Not recommended if you require Python 3.8 support or dynamic plugin authorship in Python.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; no Python 3.8 support.
- Medium install friction due to compiled wheels; prebuilt binaries available for CPython 3.10–3.12 on macOS, Linux, and Windows, but no pure-Python fallback.
- Active maintenance with recent commits; currently in Beta status.
License · maintenance · safety
permissive license (permissive) — Licensed under Apache 2.0 (permissive); no restrictions on commercial or private use.
last release 2024-10-22 (661 days) · last repo commit 2026-08-10 · 63 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 122,070 downloads/mo, #11,961 on PyPI
Alternatives
Verify before relying
pip install markdown-it-pyrs
from markdown_it_pyrs import MarkdownIt
md = MarkdownIt("commonmark").enable("table")
html = md.render("# Hello, world!")
node = md.tree("# Hello, world!")- Whether PyPy wheels are actually available (classifiers list PyPy but friction_evidence shows only CPython wheels).
- Current state of WASM/pyodide support mentioned as 'maybe not for long' in the description.
- Whether the 20x speed claim versus markdown-it-py holds for typical real-world documents beyond the CommonMark spec.
What it is and what it does
markdown-it-pyrs wraps the Rust markdown-it.rs library to provide a fast Markdown parser for Python. It parses CommonMark, GitHub Flavored Markdown, and other dialects, rendering to HTML or an abstract syntax tree (Node tree). The API mirrors markdown-it-py, so existing code can often switch with minimal changes.
The main trade-off is speed for flexibility: because the parser is compiled Rust, you cannot write plugins in Python or add them dynamically at runtime. The library is currently in Beta and has no runtime dependencies beyond Python itself. It ships prebuilt wheels for modern CPython versions across common platforms, though installation requires a compatible wheel or a Rust build environment.
Use it for
- Parse Markdown documents to HTML in performance-critical applications where speed matters more than dynamic plugin extensibility.
- Convert Markdown to an AST for programmatic inspection, transformation, or custom rendering without writing a parser.
- Enable GitHub Flavored Markdown features (tables, strikethrough, task lists) in a Python application with minimal setup.
- Migrate from markdown-it-py to a faster alternative when profiling shows Markdown parsing is a bottleneck.
- Render Markdown with built-in plugins like footnotes, front matter, or smart quotes without external dependencies.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need fast Markdown parsing and can accept that plugins must be chosen at install time rather than added dynamically.
The library is actively maintained, has no vulnerabilities, and offers a familiar API. Install friction is moderate due to compiled wheels, but prebuilt binaries cover common platforms. Not recommended if you require Python 3.8 support or dynamic plugin authorship in Python.
Install
markdown-it-pyrs on PyPI
Before you install
Medium install friction due to compiled wheels; prebuilt binaries available for CPython 3.10–3.12 on macOS, Linux, and Windows, but no pure-Python fallback. Active maintenance with recent commits; currently in Beta status.
Requires Python 3.9 or later; no Python 3.8 support.
License in practice
Licensed under Apache 2.0 (permissive); no restrictions on commercial or private use.
Quickstart
pip install markdown-it-pyrs
from markdown_it_pyrs import MarkdownIt
md = MarkdownIt("commonmark").enable("table")
html = md.render("# Hello, world!")
node = md.tree("# Hello, world!")
Verify before relying
- Whether PyPy wheels are actually available (classifiers list PyPy but friction_evidence shows only CPython wheels).
- Current state of WASM/pyodide support mentioned as 'maybe not for long' in the description.
- Whether the 20x speed claim versus markdown-it-py holds for typical real-world documents beyond the CommonMark spec.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 661 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 122,070 / month, #11,961 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: RustTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: Markup |
Evidence: markdown_it_pyrs-0.4.0-cp310-cp310-macosx_10_12_x86_64.whl; markdown_it_pyrs-0.4.0-cp310-cp310-macosx_11_0_arm64.whl; markdown_it_pyrs-0.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; markdown_it_pyrs-0.4.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; markdown_it_pyrs-0.4.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; markdown_it_pyrs-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; markdown_it_pyrs-0.4.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl; markdown_it_pyrs-0.4.0-cp310-none-win32.whl; markdown_it_pyrs-0.4.0-cp310-none-win_amd64.whl; markdown_it_pyrs-0.4.0-cp311-cp311-macosx_10_12_x86_64.whl; markdown_it_pyrs-0.4.0-cp311-cp311-macosx_11_0_arm64.whl; markdown_it_pyrs-0.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; markdown_it_pyrs-0.4.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; markdown_it_pyrs-0.4.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; markdown_it_pyrs-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; markdown_it_pyrs-0.4.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl; markdown_it_pyrs-0.4.0-cp311-none-win32.whl; markdown_it_pyrs-0.4.0-cp311-none-win_amd64.whl; markdown_it_pyrs-0.4.0-cp312-cp312-macosx_10_12_x86_64.whl; markdown_it_pyrs-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “rust markdown rendering”
- markdown-it-pyrsA Rust-backed Python Markdown parser that renders CommonMark, GitHub…
- comrakRenders CommonMark and GitHub Flavored Markdown to HTML or normalized…
- cohere-melodyParses and renders templated text for Cohere language models,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also markdown-it-py · pymarkdownlnt · pyromark · comrak · commonmark · mistletoe · py-gfm · multimark · marko · mdit-py-plugins