rsms / markdown-wasm

Very fast Markdown parser and HTML generator implemented in WebAssembly, based on md4c
https://rsms.me/markdown-wasm/
MIT License
1.51k stars 62 forks source link

Support running on Cloudflare Workers platform #25

Open sntran opened 2 months ago

sntran commented 2 months ago

None of the distributed modules can be used in Cloudflare Workers, due to the usage of Node.js specific modules like path and fs without node: prefix. Would it be possible to add the prefix for those?

Alternatively, I see that there is a way to build custom module with the WASM embedded, which may removes the need for those path and fs modules. However, would you consider include that in the NPM package so other users can just NPM install and use it?