htmlbook.js
Parses HTML into HTMLBook.
Setup
Browser
Add the htmlbook.js script to a page with jQuery (tested with jQuery 1.10.2) and Marked.
Node.js
Download this library into your directory (it's not on npm just yet) and do npm install
to install jquery and marked.
Usage
For both the browser and Node.js, usage is the same
var input = "HTML TEXT OR JQUERY OBJECT"
var output = HTMLBook(input).parse(opts);
Opts
Below is a list of available options, default value is emphasized.
- sourceFormat: html or markdown
- fragment: false or true
- level: chapter or book