summaryrefslogtreecommitdiff
path: root/util/orga.js
blob: 4f85eeb5959807972875e231ca0d8e87a7790bf1 (about) (plain)
1
2
3
4
5
6
7
8
const stream = import('unified-stream')
const reorg = require('@orgajs/reorg')
const mutate = require('@orgajs/reorg-rehype')
const html = import('rehype-stringify')

const processor = reorg().use(mutate).use(html)

process.stid.pipe(stream(processor)).pipe(process.stdout)