Markdown to HTMLBook converter
Converts Markdown to HTMLBook.
Install with npm:
npm install -g htmlbook
Within Node, htmlbook.js works on strings.
var htmlbook = ;var htmlbook_output = ;
To use htmlbook.js with a file, in Node.js do the following:
var fs = ;var htmlbook = ;var htmlbook_output;fs
$ htmlbook -s SOURCE_FILE -o OUTPUT_FILE
$ htmlbook --help for all options.
Below is a list of available options, default value is emphasized.
There are two suites of tests for this repository. The first is
spec/htmlbook_spec.js and tests the package for expected output. Run this test with the following:
$ jasmine-node spec/htmlbook_spec.js
The second test suite checks to be sure that the file being tested in
htmlbook_spec are in fact being output to valid HTMLBook. It's no use writing tests that pass unless they pass on valid output. These tests are separated because the validation takes longer.
$ jasmine-node spec/validation_spec.js