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

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

## インストール

```sh
sudo av install brew:cmark
```

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

### macOS

- Homebrew (100%):

```sh
brew install cmark
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cmark
```

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

### Linux

- apk (92%):

```sh
sudo apk add cmark
```

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

- Debian apt (92%):

```sh
sudo apt install cmark
```

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

- dnf (92%):

```sh
sudo dnf install cmark
```

  証拠: Fedora Rawhide package metadata: cmark 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#cmark
```

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

- pacman (92%):

```sh
sudo pacman -S cmark
```

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

- zypper (92%):

```sh
sudo zypper install cmark
```

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

## パッケージ情報

- **パッケージキー:** brew:cmark
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.31.2
- **ソース概要:** Strongly specified, highly compatible implementation of Markdown
- **ホームページ:** <https://commonmark.org/>
- **リポジトリ:** <https://github.com/commonmark/cmark>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- cmark (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

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

cmark is the C reference implementation of CommonMark, providing both a libcmark parsing/rendering library and a cmark command-line program. It exists to make Markdown behavior testable, portable, fast, and consistent across implementations.

### プロジェクトの歴史

CommonMark grew out of the need for an unambiguous Markdown specification after years of divergent Markdown implementations. The CommonMark site says the effort started in 2014 with implementers and large-scale Markdown users, and the cmark README credits John MacFarlane with the original library and program alongside contributors to parsing, optimization, links, emphasis, APIs, and tests.

### 採用の歴史

The CommonMark site reports implementations for dozens of programming languages and lists adopters including Discourse, GitHub, GitLab, Reddit, Qt, Stack Overflow/Stack Exchange, and Swift. The batch input lists cmark packages across Homebrew, Alpine, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE/zypper.

### 使われ方

The cmark program parses CommonMark documents and renders HTML, groff man, LaTeX, CommonMark, or XML AST output. The library exposes an AST for programmatic manipulation and is wrapped by bindings for multiple languages; the README also documents security behavior around raw HTML and unsafe links.

### パッケージ好きにとっての重要性

cmark is important because it gives package ecosystems a small, fast, C99, dependency-light implementation of a standardized Markdown dialect. It is a common build or test dependency for projects that want Markdown rendering without inheriting each host language's quirks.

### タイムライン

- 2004: Markdown is released by John Gruber with Aaron Swartz, providing the background problem CommonMark later addresses.
- 2014: CommonMark publishes early spec versions, with 0.5 and 0.6 appearing in October.
- 2015: the current commonmark/cmark GitHub repository is created.
- 2024: CommonMark spec 0.31.2 is listed as the latest spec version on spec.commonmark.org.

### Related projects

- cmark is related to the CommonMark spec, commonmark.js, cmark-gfm, Markdown.pl, Babelmark, and language bindings for Go, Haskell, Ruby, Lua, Perl, Python, R, Scala, and PHP listed in the README.

### ソース

- <https://commonmark.org/>
- <https://spec.commonmark.org/>
- <https://github.com/commonmark/cmark#readme>
- <https://api.github.com/repos/commonmark/cmark>


## セキュリティノート

narrow executable package without higher-risk signals.

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

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

- Debian apt - cmark - 0.30.2-6+b2: normalized package name match | Debian stable package indexes: cmark from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CommonMark parsing and rendering program | https://github.com/commonmark/cmark
- Debian apt - libcmark-dev - 0.30.2-6+b2: normalized package name match | Debian stable package indexes: libcmark-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for CommonMark parsing and rendering library | https://github.com/commonmark/cmark
- Debian apt - libcmark0.30.2 - 0.30.2-6+b2: normalized package name match | Debian stable package indexes: libcmark0.30.2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CommonMark parsing and rendering library | https://github.com/commonmark/cmark
- Nix - cmark: normalized package name match | nixpkgs package indexes: pkgs/by-name/cm/cmark/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cmark - 0.30.2-6build1: normalized package name match | Ubuntu 24.04 LTS package indexes: cmark from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CommonMark parsing and rendering program | https://github.com/commonmark/cmark
- Ubuntu apt - libcmark-dev - 0.30.2-6build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcmark-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | development files for CommonMark parsing and rendering library | https://github.com/commonmark/cmark
- Ubuntu apt - libcmark0.30.2 - 0.30.2-6build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcmark0.30.2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CommonMark parsing and rendering library | https://github.com/commonmark/cmark
- apk - cmark - 0.31.2-r0: normalized package name match | Alpine Linux edge package indexes: cmark from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C reference implementation of CommonMark, a rationalized Markdown spec | https://github.com/commonmark/cmark
- apk - cmark-dev - 0.31.2-r0: normalized package name match | Alpine Linux edge package indexes: cmark-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C reference implementation of CommonMark, a rationalized Markdown spec (development files) | https://github.com/commonmark/cmark
- apk - cmark-doc - 0.31.2-r0: normalized package name match | Alpine Linux edge package indexes: cmark-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C reference implementation of CommonMark, a rationalized Markdown spec (documentation) | https://github.com/commonmark/cmark
- apk - libcmark - 0.31.2-r0: normalized package name match | Alpine Linux edge package indexes: libcmark from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C reference implementation of CommonMark, a rationalized Markdown spec (libraries) | https://github.com/commonmark/cmark
- dnf - cmark - 0.31.1-4.fc45: normalized package name match | Fedora Rawhide package metadata: cmark from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | CommonMark parsing and rendering | https://github.com/jgm/cmark
- dnf - cmark-devel - 0.31.1-4.fc45: normalized package name match | Fedora Rawhide package metadata: cmark-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for cmark | https://github.com/jgm/cmark
- dnf - cmark-lib - 0.31.1-4.fc45: normalized package name match | Fedora Rawhide package metadata: cmark-lib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | CommonMark parsing and rendering library | https://github.com/jgm/cmark
- pacman - cmark - 0.31.2-1: normalized package name match | Arch Linux sync databases: cmark from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | CommonMark parsing and rendering library and program in C | https://github.com/commonmark/cmark
- zypper - cmark - 0.31.1-1.5: normalized package name match | openSUSE Tumbleweed package metadata: cmark from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | CommonMark parsing and rendering library and program in C | https://github.com/jgm/cmark


## Combined YAML source

View the package source record on GitHub. [combined/cmark.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cmark.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
