Fix problem with character being skipped following a \ref or \eqref in \text{} inside math mode (index was off by one)
This commit is contained in:
parent
94a2dc3389
commit
fd3ff2979e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1644,7 +1644,7 @@
|
|||
}
|
||||
} else if (c === '}' && match === '}') {
|
||||
mml.push(MML.TeXAtom(TEX.Parse(text.slice(k,i),{}).mml().With(def)));
|
||||
match = ''; k = i+1;
|
||||
match = ''; k = i;
|
||||
} else if (c === '\\') {
|
||||
if (match === '' && text.substr(i).match(/^(eq)?ref\s*\{/)) {
|
||||
if (k < i-1) {mml.push(this.InternalText(text.slice(k,i-1),def))}
|
||||
|
|
Loading…
Reference in New Issue
Block a user