Closed dpvc closed 11 years ago
This issue is easily fixed by replacing spaces with non-breaking spaces before passing the string to <mtext>
.
The test will be
LaTeXToMathML/verb-2.html
=> In testsuite
The issue381
branch of my fork of MathJax includes the fix.
=> Ready for Release
=> Merged
For me everything works with SVG rendering, but not HTML-CSS, where multiple spaces inside of verb are too small - less than half of their spaces, which seems to be related to #380
The
\verb
macro passes its argument to<mtext>
verbatim, but<mtex>
removes leading and trailing spaces, and collapses multiple spaces.