An ESLint plugin for linting and fixing Markdown files using remark-lint under the hood. Version 1.0.19 is the latest stable release, with no regular release cadence. Unlike eslint-plugin-markdown (which only lints JavaScript inside markdown), eslint-plugin-md lints the markdown content itself, supporting style enforcement and integration with prettier. It provides a single ESLint rule 'md/remark' that wraps remark-lint rules, and requires a custom parser 'markdown-eslint-parser'.
npm install eslint-plugin-mdVerified import paths — ran on the pinned version, not inferred.
Minimal setup to lint markdown files with default remark rules using eslint-plugin-md.
Add --ext js,md to eslint command or set eslint.validate to ['markdown'] in VSCode settings.
Use overrides with files: ['*.md'] and parser: 'markdown-eslint-parser' inside that override.
Configure rule as 'md/remark': ['error', { /* remark options */ }].Add an override for files: ['*.md.js'] to apply different rules for JS snippets inside markdown.
Run npm install eslint-plugin-md --save-dev and ensure extends includes 'plugin:md/recommended'.
Set rule as 'md/remark': ['error', { /* options */ }] (array with two elements).Run npm install markdown-eslint-parser --save-dev.