Skip to content

spec(Markdown): define Core footnotes - #6666

Closed
ernestt wants to merge 1 commit into
markdown-upgrade/10-heading-permalinksfrom
markdown-upgrade/11-footnote-spec
Closed

ernestt wants to merge 1 commit into
markdown-upgrade/10-heading-permalinksfrom
markdown-upgrade/11-footnote-spec

Conversation

@ernestt

@ernestt ernestt commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • This is a specification-only PR with no runtime pixels; check:knowledge and the subsequent implementation PR provide the evidence.

Scope

  • This PR contains specification records only.
  • It records observable behavior and preserves implementation freedom.
  • It records one durable decision.
  • Public text and artifacts contain no internal context.

Validation

  • Focused: pnpm check:knowledge, Prettier, and git diff --check.
  • Stack head: pnpm exec vitest run packages/core/src/Markdown packages/core/src/CodeBlock — 37 files, 760 tests.
  • Stack head: pnpm --filter @astryxdesign/core typecheck.
  • Repository checks: pnpm check:repo.

Stack

Previous: #6665 · Next: #6667 · Each PR is intentionally one commit and one primary intent.

@vercel

vercel Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Sep 26, 2026 3:09pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 26, 2026
@astracat-bot

astracat-bot Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
📝 Draft — not reviewed automatically (for maintainers only) Sep 28, 2026, 6:30 PM UTC

@ernestt

ernestt commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

@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 humbertovirtudes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Sep 27, 2026
@ernestt
ernestt added this pull request to stack #6700 September 28, 2026 18:02
@github-actions
github-actions Bot deleted the branch markdown-upgrade/10-heading-permalinks October 4, 2026 08:06
@ernestt ernestt closed this Oct 9, 2026
@github-actions
github-actions Bot deleted the markdown-upgrade/11-footnote-spec branch October 10, 2026 06:22

This branch was successfully deployed

1 active deployment
Preview — 8a3c380e Deployed Sep 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. needs:spec-owner-review Current knowledge records await owner approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants