macOS
brew install md4cprovider-native install command
brew / rank 436
C Markdown parser. Fast. SAX-like interface. Version 0.5.3 via Homebrew; verified from local package data.
install
brew install md4cprovider-native install command
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 | executable | indexed executable | Discovered from the local executable index. |
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 |
| Homepage | https://github.com/mity/md4c |
| Repository | https://github.com/mity/md4c |
| Bottle | not recorded |
| Service | none declared |
source 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.