diff --git a/packages/client/src/scripts/katex-macro.ts b/packages/client/src/scripts/katex-macro.ts index cd240fff94..bede1c5f6e 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];