Markdown to HTMLBook converter


Parses HTML into HTMLBook.

Add the htmlbook.js script to a page with jQuery (tested with jQuery 1.10.2) and Marked.

Download this library into your directory (it's not on npm just yet) and do npm install to install jquery and marked.

For both the browser and Node.js, usage is the same

var output = HTMLBook(input).parse(opts);

Below is a list of available options, default value is emphasized.

  • sourceFormat: html or markdown
  • fragment: false or true
  • level: chapter or book