0.2.10 • Published 4 years ago

orgpr v0.2.10

Weekly downloads
2
License
-
Repository
github
Last release
4 years ago

org-js

Parser and converter for org-mode (http://orgmode.org/) notation written in JavaScript.

Interactive Editor

For working example, see http://mooz.github.com/org-js/editor/.

Installation

npm install org

Simple example of org -> HTML conversion

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

Writing yet another converter

See lib/org/converter/html.js.

0.2.7

4 years ago

0.2.6

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.10

4 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago