cmark
cmark
TLDR
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]
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