Fix a bug in macro expander
This commit is contained in:
parent
0e8fe41aaa
commit
671f6f93a0
|
@ -264,6 +264,8 @@ function expandKaTeXMacroOnce(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!macros.hasOwnProperty(macroName)) return [fallback, false];
|
||||||
|
|
||||||
const numArgs: number = macros[macroName].args;
|
const numArgs: number = macros[macroName].args;
|
||||||
const openBracket: string = macroName.slice(-1);
|
const openBracket: string = macroName.slice(-1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue