A11y | Expose MathML beside KaTeX - #69
Merged
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Warning Review limit reachedNext included review available in 12 minutes. View limit detailsLimit details: You’ve used all 5 included reviews currently available. Your 24 included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (3)
Comment |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #56. The KaTeX wrapper now asks auto-render for HTML plus MathML, then keeps the painted layer aria-hidden so AT can read the MathML sibling.
The docs commit records A14 as closed (PR #68) on the issue map. That number is not on the A19 row.
Changes
katex-render.jsforcesoutput: 'htmlAndMathml'and walks each.katexroot:.katex-htmlstaysaria-hidden="true",.katex-mathmlis not hidden, and the outer.katexis notaria-hidden. No new visible copy.A19 characterization locks that path.
Test plan
npm test— A19 characterization/playfib-latex.md: 19<math>nodes, none underaria-hidden; all 19.katex-htmlarearia-hidden/playmatching-latex.md: 11<math>nodes, same contract; formulas still look like KaTeXPORT=3010 A11Y_BASE_URL=http://127.0.0.1:3010 SIM_PORT=8081 SIM_ORIGIN=http://127.0.0.1:8081 npm run a11y:ci— baseline stayscolor-contrast1needs-manual-verify)