htmlbook

Markdown to HTMLBook converter

htmlbook.js

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 input = "HTML TEXT OR JQUERY OBJECT"
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