GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
The \verb macro passes its argument to <mtext> verbatim, but <mtex> removes leading and trailing spaces, and collapses multiple spaces.
This issue is easily fixed by replacing spaces with non-breaking spaces before passing the string to <mtext>.
The test will be
=> In testsuite
Preserve spaces within \verb arguments. Resolves issue mathjax#381.
The issue381 branch of my fork of MathJax includes the fix.
=> Ready for Release
Merge branch 'issue381' into develop
Resolves issue mathjax#381.
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