Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, apt 安装 md4c

查看 md4c 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install md4c

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install md4c

MacPorts ports tree · devel/md4c/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add md4c

Alpine Linux edge package indexes · md4c · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install md4c

Fedora Rawhide package metadata · md4c · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#md4c

nixpkgs package indexes · pkgs/by-name/md/md4c/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S md4c

Arch Linux sync databases · md4c · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install md4c

openSUSE Tumbleweed package metadata · md4c · 来源: download.opensuse.org

Debian apt已验证 · 92%
sudo apt install libmd4c-dev

Debian stable package indexes · libmd4c-dev · 来源: deb.debian.org

概览

软件包摘要

C Markdown parser. Fast. SAX-like interface

命令和别名

  • md2html

历史

项目历史与用法

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.

时间线

  • 2016-10-03: Official GitHub repository created.
  • 0.2.x-0.5.x: Upstream release tags show a continuing versioned 0.x series.
  • 2026: Upstream README states compliance with CommonMark 0.31.

Related projects

  • CommonMark defines the Markdown specification target named by the MD4C README.
  • The MD4C README compares its callback-oriented model with DOM-style Markdown parsers and documents an optional `md4c-html` renderer.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
md2htmlcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.5.3
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/mity/md4c

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息No cached GitHub release or tag data was available.https://github.com/mity/md4cnone 置信度

安装元数据

软件包元数据

软件包键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 DatabaseHomebrew formula API
Taphomebrew/core
Full Namemd4c
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libmd4c-dev 0.5.2-2+b1

Markdown for C - development files

https://github.com/mity/md4c

sudo apt install libmd4c-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: md4c
  • 2 依赖
  • normalized package name match
  • 匹配方式:Md4c
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmd4c-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libmd4c-html0 0.5.2-2+b1

Markdown for C HTML-renderer

https://github.com/mity/md4c

sudo apt install libmd4c-html0
  • Section: libs
  • Architecture: amd64
  • Source Package: md4c
  • 2 依赖
  • normalized package name match
  • 匹配方式:Md4c
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmd4c-html0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libmd4c-html0-dev 0.5.2-2+b1

Markdown for C HTML-renderer - development files

https://github.com/mity/md4c

sudo apt install libmd4c-html0-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: md4c
  • 1 依赖
  • normalized package name match
  • 匹配方式:Md4c
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmd4c-html0-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libmd4c0 0.5.2-2+b1

Markdown for C

https://github.com/mity/md4c

sudo apt install libmd4c0
  • Section: libs
  • Architecture: amd64
  • Source Package: md4c
  • 1 依赖
  • normalized package name match
  • 匹配方式:Md4c
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmd4c0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

md2html 0.5.2-2+b1

Markdown to HTML converter

https://github.com/mity/md4c

sudo apt install md2html
  • Section: text
  • Architecture: amd64
  • Source Package: md4c
  • 2 依赖
  • normalized package name match
  • 匹配方式:Md4c
Debian stable package indexes · deb.debian.org · Debian stable package indexes: md2html from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

md4c

nix profile install nixpkgs#md4c
  • normalized package name match
  • 匹配方式:Md4c
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/md/md4c/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libmd4c-dev 0.4.8-1build1

Markdown for C - development files

https://github.com/mity/md4c

sudo apt install libmd4c-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: md4c
  • 1 依赖
  • normalized package name match
  • 匹配方式:Md4c
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmd4c-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libmd4c-html0 0.4.8-1build1

Markdown for C HTML-renderer

https://github.com/mity/md4c

sudo apt install libmd4c-html0
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: md4c
  • 2 依赖
  • normalized package name match
  • 匹配方式:Md4c
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmd4c-html0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libmd4c-html0-dev 0.4.8-1build1

Markdown for C HTML-renderer - development files

https://github.com/mity/md4c

sudo apt install libmd4c-html0-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: md4c
  • 1 依赖
  • normalized package name match
  • 匹配方式:Md4c
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmd4c-html0-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libmd4c0 0.4.8-1build1

Markdown for C

https://github.com/mity/md4c

sudo apt install libmd4c0
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: md4c
  • 1 依赖
  • normalized package name match
  • 匹配方式:Md4c
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmd4c0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

md4c 0.5.3-r0

Fast Markdown parser written in C

https://github.com/mity/md4c

sudo apk add md4c
  • License: MIT
  • Architecture: x86_64
  • Source Package: md4c
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Md4c
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: md4c from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

md4c-dev 0.5.3-r0

Fast Markdown parser written in C (development files)

https://github.com/mity/md4c

sudo apk add md4c-dev
  • License: MIT
  • Architecture: x86_64
  • Source Package: md4c
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Md4c
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: md4c-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

md4c-doc 0.5.3-r0

Fast Markdown parser written in C (documentation)

https://github.com/mity/md4c

sudo apk add md4c-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: md4c
  • normalized package name match
  • 匹配方式:Md4c
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: md4c-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

md4c-libs 0.5.3-r0

Fast Markdown parser written in C (libraries)

https://github.com/mity/md4c

sudo apk add md4c-libs
  • License: MIT
  • Architecture: x86_64
  • Source Package: md4c
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Md4c
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: md4c-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

md4c 0.5.1-5.fc44

Markdown for C

https://github.com/mity/md4c

sudo dnf install md4c
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: md4c
  • 2 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Md4c
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: md4c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

md4c-devel 0.5.1-5.fc44

Development files for md4c

https://github.com/mity/md4c

sudo dnf install md4c-devel
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: md4c
  • 5 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Md4c
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: md4c-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment