commonmark - parse Markdown
Contents
Description
If no file is given, input will be read from STDIN
Examples
Converting a file named document.md:
commonmark document.md
Converting a file and saving its output:
commonmark document.md > output.html
Converting from STDIN:
echo -e '# Hello World!' | commonmark
Converting from STDIN and saving the output:
echo -e '# Hello World!' | commonmark > output.html
See also:
Full documentation can be found at http://commonmark.thephpleague.com/
commonmark 1.6.7 January 2022 COMMONMARK(1)
Name
commonmark - parse Markdown
Options
-h, --help Shows help and usage information
-v, --version Shows the currently installed version
--safe Escapes all raw HTML input and removes unsafe URLs
Synopsis
commonmark [OPTIONS] [FILE]
