Fix a bug in macro expander

This commit is contained in:
naskya 2023-04-01 21:18:55 +09:00
parent 55cf59667b
commit 928c539440

View file

@ -264,6 +264,8 @@ function expandKaTeXMacroOnce(
}
}
if (!macros.hasOwnProperty(macroName)) return [fallback, false];
const numArgs: number = macros[macroName].args;
const openBracket: string = macroName.slice(-1);