cargo install --git https://git.wilem.eu/md2html.git
md2html 0.1.0
USAGE:
md2html.exe [OPTIONS] -t <string> [infile]
OPTIONS:
--cssembed <file> Embed contents of this css file, instead of the built-in default
--csshref <URL> Generated html will dynamically load css from this url
-h, --help Prints help information
--no-cssembed Don't embed any css in the output html
-o, --outfile <file> Generate html into this file [default: stdout]
-t <string> Title for the html doc
-V, --version Prints version information
ARGS:
<infile> Read markdown from this file [default: stdin]
For example,
md2html index.md -o index.html -t md2html
will generate index.html
from index.md
echo '**bold text**' | md2html --cssembed mystyle.css
will print converted **bold text**
to stdout and will embed the contents of mystyle.css
as style--no-cssembed
/--cssembed
and --csshref
can mix. That is, you can embed css and still link to another style and maybe use that linked style to override the embedded defaults.