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: Rendered heading IDs and Outline links remain identical for duplicate, Unicode, transformed, and streamed headings. This is PR 3/20 in the linked Markdown stack. It is intentionally one commit and one primary intent; the description includes focused functional evidence and previous/next links, so you can review just this PR’s delta. |
humbertovirtudes
left a comment
There was a problem hiding this comment.
This cleanly centralises Markdown and Outline heading projection, including Unicode normalisation, collision-safe IDs, parser options, plugins, and finality. The regression coverage exercises rendered IDs, public Outline output, and hook invalidation. I found no correctness, accessibility, React, complexity, or API-shape issues.
PR Analysis Report
Modified ComponentsOutline (@astryxdesign/core)
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Visual Regression1 of 420 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 impact
Rendered heading IDs and Outline links remain identical for duplicate, Unicode, transformed, and streamed headings.
Problem and solution fit
Markdown and Outline previously projected heading text and collision suffixes through separate paths, allowing identity drift as plugin transformations evolved. The fix shares one canonical projection and slug allocation path.
Expected behavior and authority
The Markdown/Outline heading-identity contract and AST-036 transform rules. Pinned source.
Smallest restoration
Reuse the canonical heading projection for rendering and Outline extraction without changing default heading markup.
Evidence
Functional evidence
This change is intentionally nonvisual; a pixel comparison would be misleading.
Exact DOM IDs, Outline hrefs, Unicode normalization, and collision suffixes are asserted equal in focused tests.
Representative unchanged paths are covered by focused regression tests.
Mutation-sensitive proof is included 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: #6657 · Next: #6659 · Each PR is intentionally one commit and one primary intent.