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.
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.
| Link type | Check | Accuracy |
|---|---|---|
[…](#anchor) |
heading slug exists in the document | exact |
[…](./file.md),  |
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.
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).
npm install
npm run install-script # builds and copies into MarkEdit's scripts folderRestart MarkEdit afterwards. Try it on test/fixture.md — it contains one of every problem type.
npm run build # build dist/markedit-link-checker.js
npm run typecheck # type check
npm test # parser unit tests (pure Node, no app needed)
