# mity/md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.

Repository: https://github.com/mity/md4c
Canonical: https://ross.abutalabs.com/products/md4c
Language: C
License: MIT
License Family: permissive
Topics: markdown-parser, c, commonmark, markdown, parser, mit-license
Last push: 2026-08-17T09:34:58+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": 3621, "days_push": 16, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1432, forks 209 (observed 2026-08-28T04:04:43.202671+00:00)

## What it is
MD4C is a fast, CommonMark-compliant Markdown parser written in C with a SAX-like push/callback API. It is implemented in a single source file with no dependencies and includes an optional Markdown-to-HTML converter.

## Use cases
- parse markdown documents in C
- convert markdown to html
- embed a commonmark parser in an application
- render markdown in a text editor or viewer
- parse markdown with extensions like tables and strikethrough

## When to choose
- you need a fast, dependency-free C markdown parser
- you want CommonMark 0.31 compliance
- you need a callback-based API to render markdown into custom formats
- you want to embed markdown parsing in a larger C/C++ project

## When to avoid
- you need a high-level markdown library in a scripting language
- you require extensive non-CommonMark extensions beyond what MD4C supports
- you want a full markdown editor or rendering application out of the box

## Facets
- artifact type: library
- maturity: stable
- function: parser
- domain: parsers, documentation, web-development
- platform: cross-platform, windows
- tags: markdown, commonmark, sax-like, c-library, html-conversion, linux, macos

## Member repositories
- mity/md4c (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:43.202671+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-30T04:37:02.727299+00:00, confidence not recorded.
  - readme: https://github.com/mity/md4c (fetched 2026-08-28T04:04:43.202671+00:00, sha 7d7722ec70f2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
