fix(web): block-reference wikilinks ([[Page^id]]) drop the fragment; no block anchors emitted #78
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Block-reference wikilinks (
[[Page^block-id]]) resolve to the target page but the fragment is dropped, and the rendered target page contains no anchor for the block ID — so the block context is lost on click. Heading links already deep-link via#line-Nanchors; block refs don't get the same treatment.Found during UAT of v0.9.3 (
zetl serveon the bundled demo-vault).Reproduction
cd demo-vault && zetl serve --port 3777http://localhost:3777/decisions/deployment-decision/, which contains[[Performance^perf-numbers]](Deployment Decision.md:29).Actual
/architecture/performance/— no fragment at all.Performance.md:20defines^perf-numbers, but the only matching[id]on the rendered page isperformance(the page anchor). So even a hand-written#perf-numbersfragment would not land anywhere.For comparison, heading wikilinks render with a usable line anchor (e.g.
[[Link Graph#...]]→/architecture/link-graph/#line-7), so the anchor infrastructure exists.Expected
[[Page^block-id]]should link to a block anchor (e.g.#line-Nof the block, or anid="block-id"emitted on the block element), matching the heading-link behavior.Environment
zetl 0.9.3,
zetl serve, demo-vault, Chromium 140.