From 0dc8bf8848103badb9c9c9f7f2134481cf9b812b Mon Sep 17 00:00:00 2001 From: Giteabot Date: Tue, 22 Sep 2026 08:55:03 -0700 Subject: [PATCH] fix(markup): raise KaTeX MAX_CHARS limit to 10000 (#39387) (#39389) Backport #39387 by @Copilot Fix #39386 --- web_src/js/markup/math.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/markup/math.ts b/web_src/js/markup/math.ts index a3ee102ccde..9f031d3502b 100644 --- a/web_src/js/markup/math.ts +++ b/web_src/js/markup/math.ts @@ -20,7 +20,7 @@ export async function initMarkupCodeMath(elMarkup: HTMLElement): Promise { import('katex/dist/katex.css'), ]); - const MAX_CHARS = 1000; + const MAX_CHARS = 10000; const MAX_SIZE = 25; const MAX_EXPAND = 1000;