summaryrefslogtreecommitdiff
path: root/util/orga.js
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-08-07 13:25:35 +0200
committerThomas F. K. Jorna <[email protected]>2021-08-07 13:25:35 +0200
commit4e86b7ef1eb69354a80bd93f2063ac1643236b80 (patch)
tree72676dfedd5b280c2ab42b4d176ebf776ef276f3 /util/orga.js
parent87805439815b0a929d9e300b942c145d0bbe7277 (diff)
fix: no bare boundp in iflet
Diffstat (limited to 'util/orga.js')
-rw-r--r--util/orga.js8
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)