Skip to content

DIALECT-02: Anchor a section, read it from .anchors

A standalone ^id under a heading binds at section level and surfaces via SectionView.anchors (not byAnchor).

Builds on: DIALECT-01: Anchor a block, resolve it with byAnchor

Commands, code, and output together; comments mark which is which.

release.md
## Overview
^v2-overview
Ships the parser rewrite.
// consume
doc.body.section("Overview").anchors; // ["v2-overview"]
doc.byAnchor("v2-overview"); // undefined — section ids live on .anchors
  • SectionNode.anchors
  • SectionView.anchors
  • Doc.byAnchor (block-scoped)