diff --git a/packages/client/src/scripts/katex-macro.ts b/packages/client/src/scripts/katex-macro.ts index cd240fff9..bede1c5f6 100644 --- a/packages/client/src/scripts/katex-macro.ts +++ b/packages/client/src/scripts/katex-macro.ts @@ -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];