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
Member

Built pages had only aria-hidden KaTeX. katexOptions.output = htmlAndMathml.

Verified on a site build (Edge/Chromium on Starfire) with an injected 250-term formula, output html vs htmlAndMathml:

  • built dossier.html now has <span class="katex-mathml"><math>… before .katex-html aria-hidden; visible KaTeX unchanged.
  • .katex-mathml computes position:absolute, 1x1px, clip rect(1px,1px,1px,1px): visually hidden.
  • scroll guard unchanged: display block scrollWidth 13068 vs clientWidth 1006 (overflow auto) in both modes; inline and narrow identical; no extra page overflow from the MathML.

Depends on GameCult-Quartz void/katex-output-option for the option's type only; the runtime already honoured it. Not merged; awaiting review.

🤖 Generated with Claude Code

Built pages had only aria-hidden KaTeX. katexOptions.output = htmlAndMathml. Verified on a site build (Edge/Chromium on Starfire) with an injected 250-term formula, output html vs htmlAndMathml: - built dossier.html now has `<span class="katex-mathml"><math>…` before `.katex-html aria-hidden`; visible KaTeX unchanged. - `.katex-mathml` computes position:absolute, 1x1px, clip rect(1px,1px,1px,1px): visually hidden. - scroll guard unchanged: display block scrollWidth 13068 vs clientWidth 1006 (overflow auto) in both modes; inline and narrow identical; no extra page overflow from the MathML. Depends on GameCult-Quartz void/katex-output-option for the option's type only; the runtime already honoured it. Not merged; awaiting review. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Math: emit MathML beside the KaTeX so screen readers can read it
All checks were successful
PR Build Check / build (pull_request) Successful in 5m7s
bed00bcfe5
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 <noreply@anthropic.com>
void merged commit e6c6f4b125 into main 2026-11-10 06:19:52 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/gamecult-site!19
No description provided.