# trentm/python-markdown2

markdown2: A fast and complete implementation of Markdown in Python

Repository: https://github.com/trentm/python-markdown2
Canonical: https://ross.abutalabs.com/products/python-markdown2
Language: Python
License: NOASSERTION
License Family: other
Last push: 2026-08-20T23:12:43+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 35, longevity 100
- inputs: {"age_days": 5694, "days_push": 13, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2821, forks 454 (observed 2026-08-28T04:07:24.019733+00:00)

## What it is
markdown2 is a fast and complete Python implementation of Markdown that converts Markdown text to HTML, closely matching the original Perl Markdown.pl behavior. It works as an importable module or a command-line script and supports optional 'extras' like syntax coloring, tables, and header IDs.

## Use cases
- convert markdown files to html
- render user-submitted markdown in a python web app
- parse markdown text into html from python
- convert readme.md to html from the command line
- markdown with tables and syntax highlighting
- fast markdown processing in python

## When to choose
- you need a fast, single-file Markdown-to-HTML converter in Python
- you want behavior closely matching the original Markdown.pl
- you need optional extensions like tables, fenced code, or syntax highlighting
- you want both a library API and a CLI in one package

## When to avoid
- you prefer the more widely maintained python-markdown package with its large extension ecosystem
- you need CommonMark/GFM strict spec compliance
- you need a Markdown parser in a non-Python language

## Facets
- artifact type: library
- maturity: stable
- function: parser, markdown, cli
- domain: web-development, text-editors, developer-tools
- platform: python, cli, cross-platform
- tags: markdown-to-html, text-markup, single-file-library

## Member repositories
- trentm/python-markdown2 (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:24.019733+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:38:19.520394+00:00, confidence not recorded.
  - readme: https://github.com/trentm/python-markdown2 (fetched 2026-08-28T04:07:24.019733+00:00, sha 33d046cc40d4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
