diff options
Diffstat (limited to 'util/orga.js')
-rw-r--r-- | util/orga.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/orga.js b/util/orga.js new file mode 100644 index 0000000..4f85eeb --- /dev/null +++ b/util/orga.js @@ -0,0 +1,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) |