News for hackers. Stuff that matters.
Re:MathML in Chromium by dtf on Saturday March 09, 2019 @04:18AM (#19345280)
Here's an example of why MathML is attractive as a rendering layer (try Firefox vs Chrome, and look at native MathML latency vs MathJax emulation):

https://runarberg.github.io/ascii2mathml/

(it helps to have the LaTeX Computer Modern fonts installed locally, which for some reason aren't imported on this page)

Re:MathML in Chromium by runarberg on Saturday March 09, 2019 @01:22PM (#19347564)
hmm, here is a project I haven’t given nearly as much love as it deserves.

ascii2mathml was the first compiler I ever wrote (and have written since). I wrote it because I wanted authors from a non math background to be able to write short expressions in forums or comment threads without having to know latex. I tried to make it as intuitive as possible. Even going as far as making `1+2 / 3+4` a different expression from `1 + 2/3 + 4`. But I know some people started integrate the library in their notebook apps, mainly used by math students taking notes in lectures in a markdown format (writing the expressions in ascii2mathml). Ascii2mathml might be a better fit then then the original asciimath for that purpose as the original is no expressive enough to capture advanced math expressions.

I bailed on it a couple of years ago because it looked like MathML was a dying. Chrome wasn’t going to implement it. Also I haven’t been using it for anything either. Perhaps it is now time I revisit it and give it some love.

Re:MathML in Chromium by cotelletta on Saturday March 09, 2019 @01:24PM (#19347582)
Except MathJax isn't the bar to beat, it's Katex which doesn't rely on a measurement of DOM layout.
Re:MathML in Chromium by SimeVidas on Saturday March 09, 2019 @10:34AM (#19346607)
I’m getting “main.js:100 Uncaught ReferenceError: MathJax is not defined” in Chrome.