Hacker News new | ask | show | jobs
by dtf 2656 days ago
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)

3 comments

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.

Except MathJax isn't the bar to beat, it's Katex which doesn't rely on a measurement of DOM layout.
I’m getting “main.js:100 Uncaught ReferenceError: MathJax is not defined” in Chrome.