markmv - v1.39.2
    Preparing search index...

    Function resolveWikilinks

    • Resolve the wikilinks and embeds in a parsed vault against the whole file set.

      Obsidian resolves [[Note]] by unique basename vault-wide, independent of where either file sits, so resolution needs every note in view: a bare target is matched by stem, an explicit-extension target by filename, and a path-qualified target against the vault root. Successfully resolved links gain resolvedPath and feed the file's dependencies, so the dependency graph treats them like any other inbound reference. Ambiguous bare targets are deliberately left unresolved and reported instead of guessed.

      Parameters

      • files: ParsedMarkdownFile[]

        Every parsed markdown file in the vault

      • vaultRoot: string

        Absolute path of the vault root path-qualified targets resolve against

      Returns ObsidianAmbiguity[]

      Ambiguities encountered: bare targets that matched multiple notes


      if (ambiguities.length > 0) { console.warn('Ambiguous wikilinks:', ambiguities); }