Releases: ksw2000/hackmd-to-html-cli
Releases · ksw2000/hackmd-to-html-cli
v2.0.0
Change Log
- Starting support browser.
- Rename
.render()
to.convert()
CommonJS
const { Converter } = require('hackmd-to-html-cli')
const converter = new Converter();
const res = converter.render("# hello");
console.log(res.main);
ES Module
import { Converter } from "hackmd-to-html-cli"
const converter = new Converter();
const res = converter.render("# hello");
console.log(res.main);
Web
const converter = new window.hmd2html.Converter();
const res = converter.render("# hello");
console.log(res.main);
v1.1.0
v1.1.0
- Support url/wildcard input
- New output flag
-o
- Flag
-s
is changed to-i
$ hmd2html --help
hmd2html --help
Usage: index [options]
Options:
-v, --version output the current version
-i, --input <files_or_urls...> the path/url of input markdown files
-d, --dest <dir> the path of output directory (filename is generated automatically) (default: ./output)
-o, --output <files...> the path of output file (ignored if the flag -d is set) (default: "")
-l, --layout <html_file> specify the layout file (default: "")
-b, --hardBreak use hard break instead of soft break
-k, --dark use the dark mode layout (activate only if the -l option is not set)
-h, --help display help for command