Skip to content

About

MarkEdit extension: find broken links, anchors, and file references in the current document

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

MarkEdit Link Checker

English | Русский

A MarkEdit extension that finds broken links in the current document: dead URLs, missing local files, wrong #anchors, unresolved [[wikilinks]], and reference-style links without definitions.

Check results: underlines and the problem list

Usage

Extensions → Link Checker → Check Links (⌘⇧L). Problems get underlined in the editor — red wavy for broken, yellow dotted for unverifiable — and a summary alert offers a clickable list that jumps to each problem. Clear Highlights removes the underlines; edits keep existing underlines anchored to their links.

The Link Checker menu

What gets checked

Link type Check Accuracy
[…](#anchor) heading slug exists in the document exact
[…](./file.md), ![](img.png) file exists (via MarkEdit API) exact
[[Wikilink]] note exists in the document's folder exact
[text][ref] reference definition present exact
https://… HTTP status; falls back to a reachability probe see below
mailto: / tel: skipped —

Fenced code blocks and inline code are ignored.

External links

In practice MarkEdit's web view does not restrict cross-origin fetches, so external links get exact HTTP statuses. A CORS fallback still exists just in case: an unreadable response from a live host is marked "unverifiable" (yellow) instead of broken; DNS failure/timeout → broken (red).

Install

npm install
npm run install-script   # builds and copies into MarkEdit's scripts folder

Restart MarkEdit afterwards. Try it on test/fixture.md — it contains one of every problem type.

Development

npm run build       # build dist/markedit-link-checker.js
npm run typecheck   # type check
npm test            # parser unit tests (pure Node, no app needed)

About

MarkEdit extension: find broken links, anchors, and file references in the current document

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages