macOS
brew install md4clocal Homebrew formula metadata
sudo port install md4cMacPorts ports tree · devel/md4c/Portfile · source: api.github.com
brew
C Markdown parser. Fast. SAX-like interface. Version 0.5.3 via Homebrew; verified 2026-04-20.
install
brew install md4clocal Homebrew formula metadata
sudo port install md4cMacPorts ports tree · devel/md4c/Portfile · source: api.github.com
sudo apk add md4cAlpine Linux edge package indexes · md4c · source: dl-cdn.alpinelinux.org
sudo apt install libmd4c-devDebian stable package indexes · libmd4c-dev · source: deb.debian.org
sudo dnf install md4cFedora Rawhide package metadata · md4c · source: dl.fedoraproject.org
nix profile install nixpkgs#md4cnixpkgs package indexes · pkgs/by-name/md/md4c/package.nix · source: api.github.com
sudo pacman -S md4cArch Linux sync databases · md4c · source: geo.mirror.pkgbuild.com
sudo zypper install libmd4c0openSUSE Tumbleweed package metadata · libmd4c0 · source: download.opensuse.org
overview
C Markdown parser. Fast. SAX-like interface
history
MD4C is a Markdown parser implementation in C. The upstream README expands the name as Markdown for C and presents the project as a CommonMark-oriented, embeddable parser with a SAX-like callback API and an optional HTML renderer.
The GitHub repository was created on 2016-10-03, and the project has continued as a small C library centered on a compact parser surface: the README emphasizes that the parser is implemented in one source file and one header file, with no dependencies beyond the standard C library.
MD4C's design grew around CommonMark compatibility, extension flags, and predictable performance. The upstream documentation says it targets CommonMark 0.31, supports common extensions such as tables, task lists, footnotes, strikethrough, math spans, wikilinks, and admonitions, and exposes both parser callbacks and a separate Markdown-to-HTML API.
The package-manager metadata supplied for this batch shows MD4C packaged across Homebrew, Debian/Ubuntu, Fedora, Alpine, Arch, MacPorts, Nix, and openSUSE. That breadth fits its role as a small C dependency that distributions can ship both as a library and as the `md2html` command.
The upstream repository tags include a long 0.x release series through release-0.5.3, indicating a project that has remained versioned and maintained after its initial public repository appeared in 2016.
Library users include `md4c.h` and call `md_parse()` with callbacks for block, span, and text events. Applications that only need HTML can link the HTML renderer and call `md_html()`, receiving chunks of generated HTML through a callback.
The command-line packaging commonly exposes `md2html`, making MD4C useful both as a library dependency and as a quick Unix-style Markdown-to-HTML converter.
Package maintainers care about MD4C because it is a small, dependency-light C implementation of a common document parsing problem. The README explicitly contrasts it with DOM-style parsers and emphasizes embedding, compactness, portability, and resistance to pathological parsing inputs.
Its package appeal is also practical: it gives C and C++ projects a permissively licensed CommonMark parser without vendoring a larger Markdown stack or depending on a language runtime.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
md2html | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:md4c |
|---|---|
| Version | 0.5.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/md4c |
| Homepage | https://github.com/mity/md4c |
| Repository | https://github.com/mity/md4c |
| Upstream docs | https://github.com/mity/md4c#readme |
| License | MIT |
| Source archive | https://github.com/mity/md4c/archive/refs/tags/release-0.5.3.tar.gz |
| Last updated | 2026-04-20T18:43:41Z |
| Pulse | updated |
| Build dependencies | cmake |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | md4c |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libmd4c-dev 0.5.2-2+b1
Markdown for C - development files
sudo apt install libmd4c-devlibmd4c-html0 0.5.2-2+b1
Markdown for C HTML-renderer
sudo apt install libmd4c-html0libmd4c-html0-dev 0.5.2-2+b1
Markdown for C HTML-renderer - development files
sudo apt install libmd4c-html0-devlibmd4c0 0.5.2-2+b1
Markdown for C
sudo apt install libmd4c0md2html 0.5.2-2+b1
Markdown to HTML converter
sudo apt install md2htmlmd4c
nix profile install nixpkgs#md4clibmd4c-dev 0.4.8-1build1
Markdown for C - development files
sudo apt install libmd4c-devlibmd4c-html0 0.4.8-1build1
Markdown for C HTML-renderer
sudo apt install libmd4c-html0libmd4c-html0-dev 0.4.8-1build1
Markdown for C HTML-renderer - development files
sudo apt install libmd4c-html0-devlibmd4c0 0.4.8-1build1
Markdown for C
sudo apt install libmd4c0md4c 0.5.3-r0
Fast Markdown parser written in C
sudo apk add md4cmd4c-dev 0.5.3-r0
Fast Markdown parser written in C (development files)
sudo apk add md4c-devmd4c-doc 0.5.3-r0
Fast Markdown parser written in C (documentation)
sudo apk add md4c-docmd4c-libs 0.5.3-r0
Fast Markdown parser written in C (libraries)
sudo apk add md4c-libsmd4c 0.5.1-5.fc44
Markdown for C
sudo dnf install md4cmd4c-devel 0.5.1-5.fc44
Development files for md4c
sudo dnf install md4c-develsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.