macOS
brew install cmarklocal Homebrew formula metadata
sudo port install cmarkMacPorts ports tree · devel/cmark/Portfile · source: api.github.com
brew
Strongly specified, highly compatible implementation of Markdown. Version 0.31.2 via Homebrew; verified from local package data.
install
brew install cmarklocal Homebrew formula metadata
sudo port install cmarkMacPorts ports tree · devel/cmark/Portfile · source: api.github.com
sudo apk add cmarkAlpine Linux edge package indexes · cmark · source: dl-cdn.alpinelinux.org
sudo apt install cmarkDebian stable package indexes · cmark · source: deb.debian.org
sudo dnf install cmarkFedora Rawhide package metadata · cmark · source: dl.fedoraproject.org
nix profile install nixpkgs#cmarknixpkgs package indexes · pkgs/by-name/cm/cmark/package.nix · source: api.github.com
sudo pacman -S cmarkArch Linux sync databases · cmark · source: geo.mirror.pkgbuild.com
sudo zypper install cmarkopenSUSE Tumbleweed package metadata · cmark · source: download.opensuse.org
overview
Strongly specified, highly compatible implementation of Markdown
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cmark | cli | global executable |
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.
https://github.com/commonmark/cmark
install metadata
| Package key | brew:cmark |
|---|---|
| Version | 0.31.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cmark |
| Homepage | https://commonmark.org/ |
| Repository | https://github.com/commonmark/cmark |
| Upstream docs | https://commonmark.org/ |
| License | BSD-2-Clause |
| Source archive | https://github.com/commonmark/cmark/archive/refs/tags/0.31.2.tar.gz |
| Build dependencies | cmake |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cmark |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
cmark 0.30.2-6+b2
CommonMark parsing and rendering program
https://github.com/commonmark/cmark
sudo apt install cmarklibcmark-dev 0.30.2-6+b2
development files for CommonMark parsing and rendering library
https://github.com/commonmark/cmark
sudo apt install libcmark-devlibcmark0.30.2 0.30.2-6+b2
CommonMark parsing and rendering library
https://github.com/commonmark/cmark
sudo apt install libcmark0.30.2cmark
nix profile install nixpkgs#cmarkcmark 0.30.2-6build1
CommonMark parsing and rendering program
https://github.com/commonmark/cmark
sudo apt install cmarklibcmark-dev 0.30.2-6build1
development files for CommonMark parsing and rendering library
https://github.com/commonmark/cmark
sudo apt install libcmark-devlibcmark0.30.2 0.30.2-6build1
CommonMark parsing and rendering library
https://github.com/commonmark/cmark
sudo apt install libcmark0.30.2cmark 0.31.2-r0
C reference implementation of CommonMark, a rationalized Markdown spec
https://github.com/commonmark/cmark
sudo apk add cmarkcmark-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-devcmark-doc 0.31.2-r0
C reference implementation of CommonMark, a rationalized Markdown spec (documentation)
https://github.com/commonmark/cmark
sudo apk add cmark-doclibcmark 0.31.2-r0
C reference implementation of CommonMark, a rationalized Markdown spec (libraries)
https://github.com/commonmark/cmark
sudo apk add libcmarkcmark 0.31.1-3.fc44
CommonMark parsing and rendering
sudo dnf install cmarkcmark-devel 0.31.1-3.fc44
Development files for cmark
sudo dnf install cmark-develcmark-lib 0.31.1-3.fc44
CommonMark parsing and rendering library
sudo dnf install cmark-libcmark 0.31.2-1
CommonMark parsing and rendering library and program in C
https://github.com/commonmark/cmark
sudo pacman -S cmarkcmark 0.31.1-1.3
CommonMark parsing and rendering library and program in C
sudo zypper install cmarksource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.