Markdown to HTML Converter is a free tool for converting a Markdown file to a single HTML file with built-in CSS and JS.
``` EXAMPLES: markdown2html-converter /path/to/file.md # Convert /path/to/file.md to /path/to/file.html, titled "file" markdown2html-converter /path/to/file.md -o /path/to/output.html # Convert /path/to/file.md to /path/to/output.html, titled "output" markdown2html-converter /path/to/file.md -t 'Hello World!' # Convert /path/to/file.md to /path/to/file.html, titled "Hello World!"
USAGE:
markdown2html-converter [OPTIONS]
ARGS:
OPTIONS: -t, --title
Markdown is converted to HTML by the comrak crate. The default stylesheet (the CSS file) is from sindresorhus/github-markdown-css.
If ```
is used in the input Markdown file, the highlight.js will be automatically embedded in the output HTML file. The preset supported languages are listed below.
If #{{
- }}#
or #{{{
- }}}#
is used in the input Markdown file, the mathjax.js will be automatically embedded in the output HTML file. #{{
and }}#
are inlineMath
delimiters. #{{{
and }}}#
are displayMath
delimiters. The default mathjax.js are using the tex-mml-chtml configuration file.