Math: emit MathML beside the KaTeX so screen readers can read it #19

Merged
void merged 1 commit from void/math-mathml into main 2026-11-10 06:19:52 +00:00

View file

@ -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: [