Markdown Link ResolverNavigate Markdown links like code. Ctrl+Click any link in your Built for Astro-based documentation projects, where links are written as content URLs (e.g. Requirements
FeaturesGo to DefinitionCtrl+Click (or press F12) on any link to jump directly to the file it resolves to. Works with Markdown links, reference-style links, JSX Hover PreviewHover over a link to see the file it resolves to, the URL Astro publishes it at, a preview of the target (or the image itself), and the other files that link to the same page — all without leaving your document. Links that go through a redirect show every hop of the chain. Peek DefinitionPress Alt+F12 to preview the linked file inline, right where you're reading. Real-time DiagnosticsBroken links are underlined as you type, and listed in the Problems panel — so dead links get caught before they ship. Quick Fix SuggestionsWhen a link is broken, click the lightbulb (or press Ctrl+. / Cmd+.) for suggested fixes, ranked by similarity to existing content. CodeLens AnnotationsEvery link shows its resolved destination inline, right above it — or a warning if it can't be resolved. AutocompleteStart typing a URL inside a link, JSX attribute, or frontmatter field, and get autocomplete suggestions from all known permalinks in your project — typos included. Open Page in LocalhostRight-click a content file — or click the Open Page in Localhost lens at the top of it — to open that page in your browser on the local dev server. The extension takes the file's permalink, builds the exact URL Astro publishes it at, and opens it. Collection-routed pages are handled too: a blog post whose published URL adds segments the raw permalink doesn't contain (e.g. The dev server address is worked out for you: no configuration is needed if you just run The entry appears for any file that maps to a permalink, whatever its format — Markdown, MDX, or JSON content pages — and stays hidden on files that don't. Redirect Validation
If your project uses a redirects file, the extension validates entries automatically: flags redirects pointing to broken destinations, duplicate sources, and unnecessary redirects to content that already exists at that URL. When redirect files are found in a workspace with redirects still off, a one-time notification offers to turn them on — closing that notification without choosing doesn't count as "no", so it may ask again later; only explicitly dismissing it ("Don't show again") stops it for good. A redirect JSON file only gets this treatment once the extension's file watcher has discovered it — a brand-new or not-yet-saved redirect file gets no diagnostics, CodeLens, hover, or resolution until it's picked up. ReportsGenerate HTML reports for broken links, permalink usage, and redirect health — handy for a documentation audit or cleanup pass. Monorepo SupportAutomatically detects multiple Astro projects in a single workspace (pnpm, Lerna, Nx, Turborepo) and resolves links across all of them. Astro CMS JSON Content Links (Beta)Validates links and images inside Astro CMS-style JSON content files (schema-driven page structs) — including Getting StartedInstall the extension, then open any Markdown file in an Astro project. The status bar shows indexing progress and switches to Ready once links are resolvable. From there, Ctrl+Click any link to try it out. All commands are available from the Command Palette under the MDLR prefix — including MDLR: List Links, MDLR: Validate Links, and the report commands. ConfigurationMost projects work out of the box with zero configuration — content roots, asset directories, and languages are auto-detected from your Astro config. Common settings you may want to adjust, under
See the full settings list in VS Code's Settings UI by searching for Markdown Link Resolver. SupportFound a bug or have a feature request? Open an issue on the GitHub repository. LicenseProprietary - all rights reserved. See LICENSE. |