Navigating to anchors

Why does editor.navigate("$my-anchor") not resolve the anchor and navigate to the anchored object? It seems like it should given you can click a link like this: [[$my-anchor]]

And on the topic, why does that link [[$my-anchor]] not work if it transcluded?

This link to `$my-anchor` works:
- [ ] A link to [[$my-anchor]] $weird-link

This transcluded link to `$my-anchor` doesn't work:
![[$weird-link]]

I've at least gotten around the editor API limitation by using the following function, but the transclusions just seem broken.

function editor.navigateToAnchor(anchor, page)
  if string.startsWith(anchor, "$") then
    anchor = string.sub(anchor, 2)
  end
  local res = index.resolveAnchor(anchor, page)
  if res and res.page then
    local ref = res.page .. "@" .. tostring(res.range[1])
    editor.navigate(ref)
  else
    editor.flashNotification("Failed to resolve anchor: $" .. anchor, "error")
  end
end

This is a bug.

I think I fixed this now on main.