From fe9ed9fcba906307f61e8cfe60b60b83d8cd3f0b Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 31 Mar 2023 06:31:18 +0900 Subject: [PATCH] Fix a bug in the macro expander --- packages/client/src/scripts/katex-macro.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];