🍺 BREW Explorer

← all formulae

md4c

brew install md4c v0.5.3 MIT

C Markdown parser with CommonMark compliance, SAX-like callback interface, and high performance.

Why you might care

MD4C is a lightweight, embeddable C library ideal for projects needing Markdown parsing without heavy dependencies. Its push-model (callback-based) API and single-file implementation make it suitable for parsing pipelines, static site generators, or embedded documentation systems. Fast and compliant with CommonMark 0.31.

Categories

Alternatives

cmark discount pandoc
11.1k
30-day installs · #340
35.9k
90-day · #343
94.6k
365-day · #442
1.4k
★ GitHub stars · updated 16d ago

Build dependencies

GitHub topics

c commonmark markdown markdown-parser mit-license parser

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "cmark",
    "discount",
    "pandoc"
  ],
  "build_dependencies": [
    "cmake"
  ],
  "categories": [
    "parser",
    "library",
    "c"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "C Markdown parser. Fast. SAX-like interface",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:40:49+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "md4c",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-06-04T09:05:26Z",
  "github_readme_excerpt": "\n# MD4C Readme\n\n* Home: https://github.com/mity/md4c\n* Wiki: https://github.com/mity/md4c/wiki\n* Issue tracker: https://github.com/mity/md4c/issues\n\nMD4C stands for \"Markdown for C\" and that\u0027s exactly what this project is about.\n\n\n## What is Markdown\n\nIn short, Markdown is the markup language this `README.md` file is written in.\n\nThe following resources can explain more if you are unfamiliar with it:\n* [Wikipedia article](https://en.wikipedia.org/wiki/Markdown)\n* [CommonMark site](https://commonmark.org)\n\n\n## What is MD4C\n\nMD4C is a Markdown parser implementation in C, with the following features:\n\n* **Compliance:** Generally, MD4C aims to be compliant to the latest version of\n  [CommonMark specification](https://spec.commonmark.org/). Currently, we are\n  fully compliant to CommonMark 0.31.\n\n* **Extensions:** MD4C supports some commonly requested and accepted extensions.\n  See below.\n\n* **Performance:** MD4C is [very fast](https://talk.commonmark.org/t/2520).\n\n* **Compactness:** MD4C parser is implemented in one source file and one header\n  file. There are no dependencies other than standard C library.\n\n* **Embedding:** MD4C parser is easy to reuse in other projects, its API is\n  very straightforward: There is actually just one function, `md_parse()`.\n\n* **Push model:** MD4C parses the complete document and calls few callback\n  functions provided by the application to inform it about a start/end of\n  every block, a start/end of every span, and with any textual contents.\n\n* **Portability:** MD4C builds and works on Windows and POSIX-compliant OSes.\n  (It should be simple to make it run also on most other platforms, at least as\n  long as the platform provides C standard library, including a heap memory\n  management.)\n\n* **Encoding:** MD4C by default expects UTF-8 encoding of the input document.\n  But it can be compiled to recognize ASCII-only control characters (i.e. to\n  disable all Unicode-specific code), or (on Windows) to expect UTF-16 (i.e.\n  what is on Windows c",
  "github_repo": "mity/md4c",
  "github_stars": 1375,
  "github_topics": [
    "c",
    "commonmark",
    "markdown",
    "markdown-parser",
    "mit-license",
    "parser"
  ],
  "homepage": "https://github.com/mity/md4c",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 11061,
  "installs_365d": 94587,
  "installs_90d": 35875,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": "2026-06-20T23:44:16+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "md4c",
  "oldnames": [],
  "one_liner": "C Markdown parser with CommonMark compliance, SAX-like callback interface, and high performance.",
  "optional_dependencies": [],
  "rank_30d": 340,
  "rank_365d": 442,
  "rank_90d": 343,
  "raw_hash": "14f8559c5ea6ccf8",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/m/md4c.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "0.5.3",
  "versioned_formulae": [],
  "why_use_this": "MD4C is a lightweight, embeddable C library ideal for projects needing Markdown parsing without heavy dependencies. Its push-model (callback-based) API and single-file implementation make it suitable for parsing pipelines, static site generators, or embedded documentation systems. Fast and compliant with CommonMark 0.31."
}