# lepture/mistune

A fast yet powerful Python Markdown parser with renderers and plugins.

Repository: https://github.com/lepture/mistune
Canonical: https://ross.abutalabs.com/products/mistune
Homepage: http://mistune.lepture.com/
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: markdown
Last push: 2026-08-21T04:48:29+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 94, longevity 100
- inputs: {"age_days": 4579, "days_push": 12, "days_rel": 42, "gap_med": 24.5, "n_releases_24m": 13}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3065, forks 296 (observed 2026-08-28T04:07:41.357489+00:00)

## What it is
Mistune is a fast, dependency-free Python Markdown parser compatible with sane CommonMark rules, offering pluggable renderers, built-in plugins, and directives. It converts Markdown to HTML or AST and includes command-line tools.

## Use cases
- convert markdown to html in python
- parse markdown into an ast
- render markdown for a blog or documentation site
- extend markdown with custom plugins and directives
- convert markdown files from the command line

## When to choose
- you need one of the fastest Python Markdown parsers with no external dependencies
- you want pluggable renderers, AST output, or built-in plugins like footnotes, math, and TOC
- you need a mature, actively maintained library with a stable v3 API

## When to avoid
- you need strict full CommonMark compliance with mdast-compatible output - the author's newer Wenmode project targets that
- you need streaming output or maximum raw parsing speed beyond Mistune's benchmarks
- you need a Markdown parser outside the Python ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: parser, markdown, templating, cli
- domain: web-development, documentation, parsers, developer-tools
- platform: python, cli, cross-platform
- tags: markdown-parser, commonmark, html-renderer, plugins, no-dependencies

## Member repositories
- lepture/mistune (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:41.357489+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:28:14.188250+00:00, confidence not recorded.
  - readme: https://github.com/lepture/mistune (fetched 2026-08-28T04:07:41.357489+00:00, sha afd32882fb33)
  - homepage: http://mistune.lepture.com/ (fetched 2026-08-29T09:43:36.548615+00:00, sha 6ed629b46d0d)
  - registry_pypi: https://pypi.org/pypi/mistune/json (fetched 2026-08-29T09:43:36.559721+00:00, sha e484d8c753a7)
  - site_page: https://mistune.lepture.com/en/latest/changes.html (fetched 2026-08-29T09:43:36.557750+00:00, sha 73e48596e4bf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
