Markdown Linter Online
Lint Markdown with the markdownlint rules (MD001–MD060), auto-fix what can be fixed, generate a table of contents and find broken internal links.
Result
Press “Run” to see the result.
Send Markdown as markdown, a file, a URL (e.g. a raw README) or a .zip of docs. You get every problem from markdownlint's rule set — heading levels, list indentation and style, line length, blank lines around headings / lists / fences, bare URLs, empty links, images without alt, code blocks without a language, link fragments… — with line, column, rule id and alias, description and a link to the rule docs. Configure with config (the usual .markdownlint.json object), preset=relaxed, disable / enable lists or line_length.
fix=1 applies every automatic fix (repeated until stable) and returns the fixed text plus what remains. toc=1 builds a table of contents with GitHub-style anchors (toc_min / toc_max levels) and, with insert_toc=1 or fix=1, writes it between <!-- toc --> and <!-- tocstop --> markers. Internal links are checked: #anchors against the headings (with GitHub duplicate suffixes) and explicit ids, undefined reference links, and — for a ZIP — relative links to files and to headings inside other files.
Uses markdownlint (MIT). Custom JavaScript rules are not accepted.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/markdown-lint" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"markdown":"# Project\n\n<!-- toc -->\n<!-- tocstop -->\n\n## Install\nRun it:\n```\nnpm i\n```\n## Usage\nSee [install](#install) and [api](#api).\n","fix":true,"toc":true}'const res = await fetch('https://apibox.io.vn/v1/markdown-lint', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"markdown": "# Project\n\n<!-- toc -->\n<!-- tocstop -->\n\n## Install\nRun it:\n```\nnpm i\n```\n## Usage\nSee [install](#install) and [api](#api).\n",
"fix": true,
"toc": true
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/markdown-lint",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"markdown": "# Project\n\n<!-- toc -->\n<!-- tocstop -->\n\n## Install\nRun it:\n```\nnpm i\n```\n## Usage\nSee [install](#install) and [api](#api).\n", "fix": True, "toc": True},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/markdown-lint');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"markdown":"# Project\\n\\n<!-- toc -->\\n<!-- tocstop -->\\n\\n## Install\\nRun it:\\n```\\nnpm i\\n```\\n## Usage\\nSee [install](#install) and [api](#api).\\n","fix":true,"toc":true}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Which rules are applied?
All markdownlint rules (MD001–MD060) with their defaults; pass a config object like your .markdownlint.json or preset=relaxed for prose-friendly settings.
Are the line numbers from my original text?
Yes, unless fix=1 or a TOC was inserted: then they refer to the returned fixed text.
Can I lint a whole docs folder?
Yes, upload it as a ZIP (up to 300 Markdown files); links between files are checked too.