Closed TorosFanny closed 4 years ago
This library is primarily to be used for server side rendering. It utilizes quickjs, which is a JS interpreter written in C. Currently, it does not support webassembly target.
It is possible to build in webassembly with this patch and emscripten.
However, if your use case is running KaTeX inside browser. A better solution would be to call KaTeX JS directly through wasm-bindgen.
When compiling code simply like this
with command
Then it reports: