Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
1fb283f to
a42a98d
Compare
|
@cixzhang — I’d appreciate your feedback on this draft. Focus: Hosts can opt into accessible KaTeX rendering for Markdown math while retaining authored source during SSR, loading, or failure. This is PR 13/20 in the linked Markdown stack. It is intentionally one commit and one primary intent; the description includes matched before/after screenshots and previous/next links, so you can review just this PR’s delta. |
humbertovirtudes
left a comment
There was a problem hiding this comment.
The renderer’s MathML, trust settings, fallback, SSR, and public-type coverage look solid. Approval is blocked because the KaTeX contract is introduced in the same implementation delta rather than landing as current authority first. There is also a contract mismatch: katex.min.css is statically imported when the subpath loads, while FR32 and the component documentation promise that the optional peer loads only after mount. Please land the authority separately and move the stylesheet behind the lazy boundary, or revise the contract and packaging model.
PR Analysis Report
Modified ComponentsOutline (@astryxdesign/core)
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Visual Regression3 of 422 shot(s) changed. View the report A change here is a question, not a failure: check whether the after is the
Generated by PR Enrichment workflow | View full report |









User need
Hosts can opt into accessible KaTeX rendering for Markdown math while retaining authored source during SSR, loading, or failure.
Problem and solution fit
Core defines math syntax and a renderer seam but intentionally does not choose a typesetting engine. The adapter supplies a safe, independently imported implementation without adding weight or behavior to default Markdown.
Current specification
AST-039 integration boundaries and the Markdown math-renderer contract. Pinned source.
Public delta and caller burden
Export
MarkdownKaTeXandcreateMarkdownKaTeXRenderer(), lazy-load the optional peer, force HTML+MathML with non-trusting settings, preserve source fallback, and emit source-free diagnostics.Design and alternatives
The capability is explicit and opt-in where it changes syntax, rendering, or package weight. Existing defaults and replacement seams remain compatible; broader alternatives stay outside this PR.
Evidence
Real-browser evidence
Focused behavior and compatibility coverage ships with the implementation.
Scope
Testing
pnpm exec vitest run packages/core/src/Markdown packages/core/src/CodeBlock— 37 files, 760 tests.pnpm --filter @astryxdesign/core typecheck.pnpm check:repo.Stack
Previous: #6667 · Next: #6669 · Each PR is intentionally one commit and one primary intent.