Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to compile packages and use them on the web? #677

Open
oovm opened this issue Nov 9, 2020 · 3 comments
Open

Is it possible to compile packages and use them on the web? #677

oovm opened this issue Nov 9, 2020 · 3 comments

Comments

@oovm
Copy link

oovm commented Nov 9, 2020

For example, I want to use AMS-LaTeX in wasm, and then use it as an alternative to KaTeX or Mathjax.

Rust code can be ported to wasm with wasm-pack, what are other difficulties to be solved?

@pkgw
Copy link
Collaborator

pkgw commented Nov 11, 2020

@GalAster Well ... I don't know! This has been an area of interest for a long time, but no one has sat down to do the work to try to make it happen, as far as I know.

Tectonic relies on native C/C+ libraries like harfbuzz, so those would nee to be wasm-ified with emscripten, but we can deliver statically linked Tectonic executables so I think that part should be doable. That's the only obvious wrinkle that I can think of.

@kpym
Copy link

kpym commented Jan 11, 2021

For info, texlive has already be ported using emscripten : https://github.com/manuels/texlive.js

@rgbkrk
Copy link

rgbkrk commented May 30, 2024

What I'm really curious about is if there's some subset here that would be on par with MathJax, at least at the level supported in Jupyter notebooks. I'm working on Jupyter notebook support in zed-industries/zed#9778 and would love to have math formatting via $$. Zed's UI is written fully in Rust and could accept PNGs. As an example, check out crates/repl/src/outputs.rs from zed-industries/zed#12062

Update: made my comment into a separate issue #1199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants