The best I've sound so far is MathML. Unfortunately:
* it's FireFox only * Chrome dropped support * I really like Chrome's debugger * It's also slow-ish On Sun, Mar 16, 2014 at 4:04 AM, Jony Hudson <jonyepsi...@gmail.com> wrote: > It doesn't help answer your question, but FWIW: I know MathJax renders > dynamically into an existing DOM node because it needs to get sizing > information before it renders. This means, for instance, that you can't even > render into a DOM fragment off-screen. > > > Jony > > > On Saturday, 15 March 2014 03:36:04 UTC, t x wrote: >> >> Hi, >> >> >> I'm aware of MathJax, JsMath, MathQuill, MathDox. >> >> >> However, I'm wondering if anyone have implemented a pure clojure >> math renderer (not just a binding, but with the actual rendering in >> Clojure). >> >> >> >> What I find frustrating about existing solutions is their >> im-pureness. The basic idea is: >> >> * my cljs code creates a div with some math inside of $\frac{2}{3}$ >> >> * I queue some javascript call, which then takes a dom node as >> input, and through lots of icky stateful destructive updates, replaces >> the dom element with a bunch of HTML/CSS that represents some math >> >> >> What I really want, would be a pure Javascript function, which does >> something like: >> >> (defn magic-func [sexp-representing-math] >> ... does some magic ... >> .. returns a svg-node-tree which renders the math ...) >> >> >> I've spent a few hours of my life searching for this. I have not >> found anything like it. >> >> >> Does anyone know of a piece of software which does something similar? >> >> >> >> Thanks! > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.