Steps to replicate the issue (include links if applicable):
- Set preference to Client side MathJax
- Enter a formula with a space as last character inside a \text tag <math>\text{A }</math> or as the first character <math>\text{ A}</math>
- Save the file
What happens?:
"Math input error" is displayed, red text on yellow background
What should have happened instead?:
Formula is display correctly
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Chrome 128



