Markdown Link Checker
Open a docs folder or ZIP, see every link that points to a missing file, heading or image, apply suggested fixes with undo and download the corrected files.
S'exécute dans votre navigateur. Vos fichiers ne quittent jamais votre appareil. Voir comment vérifier
…
Comment faire
- 1Open the docs
Press Open a folder, or drop Markdown files or a ZIP.
- 2Pick the anchor style
Choose GitHub, GitLab, Bitbucket or plain ASCII.
- 3Read the problems
The table lists file, line, link, status and a note.
- 4Filter
Show one status or search for a file or target.
- 5Fix
Press a suggested fix or Apply all suggested fixes.
- 6Export
Download the CSV report and the corrected files as a ZIP.
À propos de cet outil
Documentation rots one rename at a time. Somebody moves install.md into a guides folder, renames the Requirements heading to System requirements, or saves a screenshot as Logo.PNG while the page asks for logo.png, and links that worked last month now lead to a 404 page or the top of a long document. Link checkers that crawl a live site only find the problem after publishing, and they cannot see anchors that the renderer silently ignores. This checker works on the source files instead. Open a folder, a ZIP of a repository or a few files, and it reads every inline link, image, reference link and definition, autolink and HTML anchor or image tag, skipping anything inside code blocks and inline code. Relative paths are resolved against each file, folder links fall back to README.md or index.md, and links without an extension try the .md file. Anchors are checked against the headings of the target file using the slug rules of GitHub, GitLab, Bitbucket or a plain ASCII style, plus any explicit id or name attributes.
What is reported
Missing file means no file exists at the resolved path. Missing anchor means the file exists but has no heading that produces that anchor. Wrong letter case means the file exists with different capitals, which works on Windows and macOS but fails on Linux servers and in Git. Undefined reference is a link such as [text][id] without a matching definition, and unused definition is the reverse. External links are listed but not fetched, because a web page cannot request other sites without their permission.
Quick fixes
When the answer is clear, the checker suggests it: the correctly cased path, the only file in the folder with that name, or the closest heading anchor, such as #requirements for a link to #requirement. Press the fix in one row or apply all suggestions at once; both can be undone, and Download files saves the corrected Markdown as a ZIP.
Duplicate headings
Two headings with the same text produce anchors such as faq and faq-1. Links to the second copy are easy to get wrong, so the duplicates are listed per file with their line numbers.
Limits
Links built by site generator shortcodes, MDX components or templating are not understood. Anchor rules of a particular renderer can differ in rare cases, such as emoji in headings. Links to files outside the opened folder are reported as missing, so open the repository root. This is not a checker for external URLs.
Exemple concret
A project opens its docs folder: 63 Markdown files, 412 links and 38 images. The checker reports 9 problems: 4 links to docs/Install.md where the file is install.md, 3 anchors pointing to #configuration-options after the heading became Configuration, 1 image path to assets/diagram.svg that was moved to assets/img/diagram.svg, and 1 undefined reference [contrib]. Apply 8 suggested fixes corrects the case, anchor and image links; the missing reference definition is added by hand. A second run shows 0 problems and 2 duplicate FAQ headings to review.
L'essentiel
- Catégorie: Développeur et données
- Fonctionne dans votre navigateur, sans inscription, sans envoi.
- Ce que vous saisissez reste sur votre appareil.
- Disponible en anglais.
- Contenu révisé pour la dernière fois:
- Source officielle: CommonMark 0.31.2 and GitHub Flavored Markdown specifications
Questions fréquentes
How do I check a whole repository?
Press Open a folder and choose the repository root, or drop a ZIP of it. Images and other files in the folder are recorded so image links can be checked too.
Which anchor style should I use?
Use the style of the place where the docs are read: GitHub for GitHub and most editors, GitLab for GitLab, Bitbucket for Bitbucket, and plain ASCII for MkDocs and many static site generators.
Why are external links not checked?
Browsers block a page from reading other websites unless those sites allow it. External links are listed so you can export them and test them with a server-side tool.
Does a case mismatch really matter?
Yes, on Linux web servers and in Git repositories file names are case sensitive, so a link that works on a Windows laptop can break after deployment.
Can I undo a fix?
Every single fix and the Apply all action add a step to the undo history. Undo returns the files to the exact text they had before.
Is my repository uploaded?
No. Files are read into this tab's memory and the last checked set is kept in local storage on this device only.
