-
Notifications
You must be signed in to change notification settings - Fork 50
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
Basic LaTeX support #18
Comments
Investigating how MathJax works, it seems that it's unlikely that we'll be able to use it without losing the power and simplicity of Elm's virtual DOM. Mathjax v3 will allow more options for this, but it's in pre-alpha. Packages exist for other LaTeX rendering engines (e.g. bsouthga/elm-katex), but they are not compatible with Will revisit this later. |
[Hi. Coming here from your announcement. I've long liked the idea of Gingko though to be honest don't remember why I didn't stick with it, didn't try the new one yet but looking forward to it!] I'm not familiar with Elm but I suppose what you'd like best is a pure function from latex string to DOM?
KaTeX aviods both problems. https://github.com/evancz/elm-markdown says it's based on marked — it might be easy to drop in https://github.com/GitbookIO/kramed, a fork of marked that includes kramdown-like math?? (I really don't know what I'm talking about here! :) Better yet, someone already started replacing it with markdown-it, for which numerous math plugins exist: evancz/elm-markdown#19 ref mathjax/MathJax#1763 (which I guess you saw), https://github.com/andre-dietrich/elm-mathjax to watch (currently empty), https://hackernoon.com/towards-latex-in-the-browser-2ff4d94a0c08 (not sure if relevant) |
Thanks for your research on this, @cben . Yes, a pure "latex string to DOM" JS function would be ideal. There might be a way to hack something with that as a starting point. But, I won't (and don't recommend) starting on that path yet. Elm 0.19 is going to be coming out, and my understanding is that it'll be disallowing JS in elm packages, so that'll likely be a dead end. I'll have a closer look at https://github.com/jxxcarlson/minilatex though. @jxxcarlson has been working hard on getting Elm and LaTeX to work together, and has been in contact with the creator of Elm, so he's on the leading edge of this. |
Are you working on implementing latex...??? |
What are the top priorities on your roadmap? |
No description provided.
The text was updated successfully, but these errors were encountered: