Function resolveLinkTarget

  • Resolve a raw link target (a wikilink target or an in-app href's path half — fragment already split off) to an absolute filesystem path. THE shared resolver: the default WikiLink, the markdown a override, and safe-content consumers all route through this one function so the two render pipelines cannot drift.

    Parameters

    • raw: string
    • Optionalopts: { bundleChrooted?: boolean; corpusRoot?: null | string; currentFile?: string }
      • OptionalbundleChrooted?: boolean

        See LinkSpace.bundleChrooted. Under a bundle-chroot'd grant $fs: resolves in the corpus space, because they are the same space.

      • OptionalcorpusRoot?: null | string
      • OptionalcurrentFile?: string

    Returns ResolvedLinkTarget