MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

v4-beta3 SVG inline linebreaking creating invalid markup

Open pkra opened this issue 2 years ago • 1 comments

With inline linebreaking, mathjax generates mjx-linestrut elements inside svg element - which doesn't seem to affect layout but is invalid.

E.g. $a \overset{\text{hello world}}{=} b$ exhibits the problem for me.

pkra avatar Aug 17 '23 09:08 pkra

In order to handle embellished operators when in-line breaking is allowed, I had to add a function to lay out embellished operators separately from normal ones. It looks like I wrote the CHTML version first, then copied it for SVG and modified it. The mjx-linestrut is needed for CHTML, but not for SVG, and I missed it when adapting the function to the SVG output.

I've made a PR to remove it.

dpvc avatar Aug 17 '23 14:08 dpvc