Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

69.8. cmark-0.31.2

CommonMark reference implementation: libcmark and the cmark converter

0.31.2-1 · BSD-2-Clause AND MIT · 0.2 SBU · 259.0 KiB, 14 files · 40_lang, 43 of 186 · ports/core/doctools/cmark

Homepage: https://commonmark.org/

Depends on: cmake, ninja.

Required by (4): ghostwriter, mkvtoolnix, neochat, nheko.

Sources: cmark-0.31.2.tar.gz (261.0 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install cmark'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D CMAKE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D BUILD_SHARED_LIBS=ON \
	-D BUILD_TESTING=OFF \
	-D CMARK_LIB_FUZZER=OFF \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Programs: cmark.

Libraries: libcmark.so.

Directories: /usr/lib/cmake/cmark, /usr/share/licenses/cmark.