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: Document hosts can opt into localized heading permalink controls whose destinations exactly match Markdown/Outline IDs. This is PR 10/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.
hasHeadingPermalinks is a new public navigation and accessibility contract, but FR30 is introduced by this implementation PR rather than pre-existing approved authority. Please land that owner decision first. The enabled path also moves the public heading target and reflected state from the semantic heading to a layout wrapper; keep the target on <hN>. Finally, empty headings produce indistinguishable links named “Permalink to ”, including during streaming, so suppress them or define an approved fallback and add coverage.
PR Analysis Report
Modified ComponentsOutline (@astryxdesign/core)
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Visual Regression3 of 420 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 |
|
Thank you, Ernest, for the original direction here. #6911 and #6915 now supersede this draft. The split stack carries forward your core visual and interaction ideas—the inline trailing |









User need
Document hosts can opt into localized heading permalink controls whose destinations exactly match Markdown/Outline IDs.
Problem and solution fit
Hosts could derive an Outline but had no first-party way to expose stable heading links without reproducing slug and collision logic. The opt-in reuses canonical identity and the configured Link provider.
Current specification
The Markdown component contract's heading-permalink clause and shared heading-identity projection. Pinned source.
Public delta and caller burden
Add
hasHeadingPermalinksfor default top-level headings only; custom heading renderers remain full replacements andvariantdoes not enable the feature implicitly.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: #6664 · Next: #6666 · Each PR is intentionally one commit and one primary intent.