Posts: 5568
Joined: Fri May 29, 2020 8:29 pm
Location: Wirral, UK

MathML Rendering in Chromium-browser

Mon Sep 25, 2023 12:02 pm

Since v109 Chromium has incorporated MathML but I've found some basic functionality missing. There are easy workarounds for most of them but its a pain discovering what works and what doesn't by trial and error.

mfenced - (eg used for braces/parenthesis) doesn't render.

lquote and rquote - sometimes don't render depending on complexity of line.

mathsize small/ normal, big are all the same (might be deprecated, there's confusion)

linebreak - doesn't render

menclose notation - doesn't render

mfrac bevelled is always false (no sloping line for divide)

mtable frame - doesn't render

msqrt - doesn't stretch vertically to enclose all its argument and hence usually doesn't centralise vertically either.

Also although quite a lot of MathML3 works well there are a lot of things that don't render properly eg mstack, mlongdiv, apply etc.

mglyph src doesn't render source image.

There's more

User avatar
Posts: 6244
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany

Re: MathML Rendering in Chromium-browser

Tue Sep 26, 2023 8:47 pm

The nice feature of MathML is, that it is rendered on client browser.
But because of the problems you mentioned and I saw in the past, relying on MathML is difficult.
You don't know what people will see with different browsers, browser versions and/or OSes.

MathJax has to be processed on backend.
But Github supports MathJax, and all browsers on all OSes will show "the right thing".
I played with it here:

Return to “Other programming languages”