Fix a bug in the macro expander
This commit is contained in:
parent
f7ac0230da
commit
fe9ed9fcba
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ function expandKaTeXMacroOnce(src: string, macros: { [name: string]: KaTeXMacro
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nextOpenBracketPos === endPos)
|
if (nextOpenBracketPos === endPos)
|
||||||
return [fallback, false]; // there is no open bracket
|
continue; // there is no open bracket
|
||||||
|
|
||||||
macroNameCandidate += src[nextOpenBracketPos];
|
macroNameCandidate += src[nextOpenBracketPos];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue