Conversation
…nced braces. Resolves issue mathjax/MathJax#2271
|
This is potentially a breaking change, so I am not going to include it in this version. The problem is that would be processed by the current version (and version 2), but would not be processed by this PR, since the second |
|
There should also be additional changes to actually remove all comments before processing the rest of the expression, as currently that is not being done. For example, is valid, and can be used via So I'm wondering if it is better to leave it as is, or break those incorrect (but useful) usages? |
b77df61 to
1f851dd
Compare
| braces++; | ||
| } else if (match[0] === '}' && braces) { | ||
| braces--; | ||
| } else if (match[0].substr(0) === '%') { |
There was a problem hiding this comment.
substr is deprecated
| } else if (match[0].substr(0) === '%') { | |
| } else if (match[0].substring(0) === '%') { |
Update
FindTeXto properly skip comments, even if they include unbalanced braces.Resolves issue mathjax/MathJax#2271