From 02bc0e04190149907bf6647690fa96fc6576b7c6 Mon Sep 17 00:00:00 2001 From: Void Date: Tue, 10 Nov 2026 06:17:06 +0000 Subject: [PATCH] Latex: let the site choose KaTeX's output mode katexOptions omitted `output`, though the option spread already honours it. A site can now ask for "htmlAndMathml" so screen readers get MathML; the default stays "html". Co-Authored-By: Claude Sonnet 5.5 --- quartz/plugins/transformers/latex.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quartz/plugins/transformers/latex.ts b/quartz/plugins/transformers/latex.ts index a9f54f3..c33869e 100644 --- a/quartz/plugins/transformers/latex.ts +++ b/quartz/plugins/transformers/latex.ts @@ -12,7 +12,8 @@ import { Options as TypstOptions } from "@myriaddreamin/rehype-typst" interface Options { renderEngine: "katex" | "mathjax" | "typst" customMacros: MacroType - katexOptions: Omit + // `output` defaults to "html"; "htmlAndMathml" adds MathML for screen readers (KaTeX hides it visually). + katexOptions: Omit mathJaxOptions: Omit typstOptions: TypstOptions } -- 2.47.3