Forum Bugs

MathML unwanted spacings and square root merge

rainhallikas
Converting MathML, I get unwanted spacings and square root merging with other elements. See attachment. The square root is also always in 2 pieces.
  1. InputAndResult.zip68.8 kB
mikeday
We hope to improve MathML rendering quality in the future, in the meantime I would recommend converting it to SVG with MathJax or a similar library.
rainhallikas
Okay. I used MathJax. In browser, it works - browser runs JavaScript and converts MathML to SVG.

But does not work in Prince HTML-PDF transformation. I referenced the same script.
Error: https://cdn.jsdelivr.net/npm/mathjax@3/es5/mml-svg.js:1 ReferenceError: no such property: Map
mikeday
Unfortunately Prince does not support Map, which is not in ES5. In the meantime it may be necessary to run MathJax via PhantomJS first.