uniorg-parse
v3.0.1
Published
uniorg plugin to parse org-mode
Downloads
794
Readme
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'))