Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@ksw2000 ksw2000 released this 15 Nov 17:02
· 20 commits to main since this release
e625d89

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