From 7c568eefffa4edb13c360b8797d0d7774817d08e 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 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];