Parser and converter for org-mode (http://orgmode.org/) notation written in JavaScript.
For working example, see http://mooz.github.com/org-js/editor/.
npm install org
var org = require("org");
var parser = new org.Parser();
var orgDocument = parser.parse(orgCode);
var orgHTMLDocument = orgDocument.convert(org.ConverterHTML, {
headerOffset: 1,
exportFromLineNumber: false,
suppressSubScriptHandling: false,
suppressAutoLink: false
});
console.dir(orgHTMLDocument); // => { title, contentHTML, tocHTML, toc }
console.log(orgHTMLDocument.toString()) // => Rendered HTML
See lib/org/converter/html.js
.