How To Install Cmark On Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS?

How To Install Cmark On Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS?

cmark

Converts CommonMark Markdown formatted text to other formats.

Maintainer: Peter Eisentraut



Section: text

Install cmark

  • Debian apt-get install cmark Click to copy
  • Ubuntu apt-get install cmark Click to copy
  • Alpine OS apk add cmark Click to copy
  • Arch Linux pacman -S cmark Click to copy
  • Kali Linux apt-get install cmark Click to copy
  • Fedora dnf install cmark Click to copy
  • Raspbian apt-get install cmark Click to copy
  • macOS brew install cmark Click to copy

Converts CommonMark Markdown formatted text to other formats.

How to use cmark?

Below are few example commands for cmark that you can use in the terminal.

Render a Commonmark Markdown file to HTML:
cmark --to html filename.mdClick to copy
Convert data from standard input to latex:
cmark --to latexClick to copy
Convert straight quotes to smart quotes:
cmark --smart --to html filename.mdClick to copy
Validate utf8 characters:
cmark --validate-utf8 filename.mdClick to copy
To install the latest version of cmark in your favorite operating system just copy the cmark installation command from above and paste it into terminal. It will download and install the latest version of cmark 2026 package in your OS.