Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
@cixzhang — I’d appreciate your feedback on this draft. Focus: Markdown can render GitHub-style footnote references, ordered definitions, and backlinks with page-unique native fragments when explicitly enabled. This is PR 12/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 parser, projection, streaming, localisation, and fallback coverage is substantial, but two issues block approval. The governing footnote module is still draft, so its public implementation cannot clear the authority gate yet. The generated <section> is also not programmatically named, and its visually hidden heading is always h2 even though headingLevelStart is provided. Please land the contract first, wire the section with aria-labelledby, compose the heading level correctly, and add named-region and non-default-level tests.
PR Analysis Report
Modified ComponentsOutline (@astryxdesign/core)
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Visual Regression2 of 422 shot(s) changed. 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
Markdown can render GitHub-style footnote references, ordered definitions, and backlinks with page-unique native fragments when explicitly enabled.
Problem and solution fit
Authors otherwise have to pre-render footnotes or replace Markdown, losing canonical streaming, plugin, Outline, navigation, and theming behavior. Core now implements the accepted opt-in contract while leaving default documents unchanged.
Current specification
The preceding Core footnotes specification and the Markdown component contract. Pinned source.
Public delta and caller burden
Add
footnotes="github"across parser, incremental parsing, transforms, prepared documents, rendering, locale strings, Outline projection, public types, Remark rejection, and theme targets.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: #6666 · Next: #6668 · Each PR is intentionally one commit and one primary intent.