DIALECT-02: Anchor a section, read it from .anchors
What it demonstrates
Section titled “What it demonstrates”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
How it’s done
Section titled “How it’s done”Commands, code, and output together; comments mark which is which.
## Overview^v2-overview
Ships the parser rewrite.
// consumedoc.body.section("Overview").anchors; // ["v2-overview"]doc.byAnchor("v2-overview"); // undefined — section ids live on .anchorsSurfaces exercised
Section titled “Surfaces exercised”SectionNode.anchorsSectionView.anchorsDoc.byAnchor (block-scoped)