Replies: 1 comment 1 reply
-
|
Hi! Could you try a PR swapping |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'd like to support remark-cli with my compiler plugin remark-docx, which converts mdast to .docx binary, since there seems to be certain needs for cli (e.g. markdown-docx, md2report).
My question is, what is the best way to create cli with compiler that outputs
ArrayBufferorTypedArray? What I tried:I found that VFile supports
Uint8Array. However remark-cli didn't work as expected withUint8Arraybecause it was stringified just before writing to file system.https://github.com/unifiedjs/unified-engine/blob/6f35eaedc659e6edd5392f9ef0cf49bc51f3feab/lib/file-pipeline/file-system.js#L58
https://github.com/vfile/vfile/blob/5e83917c832881569c52f1118c7beea3f12ac12f/lib/index.js#L574
I found that unified-engine has alwaysStringify option which allows us accessing VFiles directly. However I don't want to make cli from scratch for maintenance reason, if possible.
Beta Was this translation helpful? Give feedback.
All reactions