diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-08-07 13:25:35 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-08-07 13:25:35 +0200 |
commit | 4e86b7ef1eb69354a80bd93f2063ac1643236b80 (patch) | |
tree | 72676dfedd5b280c2ab42b4d176ebf776ef276f3 /util/uniorg.js | |
parent | 87805439815b0a929d9e300b942c145d0bbe7277 (diff) |
fix: no bare boundp in iflet
Diffstat (limited to 'util/uniorg.js')
-rw-r--r-- | util/uniorg.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/util/uniorg.js b/util/uniorg.js new file mode 100644 index 0000000..cc046e9 --- /dev/null +++ b/util/uniorg.js @@ -0,0 +1,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); |