If one doesn't tell MathJax to change rendering mode to SVG, code inside math looks horrible. Here is an example from https://specification.modelica.org/master/modelica-dae-representation.html:
The fix for this appears to be to modify the LaTeXML-maybeMathjax.js produced by LaTeXML, so that it looks like this:
var mathjax_url =
"https://cdn.jsdelivr.net/npm/mathjax@3/es5/mml-svg.js";
Before creating a PR, I'd like input on the following alternatives:
- Add a copy of LaTeXML-maybeMathjax.js to the repository, and modify the copy. (I don't like this approach since we won't automatically get new versions of the file from future versions of LaTeXML.)
- Add a small build step that modifies the LaTeXML-maybeMathjax.js coming from LaTeXML. (Minor drawback is maintenance of a small program making the substitution.)
- Don't change anything, the current situation is good enough.
If one doesn't tell MathJax to change rendering mode to SVG, code inside math looks horrible. Here is an example from https://specification.modelica.org/master/modelica-dae-representation.html:
The fix for this appears to be to modify the LaTeXML-maybeMathjax.js produced by LaTeXML, so that it looks like this:
Before creating a PR, I'd like input on the following alternatives: