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: Record the exact opt-in grammar, identity, navigation, degradation, and ownership contract required before Core ships footnotes. This is PR 11/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.
The proposed contract is coherent and appropriately scoped: footnotes remain explicit and Core-owned, unresolved or duplicate source stays readable, identity and native navigation are centralised, and the verification map covers parser, rendering, streaming, prepared-document, and Remark behaviour. I found no technical issue in this spec delta. Because the module remains authority: draft, it still needs owner acceptance and promotion to current authority before the implementation PR can be approved.
Exact decision needed
Record the exact opt-in grammar, identity, navigation, degradation, and ownership contract required before Core ships footnotes.
Existing authority searched
Existing Markdown, navigation-destination, extension-protocol, and public-API records were searched; this record owns only Core footnote behavior. The affected Markdown paths, exported syntax families, navigation rules, plugin ownership, and open Markdown work were checked before drafting.
Decision
Define
footnotes="github", page-unique native fragment graphs, ordered definitions, repeated-reference backlinks, parser families, transform ownership, prepared/streamed behavior, Remark boundaries, and explicit non-goals.Rejected alternatives
Implicit footnotes, raw HTML, page-global registries, plugin-forged Core semantics, and enabling the feature through presentation variants are rejected.
Claim scope and non-goals
The record owns only Core footnote behavior. Citation syntax, arbitrary HTML notes, generic cross-document registries, and unrelated Markdown grammar remain outside scope.
Evidence and implementation relationship
The next stacked PR implements the contract with parser, incremental, protocol, projection, rendering, public-type, Remark, Outline, locale, and Storybook coverage.
Functional evidence
This change is intentionally nonvisual; a pixel comparison would be misleading.
check:knowledgeand the subsequent implementation PR provide the evidence.Scope
Validation
pnpm check:knowledge, Prettier, andgit diff --check.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: #6665 · Next: #6667 · Each PR is intentionally one commit and one primary intent.