Skip to content

Releases: ksw2000/hackmd-to-html-cli

v2.0.0

15 Nov 17:02
e625d89
Compare
Choose a tag to compare

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

25 Jan 15:03
Compare
Choose a tag to compare
  • 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

v1.0.0

18 Jun 18:02
Compare
Choose a tag to compare
Prepare v1.0.0

v0.0.12

13 May 16:50
Compare
Choose a tag to compare
  • Change the exported class Covert to Converter
  • Now we can import this package by import { Converter } from 'hackmd-to-html-cli'

v0.0.11

21 Apr 06:35
Compare
Choose a tag to compare
  • Support fretboard

v0.0.10

03 Apr 07:21
Compare
Choose a tag to compare
  • Support specify your name in a blockquote
  • Support specify time in a blockquote
  • Support color to vary the blockquoutes
  • Support render CSV as table
  • Support PlantUML

v0.0.9

26 Mar 07:16
Compare
Choose a tag to compare
  • Fix bug: The style of inline code
  • Support externals (exclude SlideShare)
    • Youtube
    • Vimeo
    • Gist
    • Speakerdeck
    • PDF
    • Figma
  • Support more yaml metadata

v0.0.8

25 Feb 13:15
Compare
Choose a tag to compare
Prepare v0.0.8

v0.0.7

23 Feb 12:53
Compare
Choose a tag to compare
  • Support Graphviz
  • Support vega-lite
  • Support Abc
  • Support spoiler
  • Support -b to enable hard-break mode
  • Specify the start line number for code block
  • Automatically generate <title>

v0.0.6

01 Feb 21:03
Compare
Choose a tag to compare
Prepare 0.0.6