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

How to explicitly specify the location of markdown.wasm? #23

Closed logue closed 1 year ago

logue commented 2 years ago

I'm trying to use it in a Vue component, but when viewed from the browser URL, it tries to read markdown.wasm on the same path, so an error occurs depending on the URL. I want to fix the location of this markdown.wasm to a location like /asset/markdowwn.wasm. How should I set it?

logue commented 1 year ago

I ended up making my own component. markdown.wasm is a provisional implementation that reads from a CDN.

https://github.com/logue/vue-markdown-wasm