macOS
brew install md4clocal Homebrew formula metadata
sudo port install md4cMacPorts ports tree · devel/md4c/Portfile · 来源: api.github.com
安装
brew install md4clocal Homebrew formula metadata
sudo port install md4cMacPorts ports tree · devel/md4c/Portfile · 来源: api.github.com
sudo apk add md4cAlpine Linux edge package indexes · md4c · 来源: dl-cdn.alpinelinux.org
sudo dnf install md4cFedora Rawhide package metadata · md4c · 来源: dl.fedoraproject.org
nix profile install nixpkgs#md4cnixpkgs package indexes · pkgs/by-name/md/md4c/package.nix · 来源: api.github.com
sudo pacman -S md4cArch Linux sync databases · md4c · 来源: geo.mirror.pkgbuild.com
sudo zypper install md4copenSUSE Tumbleweed package metadata · md4c · 来源: download.opensuse.org
sudo apt install libmd4c-devDebian stable package indexes · libmd4c-dev · 来源: deb.debian.org
概览
C Markdown parser. Fast. SAX-like interface
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
md2html | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:md4c |
|---|---|
| 版本 | 0.5.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/md4c |
| 主页 | https://github.com/mity/md4c |
| 仓库 | https://github.com/mity/md4c |
| 上游文档 | https://github.com/mity/md4c#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/mity/md4c/archive/refs/tags/release-0.5.3.tar.gz |
| 构建依赖 | cmake |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-devel来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.