uniorg-parse
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

uniorg-parse

Org-mode parser compatible with unified ecosystem.

Install

npm install uniorg-parse

Use

var unified = require('unified')
var createStream = require('unified-stream')
var uniorgParse = require('uniorg-parse')
var uniorg2rehype = require('uniorg-rehype')
var html = require('rehype-stringify')

var processor = unified().use(uniorgParse).use(uniorg2rehype).use(html)

process.stdin.pipe(createStream(processor)).pipe(process.stdout)

API

processor().use(uniorgParse)

Configure the processor to read Org as input and process uniorg syntax trees.

parse(string)

Parse string.

import { parse } from 'uniorg-parse/lib/parser';

console.log(parse('* example document'))

License

GNU General Public License v3.0 or later

Package Sidebar

Install

npm i uniorg-parse

Weekly Downloads

158

Version

2.1.1

License

GPL-3.0-or-later

Unpacked Size

282 kB

Total Files

24

Last publish

Collaborators

  • rasendubi
  • thomasfkjorna