Closed linux-china closed 4 years ago
I find a way to support Deno. Add deno build in wasmc.js:
module({ ...m,
name: "markdown-bundle-es",
out: outdir + "/markdown.bundle.es.js",
embed: true,
format: "es",
})
then add `var document = {};' at the beginning of markdown.deno.js.
I made a demo here https://github.com/linux-china/markdown-wasm
Thanks! Please remember to add the license for markdown-wasm and md4c in your repo at https://github.com/linux-china/markdown-wasm since it's public :–)
Q: Did you close this issue by accident or did you change your mind? If the latter, care to elaborate?
Any plan to add Deno support for markdown-wasm, and Deno developer can use this module to render Markdown quickly.
Now I have following Deno typescript code, such as demo.ts
I got the error with
deno run demo.ts
Is it possible to produce a js file for Deno? such as markdown.deno.js, and the code alike following: