Fix a bug in the macro expander

This commit is contained in:
naskya 2023-03-31 06:31:18 +09:00
parent f7ac0230da
commit fe9ed9fcba
No known key found for this signature in database
GPG key ID: 164DFF24E2D40139

View file

@ -244,7 +244,7 @@ function expandKaTeXMacroOnce(src: string, macros: { [name: string]: KaTeXMacro
}
if (nextOpenBracketPos === endPos)
return [fallback, false]; // there is no open bracket
continue; // there is no open bracket
macroNameCandidate += src[nextOpenBracketPos];