-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Comment causes IE to ignore rest of equation #89
Comments
This problem is due to the fact that IE converts newlines to spaces when it initially parses the page (similar to the disappearing space problem). This means MathJax can't tell where the end of the line is when it processes a comment, as the line goes to the end of the mathematics. Since the text of the document is damaged long before MathJax gets to loot at it, there is little MathJax can do about it, unfortunately. The page author has two options for including comments in the math:
I also propose a new solution:
I don't really see any other way around this, as the original text has to be modified in some way in order to make this work (MathJax can't do it itself, since damage is already done by the time MathJax runs.) Davide |
A patch that implements my suggestion is in branch |
I've added the following unit test: and tested with IE9 mode < 9. However the bug does not seem to be fixed on the branch issue89. (of course, I've cleared the cache and restart IE). The commit log indicates "Partial work-around" so maybe it's normal. |
The issue is not going to be resolved for documentMode < 9 without changes to the original document. The "partial work-around" is to allow you to enter
and have it properly recognize the end of the comment in documentMode < 9. The original comment without the Davide |
OK, thanks for the information. In that case I'll also add a version of the test with the |
I've committed this to master. I'm closing the issue, since I don't see anything we can do about it, but I'll leave the "accepted" tag, since it isn't really fixed, and we can look at it again later, if need be. |
In IE, when tex2jax is used, a comment will cause the rest of the equation to be ignored, not just the rest of the line containing the comment. This is true for IE modes < IE9 (IE9 standards mode is OK).
The text was updated successfully, but these errors were encountered: