by mgt19937 · 2y ago · 0 comments
I've always thought compiling LaTeX in WebAssembly would be a tough nut to crack, so I was curious if that's what you'd done here. Turns out you're using KaTeX.
Have you considered any WebAssembly approaches?
KaTeX does not support all LaTeX features but initializes very quickly.
LaTeX via WebAssembly supports more features but might need longer to initialize.
There's an existing WebAssembly project: https://www.swiftlatex.com
The LaTeX format file or the memory image after LaTeX is loaded are a bit bigger though (2.3 MB and 6.3MB gzipped, respectively).