From bed00bcfe5bf9e58a79e5840d94718bc12d88220 Mon Sep 17 00:00:00 2001 From: Void Date: Tue, 10 Nov 2026 06:17:06 +0000 Subject: [PATCH] Math: emit MathML beside the KaTeX so screen readers can read it Built pages carried only the aria-hidden KaTeX markup. katexOptions.output is htmlAndMathml now; the visible KaTeX is unchanged and katex.min.css clips the MathML to 1px. Needs the GameCult-Quartz change that lets katexOptions carry `output`. Co-Authored-By: Claude Sonnet 5.5 --- site/quartz.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/quartz.config.ts b/site/quartz.config.ts index 79d969e..9d014d0 100644 --- a/site/quartz.config.ts +++ b/site/quartz.config.ts @@ -81,7 +81,8 @@ const config: QuartzConfig = { Plugin.GitHubFlavoredMarkdown(), Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }), Plugin.Description(), - Plugin.Latex({ renderEngine: "katex" }), + // MathML beside the visible KaTeX: screen readers read it, KaTeX hides it visually. + Plugin.Latex({ renderEngine: "katex", katexOptions: { output: "htmlAndMathml" } }), ], filters: [Plugin.RemoveDrafts()], emitters: [ -- 2.47.3