-
Notifications
You must be signed in to change notification settings - Fork 19
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
LaTeX support #25
Comments
LaTeX in general i probably too much for this crate. With that said, a subset for math would definitely be nice to have. |
seems like pulldown_cmark has merged the support for math expressions: pulldown-cmark/pulldown-cmark#734 (it will emit i think this would be a really cool feature to have, i'll start prototyping on it tomorrow |
It would be really nice. It's just incredibly painful that node or headless chrome must be involved. I would have preferred to avoid that. |
True, I guess we could embed a JavaScript engine like QuickJS or Duktape and make MathJax run in it? :P |
Yeah. Your first suggestion is the most sane option. Maybe this gives me an excuse to add support for mermaid too 🤔 There is definitely a lot to consider. For instance the headless chrome feature in that crate fetches mathjax from CDN and as I would expect most people to use that backend it would mean that it would require internet access to work. At least that would have to be documented. |
or we can just leave it to the user and make them pass a closure that will render LaTeX into a texture |
I don't think moving the problem to the user is the solution 😆 |
I think that's the best option, since there's no easy way of rendering LaTeX in Rust. The implementation would also be different when compiling for web, since there you can directly interface with the browsers' JS engine |
True. I did not think about for web. |
Is LaTeX support planned?
The text was updated successfully, but these errors were encountered: