Skip to content
New issue

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? Sign in to your account

$t_1<t_2<t_3<t_4$ not render correct #3337

Closed
MxJ24 opened this issue Feb 25, 2025 · 3 comments
Closed

$t_1<t_2<t_3<t_4$ not render correct #3337

MxJ24 opened this issue Feb 25, 2025 · 3 comments

Comments

@MxJ24
Copy link

MxJ24 commented Feb 25, 2025

Issue Summary

MathJax not render $t_1&lt;t_2&lt;t_3&lt;t_4$ correctly, it show render as "$t_1"

Steps to Reproduce:

  1. open https://www.mathjax.org/#demo
  2. copy $t_1&lt;t_2&lt;t_3&lt;t_4$ into live demo text area

Technical details:

just open https://www.mathjax.org/#demo in Chrome

I am using the following MathJax configuration:

Supporting information:

it show render it as

Image

@dpvc
Copy link
Member

dpvc commented Feb 25, 2025

This is a duplicate of #3336, and is explained there. Put spaces around the less-than sign in order to prevent what follow from being treated as an HTML tag by the browser. See the documentation for more details.

@dpvc dpvc added the Duplicate label Feb 25, 2025
@dpvc dpvc closed this as completed Feb 28, 2025
@Daisy1213
Copy link

Daisy1213 commented Mar 24, 2025

Have you found a solution? If we cannot modify the source data, what methods are available to solve this issue? @dpvc

@dpvc
Copy link
Member

dpvc commented Mar 24, 2025

@Daisy1213, the solution is to use spaces around the less than signs, or to use either &lt; or \lt instead. This is not something mathJax can do anything about, because the interpretation if the < as the beginning of an HTML tag is done by the browser long before MathJax runs, so is outside of MathJax's control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants