DIALECT-05: Read heading and anchor fragments
What it demonstrates
Section titled “What it demonstrates”A #heading or #^anchor fragment is parsed out as VaultRef.fragment.
Builds on: DIALECT-03: Extract a bare wikilink
How it’s done
Section titled “How it’s done”A TypeScript program against the library API; inline comments show the resulting values and behavior.
extractVaultRefs("[[Spec#Goals]] then [[Spec#^db-choice]]");// → [{ target: "Spec", fragment: "Goals", kind: "wikilink" },// { target: "Spec", fragment: "^db-choice", kind: "wikilink" }]Surfaces exercised
Section titled “Surfaces exercised”extractVaultRefsVaultRef.fragment (heading and ^anchor forms)