Automic VaultAutomic Vault

brew

Install cmark with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Strongly specified, highly compatible implementation of Markdown. Version 0.31.2 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install cmark

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install cmark

MacPorts ports tree · devel/cmark/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add cmark

Alpine Linux edge package indexes · cmark · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install cmark

Debian stable package indexes · cmark · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install cmark

Fedora Rawhide package metadata · cmark · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#cmark

nixpkgs package indexes · pkgs/by-name/cm/cmark/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S cmark

Arch Linux sync databases · cmark · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install cmark

openSUSE Tumbleweed package metadata · cmark · source: download.opensuse.org

overview

Package summary

Strongly specified, highly compatible implementation of Markdown

Commands and aliases

  • cmark

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

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

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
cmarkcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version0.31.2
manager updated
local dataok
upstreamcurrent
latest detected0.31.2

https://github.com/commonmark/cmark

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:cmark
Version0.31.2
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/cmark
Homepagehttps://commonmark.org/
Repositoryhttps://github.com/commonmark/cmark
Upstream docshttps://commonmark.org/
LicenseBSD-2-Clause
Source archivehttps://github.com/commonmark/cmark/archive/refs/tags/0.31.2.tar.gz
Build dependenciescmake
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecmark
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

cmark 0.30.2-6+b2

CommonMark parsing and rendering program

https://github.com/commonmark/cmark

sudo apt install cmark
  • Section: text
  • Architecture: amd64
  • Source Package: cmark
  • 1 dependencies
  • normalized package name match
  • Matched by: Cmark
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cmark from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libcmark-dev 0.30.2-6+b2

development files for CommonMark parsing and rendering library

https://github.com/commonmark/cmark

sudo apt install libcmark-dev
  • Section: text
  • Architecture: amd64
  • Source Package: cmark
  • 1 dependencies
  • normalized package name match
  • Matched by: Cmark
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libcmark-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libcmark0.30.2 0.30.2-6+b2

CommonMark parsing and rendering library

https://github.com/commonmark/cmark

sudo apt install libcmark0.30.2
  • Section: libs
  • Architecture: amd64
  • Source Package: cmark
  • 1 dependencies
  • normalized package name match
  • Matched by: Cmark
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libcmark0.30.2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

cmark

nix profile install nixpkgs#cmark
  • normalized package name match
  • Matched by: Cmark
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/cm/cmark/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

cmark 0.30.2-6build1

CommonMark parsing and rendering program

https://github.com/commonmark/cmark

sudo apt install cmark
  • Section: universe/text
  • Architecture: amd64
  • 1 dependencies
  • normalized package name match
  • Matched by: Cmark
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: cmark from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libcmark-dev 0.30.2-6build1

development files for CommonMark parsing and rendering library

https://github.com/commonmark/cmark

sudo apt install libcmark-dev
  • Section: universe/text
  • Architecture: amd64
  • Source Package: cmark
  • 1 dependencies
  • normalized package name match
  • Matched by: Cmark
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libcmark-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libcmark0.30.2 0.30.2-6build1

CommonMark parsing and rendering library

https://github.com/commonmark/cmark

sudo apt install libcmark0.30.2
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: cmark
  • 1 dependencies
  • normalized package name match
  • Matched by: Cmark
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libcmark0.30.2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

cmark 0.31.2-r0

C reference implementation of CommonMark, a rationalized Markdown spec

https://github.com/commonmark/cmark

sudo apk add cmark
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: cmark
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Cmark
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cmark from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

cmark-dev 0.31.2-r0

C reference implementation of CommonMark, a rationalized Markdown spec (development files)

https://github.com/commonmark/cmark

sudo apk add cmark-dev
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: cmark
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Cmark
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cmark-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

cmark-doc 0.31.2-r0

C reference implementation of CommonMark, a rationalized Markdown spec (documentation)

https://github.com/commonmark/cmark

sudo apk add cmark-doc
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: cmark
  • normalized package name match
  • Matched by: Cmark
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cmark-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

libcmark 0.31.2-r0

C reference implementation of CommonMark, a rationalized Markdown spec (libraries)

https://github.com/commonmark/cmark

sudo apk add libcmark
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: cmark
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Cmark
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libcmark from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

cmark 0.31.1-3.fc44

CommonMark parsing and rendering

https://github.com/jgm/cmark

sudo dnf install cmark
  • License: BSD-2-Clause AND MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: cmark
  • 3 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Cmark
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: cmark from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

cmark-devel 0.31.1-3.fc44

Development files for cmark

https://github.com/jgm/cmark

sudo dnf install cmark-devel
  • License: BSD-2-Clause AND MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: cmark
  • 5 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Cmark
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: cmark-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

cmark-lib 0.31.1-3.fc44

CommonMark parsing and rendering library

https://github.com/jgm/cmark

sudo dnf install cmark-lib
  • License: BSD-2-Clause AND MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: cmark
  • 2 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Cmark
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: cmark-lib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

cmark 0.31.2-1

CommonMark parsing and rendering library and program in C

https://github.com/commonmark/cmark

sudo pacman -S cmark
  • License: BSD-2-Clause
  • Architecture: x86_64
  • 1 dependencies
  • normalized package name match
  • Matched by: Cmark
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cmark from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

cmark 0.31.1-1.3

CommonMark parsing and rendering library and program in C

https://github.com/jgm/cmark

sudo zypper install cmark
  • License: BSD-2-Clause AND MIT AND CC-BY-SA-4.0
  • Category: Productivity/Text/Utilities
  • Architecture: x86_64
  • Source Package: cmark
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Cmark
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: cmark from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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