# md4c を Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, apt, winget でインストール

md4c のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:md4c
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install md4c
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install md4c
```

  証拠: MacPorts ports tree: devel/md4c/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add md4c
```

  証拠: Alpine Linux edge package indexes: md4c from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install md4c
```

  証拠: Fedora Rawhide package metadata: md4c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#md4c
```

  証拠: nixpkgs package indexes: pkgs/by-name/md/md4c/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S md4c
```

  証拠: Arch Linux sync databases: md4c from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install md4c
```

  証拠: openSUSE Tumbleweed package metadata: md4c from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Debian apt (92%):

```sh
sudo apt install libmd4c-dev
```

  証拠: Debian stable package indexes: libmd4c-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

### Windows

- winget (92%):

```sh
winget install --id DuckWeb.md2html -e
```

  証拠: Windows Package Manager source index: DuckWeb.md2html from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:md4c
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.5.3
- **ソース概要:** C Markdown parser. Fast. SAX-like interface
- **ホームページ:** <https://github.com/mity/md4c>
- **リポジトリ:** <https://github.com/mity/md4c>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- md2html (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.5.3
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://api.github.com/repos/mity/md4c>
- <https://api.github.com/repos/mity/md4c/tags?per_page=30>
- <https://github.com/mity/md4c#readme>
- <https://github.com/mity/md4c/wiki>
- source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Debian apt - libmd4c-dev - 0.5.2-2+b1: normalized package name match | Debian stable package indexes: libmd4c-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Markdown for C - development files | https://github.com/mity/md4c
- Debian apt - libmd4c-html0 - 0.5.2-2+b1: normalized package name match | Debian stable package indexes: libmd4c-html0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Markdown for C HTML-renderer | https://github.com/mity/md4c
- Debian apt - libmd4c-html0-dev - 0.5.2-2+b1: normalized package name match | Debian stable package indexes: libmd4c-html0-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Markdown for C HTML-renderer - development files | https://github.com/mity/md4c
- Debian apt - libmd4c0 - 0.5.2-2+b1: normalized package name match | Debian stable package indexes: libmd4c0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Markdown for C | https://github.com/mity/md4c
- Debian apt - md2html - 0.5.2-2+b1: normalized package name match | Debian stable package indexes: md2html from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Markdown to HTML converter | https://github.com/mity/md4c
- Nix - md4c: normalized package name match | nixpkgs package indexes: pkgs/by-name/md/md4c/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libmd4c-dev - 0.4.8-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libmd4c-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Markdown for C - development files | https://github.com/mity/md4c
- Ubuntu apt - libmd4c-html0 - 0.4.8-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libmd4c-html0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Markdown for C HTML-renderer | https://github.com/mity/md4c
- Ubuntu apt - libmd4c-html0-dev - 0.4.8-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libmd4c-html0-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Markdown for C HTML-renderer - development files | https://github.com/mity/md4c
- Ubuntu apt - libmd4c0 - 0.4.8-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libmd4c0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Markdown for C | https://github.com/mity/md4c
- apk - md4c - 0.5.3-r0: normalized package name match | Alpine Linux edge package indexes: md4c from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast Markdown parser written in C | https://github.com/mity/md4c
- apk - md4c-dev - 0.5.3-r0: normalized package name match | Alpine Linux edge package indexes: md4c-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast Markdown parser written in C (development files) | https://github.com/mity/md4c
- apk - md4c-doc - 0.5.3-r0: normalized package name match | Alpine Linux edge package indexes: md4c-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast Markdown parser written in C (documentation) | https://github.com/mity/md4c
- apk - md4c-libs - 0.5.3-r0: normalized package name match | Alpine Linux edge package indexes: md4c-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast Markdown parser written in C (libraries) | https://github.com/mity/md4c
- dnf - md4c - 0.5.3-2.fc45: normalized package name match | Fedora Rawhide package metadata: md4c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Markdown for C | https://github.com/mity/md4c
- dnf - md4c-devel - 0.5.3-2.fc45: normalized package name match | Fedora Rawhide package metadata: md4c-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for md4c | https://github.com/mity/md4c


## Combined YAML source

View the package source record on GitHub. [combined/md4c.yml](https://github.com/mxcl/pkgdb/blob/main/combined/md4c.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
