A Node.js style checker and lint tool for Markdown and CommonMark files
open sourceMITfree
A static analysis library for Node.js with a set of rules that keep Markdown files consistent and avoid constructs that don't work in every parser (heading styles, list indentation, line length, bare URLs and so on). It parses with micromark, follows the CommonMark specification and supports GitHub Flavored Markdown syntax such as autolinks and tables, plus directives, footnotes and math. It was inspired by the Ruby markdownlint, whose rules it started from. Its author's markdownlint-cli2 and the VS Code extension are built on it. MIT licensed.
Problems it solves
- keep the Markdown files in our docs consistent
- catch Markdown formatting mistakes in CI
- enforce one heading and list style across a repository's README files
Features
- a library of rules for Markdown style and consistency
- CommonMark parsing with micromark
- GitHub Flavored Markdown, directives, footnotes and math
- used by markdownlint-cli2, a GitHub Action and the VS Code extension
Limitations
- Inline directives are not supported1
Alternatives
The same job
These do what markdownlint does.
- PHP_CodeSniffer Detect and fix coding standard violations in PHP
