Bad indentation at break on mspace
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.9k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Issue Summary
We had an example where there was a line break on an mspace, which is fine, but it indented strangely in that spot (was way over to the left compared to the other broken lines). Here's what we were using:
and here's the output:

Is this a known bug? Is there any way to fix this?
Technical details:
MathJax Version: master - latest commit: MathJax.js v2.7.5
Client OS: Windows
Browser: Chrome Version 91.0.4472.114 (Official Build) (64-bit)
Renderer: HTML-CSS
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the attached “Break on mspace.txt” example and reproduce the indentation problem in Chrome using the HTML-CSS renderer. Compare the mspace line break with the surrounding broken lines; done means the mspace break aligns consistently with them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, html, javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100