cmark

Converts CommonMark Markdown formatted text to other formats. More information: <https://github.com/commonmark/cmark>.

Install

All systems
curl cmd.cat/cmark.sh
Debian Debian
apt-get install cmark
Ubuntu
apt-get install cmark
Alpine
apk add cmark
Arch Arch Linux
pacman -S cmark
image/svg+xml Kali Linux
apt-get install cmark
Fedora
dnf install cmark
Windows (WSL2)
sudo apt-get update sudo apt-get install cmark
OS X
brew install cmark
Raspbian
apt-get install cmark
Docker
docker run cmd.cat/cmark cmark powered by Commando

Converts CommonMark Markdown formatted text to other formats. More information: <https://github.com/commonmark/cmark>.

  • Render a CommonMark Markdown file to HTML:
    cmark --to html filename.md
  • Convert data from `stdin` to LaTeX:
    cmark --to latex
  • Convert straight quotes to smart quotes:
    cmark --smart --to html filename.md
  • Validate UTF-8 characters:
    cmark --validate-utf8 filename.md

© tl;dr; authors and contributors