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
- 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.
- For the complete vault, open Vault Options (⋯) in the Vault panel and choose Analyze Links.
- Check the location at the top of Link Analysis. Folder reports include their subfolders.
- 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.

Choose a Report View
| View | What It Shows | A Useful Question |
|---|---|---|
| Internal | Wiki-links and file links in the selected Markdown files | Do these project notes point to the intended files? |
| Backlinks | Incoming links from Markdown files outside the selected location | Which other notes refer to this file or project folder? |
| External | Web URLs authored in the selected Markdown files | Which 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:
| Filter | Meaning | What to Check |
|---|---|---|
| All Links | Every internal occurrence in the selected location | The complete set of connections |
| Unresolved | Missing, ambiguous, or invalid destinations | Links that need investigation |
| Missing Files | No live file matches the destination | Spelling, location, or a file in Trash |
| Ambiguous Targets | More than one file matches a short destination | Duplicate filenames in different folders |
| Invalid Links | The destination is invalid, such as a path that points to a folder | Whether the link names a file |
| Invalid Paths | The path is malformed or attempts to leave the vault | Trailing 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.
Repair an Ambiguous Link
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:
- Analyze
Brief.mdor its containing folder. - In Internal, choose Ambiguous Targets, or keep Unresolved selected.
- Select Choose File on the unresolved result.
- Select
Interviews/Summary.mdand review the complete proposed destination. - 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
Tabto enter the results. - Use
Up ArrowandDown Arrowto move between occurrences. - Use
Left ArrowandRight Arrowto choose a result's action. - Press
EnterorSpaceto activate it. - Use
HomeorEndto reach the first or last occurrence, including results outside the current scroll window. - Press
TaborShift + Tabto 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.