LinuxCommandLibrary

cmark

cmark

TLDR

Render a CommonMark Markdown file to HTML

$ cmark --to html [filename.md]
copy


Convert data from stdin to LaTeX
$ cmark --to latex
copy


Convert straight quotes to smart quotes
$ cmark --smart --to html [filename.md]
copy


Validate UTF-8 characters
$ cmark --validate-utf8 [filename.md]
copy

Help

usage: cmark [-h] [-o [O]] [-a] [-aj] [infile] 

Process Markdown according to the CommonMark specification. 

positional arguments:
  infile      Input Markdown file to parse, defaults to STDIN 

options:
  -h, --help  show this help message and exit 
  -o [O]      Output HTML/JSON file, defaults to STDOUT 
  -a          Print formatted AST 
  -aj         Output JSON AST 

Copied to clipboard