summaryrefslogtreecommitdiff
path: root/util/uniorg.js
blob: cc046e9068ef6159a0700f7b521b71038f4b50b1 (about) (plain)
1
2
3
4
5
6
7
8
9
10

import { unified } from 'unified';
var createStream = import('unified-stream');
var uniorgParse = import('uniorg-parse');
var uniorg2rehype = import('uniorg-rehype');
var html = import('rehype-stringify');

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

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