From a85b8c09a29e8c913edee7296b274681dd88023a Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Mon, 23 Mar 2026 09:43:51 +0000 Subject: [PATCH] fix: align KaTeX CDN version to 0.16.28 in export files fontEmbedder.ts and htmlTemplates.ts referenced katex@0.16.9 while the installed package and pdfHtmlTemplate.ts use 0.16.28. This mismatch could cause visual glitches in exported HTML math rendering. Closes #512 Co-Authored-By: Claude Opus 4.6 --- src/export/fontEmbedder.ts | 2 +- src/export/htmlTemplates.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/export/fontEmbedder.ts b/src/export/fontEmbedder.ts index bebb6e53a..e523becf9 100644 --- a/src/export/fontEmbedder.ts +++ b/src/export/fontEmbedder.ts @@ -49,7 +49,7 @@ export const KATEX_FONTS = [ ] as const; /** KaTeX CDN base URL */ -const KATEX_CDN_BASE = "https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts"; +const KATEX_CDN_BASE = "https://cdn.jsdelivr.net/npm/katex@0.16.28/dist/fonts"; /** Font file to download */ export interface FontFile { diff --git a/src/export/htmlTemplates.ts b/src/export/htmlTemplates.ts index e04721ed4..8885a025a 100644 --- a/src/export/htmlTemplates.ts +++ b/src/export/htmlTemplates.ts @@ -48,7 +48,7 @@ export function generateIndexHtml( const themeClass = isDark ? "dark-theme" : ""; const katexLink = includeKaTeX - ? `` + ? `` : ""; return ` @@ -102,7 +102,7 @@ export function generateStandaloneHtml( const themeClass = isDark ? "dark-theme" : ""; const katexLink = includeKaTeX - ? `` + ? `` : ""; return `