New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

org

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

org

A parser and converter for org-mode notation

0.2.0
latest
Source
npm
Version published
Weekly downloads
358
-32.83%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

org-mode

FAQs

Package last updated on 21 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts