by mindcrime · 9y ago · 0 comments
Consider that, as of Feb 14 2017, the "MathML support" issue was the #8 top starred issue for Blink, Google finally seem to be paying a little bit of attention to this.
https://bugs.chromium.org/p/chromium/issues/detail?id=6606
We (layout team and igalia) have a tentative plan to build a MathML implementation on top of LayoutNG and Custom Layout. I've marked this as blocked on CSS Custom Layout and LayoutNG.
I would argue that this holds true for (La)TeX, most sites use JS implementations of it and show the raw (La)TeX code as a fallback (or in an image form) if the user has JS disabled.
I might be unaware of something, though.
MathML isn't perfect, but I much prefer it to anything else on the web at the moment. I'd almost rather see an updated MathML spec than something new, especially one js-based.
KaTeX can work as a preprocessor (but has less coverage of special environments and macros), and looks very promising to me. (And as long as you keep the original text in an attribute or hidden element, you can always migrate to something else later.)
The fidelity of MathML that I've seen has been terrible. The only people I've seen make it work is Apple, and there it's only working for their proprietary iBooks files. They render parts of the equation in SVG on top of the MathML, and they've got a special XML file that's tweaking a bunch of MathML layout parameters. I've tried copy/pasting the MathML into an epub, and it looks completely different, even when viewed in the iBooks app.
No I am no JavaScript fan, and would be very glad if mathse were supported natively in web rendering toolkits. But at least mathjax does gives some sort of workable solution: wehere "workable" means "users can read it" and "authors can write it".
MathML, being unsupported by Chrome fails first thing, and MathML fails the second thing by design, because it was never really meant to be human editable.