Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There are 2 regexps to match equations contained in brackets, one is math_block_eqno, the other is math_block, the first regexp matches equations with an index at the end, aaaa (1) the second regexp matches equations without an index bbbb the program prioritize the first regexp over the second, but when multiple equations present with only some of them having an index. Javascript regexp will greedly match the longest string that fulfill the first regexp. For example bbbb aaaa (1) becomes one single equation, instead of 2. The fix adds a negative lookahead to exclude \\\[ \\\] patterns from a match. fix goessner#9
- Loading branch information