Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 cmark

查看 cmark 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install cmark

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install cmark

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add cmark

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

Debian apt已验证 · 92%
sudo apt install cmark

Debian stable package indexes · cmark · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install cmark

Fedora Rawhide package metadata · cmark · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#cmark

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

Arch Linux pacman已验证 · 92%
sudo pacman -S cmark

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

openSUSE zypper已验证 · 92%
sudo zypper install cmark

openSUSE Tumbleweed package metadata · cmark · 来源: download.opensuse.org

概览

软件包摘要

Strongly specified, highly compatible implementation of Markdown

命令和别名

  • cmark

历史

项目历史与用法

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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
cmarkcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.31.2
管理器更新时间
本地数据OK
上游当前
检测到的最新版本0.31.2

https://github.com/commonmark/cmark

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:cmark
版本0.31.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/cmark
主页https://commonmark.org/
仓库https://github.com/commonmark/cmark
上游文档https://commonmark.org/
许可证BSD-2-Clause
源码归档https://github.com/commonmark/cmark/archive/refs/tags/0.31.2.tar.gz
构建依赖cmake
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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