MDash
By Mohammad AniniLast Updated

Link Analysis

Use Link Analysis to review how your notes connect and repair missing or ambiguous destinations. Analyze one file before sharing it, a project folder after importing it, or the entire vault before reorganizing your collection.

Table of Contents

Open a Report

  1. Open a file or folder's menu in the Vault panel or Vault Organizer, then choose Analyze Links. A file's tab menu offers the same action.
  2. For the complete vault, open Vault Options (⋯) in the Vault panel and choose Analyze Links.
  3. Check the location at the top of Link Analysis. Folder reports include their subfolders.
  4. Start with Internal → Unresolved, the default view, to find destinations that need attention.

You can also choose Analyze Links in the Links panel to open the report with that panel's category and filter.

Analysis reads Markdown source in your browser. It excludes Trash and resolves destinations against the whole live vault, even when the report covers one file or folder. It does not modify documents until you explicitly repair a link or create a missing file.

Link Analysis showing unresolved internal links grouped by source file, with explanations for invalid paths and folder destinations.

Choose a Report View

ViewWhat It ShowsA Useful Question
InternalWiki-links and file links in the selected Markdown filesDo these project notes point to the intended files?
BacklinksIncoming links from Markdown files outside the selected locationWhich other notes refer to this file or project folder?
ExternalWeb URLs authored in the selected Markdown filesWhich websites does this document reference?

Outgoing Internal and External analysis scans Markdown files only. Backlinks can target supported code or text files as well as Markdown. For example, analyze Project/src/app.js and choose Backlinks to find notes referring to the script.

Folder backlinks come from outside that folder and its descendants. Links between two files inside the folder appear under Internal. Vault-wide Backlinks is unavailable because there is no outside-vault source set to report; use Internal for the vault's connections.

Counts represent link occurrences, so three links to the same file count as three. Folder and vault results group occurrences by source file. Backlinks may continue calculating while Internal and External results are already available.

Find Destinations That Need Attention

Use Filter Files or Links to search source filenames, destinations, paths, or occurrence context. Internal also offers these filters when their reasons are present:

FilterMeaningWhat to Check
All LinksEvery internal occurrence in the selected locationThe complete set of connections
UnresolvedMissing, ambiguous, or invalid destinationsLinks that need investigation
Missing FilesNo live file matches the destinationSpelling, location, or a file in Trash
Ambiguous TargetsMore than one file matches a short destinationDuplicate filenames in different folders
Invalid LinksThe destination is invalid, such as a path that points to a folderWhether the link names a file
Invalid PathsThe path is malformed or attempts to leave the vaultTrailing slashes and extra parent segments

The selected reason remains available after repairs, even if no remaining occurrence matches it. Clear the text filter or choose All Links when you want to see the full report again.

To see where a link was written, choose the numbered preview beneath it to use View in File. After editing the link, choose Refresh Results if the report is still open.

Suppose the vault contains both of these files:

Interviews/Summary.md
Planning/Summary.md

An editable file named Brief.md contains:

Read [[Summary|the interview findings]] before planning the next release.

The visible label is meaningful, but the short destination matches both files. To make the connection precise:

  1. Analyze Brief.md or its containing folder.
  2. In Internal, choose Ambiguous Targets, or keep Unresolved selected.
  3. Select Choose File on the unresolved result.
  4. Select Interviews/Summary.md and review the complete proposed destination.
  5. Choose Update Link.

The repaired wiki-link uses an explicit vault-root path:

Read [[/Interviews/Summary.md|the interview findings]] before planning the next release.

Repair changes the destination while preserving the label, alias, title, and heading fragment when present. For a Markdown reference used more than once, the dialog explains when updating one shared reference affects several occurrences.

The report refreshes after a repair and offers Undo while the source still matches that change. If the source has changed since analysis, MDash requires a fresh review instead of applying an outdated edit. Read-only bundled documents cannot be repaired directly; copy them into a writable folder first.

Fix an Invalid Path

In a vault-root Brief.md, [interview findings](../Interviews/Summary.md) asks MDash to go above the vault. Use [interview findings](Interviews/Summary.md) to point to the file inside it. A link to Interviews/ points to the folder itself. Add Summary.md to target the note.

Create a Missing File

For an eligible missing destination, open its issue and choose Create File. Review the complete destination before confirming. MDash can create missing parent folders as part of this action.

For example, add [[./Release Checklist|the release checklist]] to an editable Markdown file. If the checklist is missing, Create File creates Release Checklist.md in the same folder as the source file.

An extensionless wiki-link such as [[New Note]] creates New Note.md at the vault root. An explicit supported extension is preserved, so a link to Project/src/app.js creates an empty JavaScript file. Ordinary relative links keep their exact filenames.

Creation requires a valid path to a writable location and a supported file format. If the file already exists somewhere else, use View in File and update the link to point there. Restore a file from Trash if it is the intended destination.

Inspect an Occurrence

Choose a resolved destination to open its file. Choose the numbered preview beneath a result to use View in File and see where that occurrence was authored. Backlink previews take you to the referring file.

View in File preserves the file's current or remembered view. Editor reveals the source range, Preview reveals the rendered occurrence or containing block, and Split or Stacked reveals both panes. This helps you check the sentence around a link before changing its destination.

The results also support keyboard navigation:

  • Press Tab to enter the results.
  • Use Up Arrow and Down Arrow to move between occurrences.
  • Use Left Arrow and Right Arrow to choose a result's action.
  • Press Enter or Space to activate it.
  • Use Home or End to reach the first or last occurrence, including results outside the current scroll window.
  • Press Tab or Shift + Tab to leave the results.

Refresh or Cancel Analysis

Reports describe the files captured when analysis began. If files change afterward, Refresh Results appears beside the location. Repairing a link or creating its target refreshes the report automatically.

Use Cancel Analysis to stop an unfinished scan. Choose Retry after a canceled or failed analysis. Closing the dialog also stops unfinished work. Opening Properties or starting MDash does not automatically launch a vault-wide analysis.

Understand the Scope

Link Analysis reads links in Markdown files. This includes wiki-links, inline and reference-style links, web URLs recognized by Markdown, and HTML links such as <a href="Plan.md">. It checks file destinations:

  • It does not request external websites or check whether a web URL is reachable.
  • It does not validate heading fragments. A resolved file can still have a missing or renamed heading. A wiki-link such as [[#Next Steps]] can be reported as invalid because it has no file destination, even though it works in the shared reader. Use an ordinary Markdown link such as [Next Steps](#next-steps) for headings in the same document. These links are outside the report.
  • It does not scan arbitrary links inside code, configuration files, or fenced code examples.
  • It does not inspect Markdown image references or check whether image files are available.
  • It does not include Trash or files outside the vault.
  • A shared URL includes one document. A valid local connection does not package its destination into the share.