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);