# miyuchina/mistletoe

A fast, extensible and spec-compliant Markdown parser in pure Python.

Repository: https://github.com/miyuchina/mistletoe
Canonical: https://ross.abutalabs.com/products/mistletoe
Language: Python
License: MIT
License Family: permissive
Topics: markdown, latex, python, webdev
Last push: 2026-07-11T14:25:22+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 92, release rhythm 68, longevity 100
- inputs: {"age_days": 3342, "days_push": 53, "days_rel": 53, "gap_med": 132.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1060, forks 138 (observed 2026-08-28T04:03:25.912265+00:00)

## What it is
mistletoe is a fast, spec-compliant Markdown parser written in pure Python that produces an abstract syntax tree. It supports pluggable renderers for output formats like HTML, LaTeX, and Markdown itself, and allows custom block- and span-level tokens.

## Use cases
- convert markdown files to html in python
- parse markdown into an ast
- render markdown to latex
- write a custom markdown extension or token
- reflow or programmatically modify markdown documents
- fastest commonmark parser for python

## When to choose
- you need a CommonMark-compliant Markdown parser in pure Python
- you need custom Markdown syntax extensions or custom output renderers
- parsing performance in Python matters

## When to avoid
- you need a Markdown editor or GUI application
- you work outside the Python ecosystem
- you need a fully maintained spec other than CommonMark

## Facets
- artifact type: library
- maturity: stable
- function: parser, markdown, serialization
- domain: parsers, web-development, documentation, developer-tools
- platform: python, cross-platform
- tags: commonmark, markdown-to-html, markdown-to-latex, ast, extensible-renderers

## Member repositories
- miyuchina/mistletoe (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:25.912265+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-30T06:56:58.493493+00:00, confidence not recorded.
  - readme: https://github.com/miyuchina/mistletoe (fetched 2026-08-28T04:03:25.912265+00:00, sha 42d6cd9f186b)
  - registry_pypi: https://pypi.org/pypi/mistletoe/json (fetched 2026-08-29T12:59:03.702551+00:00, sha 267b976b4181)
- Data as of 2026-08-30T08:39:29.467469+00:00.
