Fix a bug in the macro expander

This commit is contained in:
naskya 2023-03-31 06:31:18 +09:00
parent ecb17b9eaf
commit 7c568eefff

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];