# Installer cmark avec Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de cmark pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install cmark
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cmark
```

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

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

## Faits du paquet

- **Clé du paquet:** brew:cmark
- **Gestionnaire de paquets:** Homebrew
- **Version:** 0.31.2
- **Résumé source:** Strongly specified, highly compatible implementation of Markdown
- **Page d'accueil:** <https://commonmark.org/>
- **Dépôt:** <https://github.com/commonmark/cmark>
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- cmark (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 0.31.2
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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.

### Sources

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


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- 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)


## Sources

- 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
