@dxos/app-toolkit - v0.16.0
    Preparing search index...

    Function resolveInternalLink

    • Resolve a browser pathname under the pair-chain URL grammar (UrlPath) to a graph node id, for in-app internal-link click-through (e.g. plugin-markdown's internal markdown links) where only a pathname is on hand rather than an already-parsed pair chain. Only the first plank (id-bearing) pair is resolved — a link always targets a single node, so anything past it (a linked pair, or a second plank copied from a shared deck link) is ignored. Returns Option.none() for a pathname that doesn't parse under the grammar, or whose target pair doesn't resolve to an existing node.

      Parameters

      • builder: GraphBuilder
      • pathname: string

      Returns Effect<Option<string>>