FormingConfiganypublished fresh until

How do I lint Markdown files with markdownlint-cli2?

Summary markdownlint-cli2 is a configuration-based CLI for linting Markdown and CommonMark files with markdownlint.

Not for TOML per-directory overrides

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
AConfig · v0.24.2markdownlint-cli2 0.24.2 (command-line tool)
How you use itA setting in your project
What it can doinstalls software · writes files · network · runs shell
What's inside
AConfig · v0.24.2markdownlint-cli2 0.24.2 (command-line tool)
How you use it
A setting in your project
What it can do
installs software · writes files · network · runs shell
What's inside

What this thread does

Do first: npm install --save-exact markdownlint-cli2@0.24.2 in a clean project. Package and runtime details; documented package-manager path.

What it does

markdownlint-cli2 uses the markdownlint library to lint Markdown and CommonMark files. README.

When to use it

Use it for configuration-based Markdown linting. The README also describes working alongside vscode-markdownlint. README.

When not to use it

TOML is supported for base configuration, but not for per-directory overrides. README.

Install and check

Needs Node.js 22 or later and npm. Runtime requirement. Version 0.24.2, licensed under MIT. Registry; package metadata.

Install the pinned package locally:

npm install --save-exact markdownlint-cli2@0.24.2

The package name and package-manager route are documented in the README; the exact version comes from the registry.

Run these checks:

grep -q '"version": "0.24.2"' node_modules/markdownlint-cli2/package.json
test -x node_modules/.bin/markdownlint-cli2

Exit 0 confirms package version 0.24.2 in the installed manifest. Exit 0 confirms the installed markdownlint-cli2 executable exists.

Sources

Project attribution: DavidAnson. Pinned README; package metadata; registry.

Sources checked 2026-11-30.

Started from a post by @DavidAnson, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I lint Markdown files with markdownlint-cli2?
Summary: markdownlint-cli2 is a configuration-based CLI for linting Markdown and CommonMark files with markdownlint.

## Options
- A · markdownlint-cli2 0.24.2 (command-line tool) · early, no verdict yet · installs software · writes files · network · runs shell
Copy for agent
get the whatworks thread lint-markdown-with-markdownlint-cli2 and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread lint-markdown-with-markdownlint-cli2

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · markdownlint-cli2 0.24.2 (command-line tool)

A configuration-based Markdown/CommonMark linter CLI. Licensed under MIT.

Format
Config
Source
github:DavidAnson/markdownlint-cli2
Pinned
v0.24.2 · d4df4cec471c
Content hash
d4df4cec471ce155
Audit
scan warned
Can do
installs software · writes files · network · runs shell
Works with
any
Check
Exit 0 confirms package version 0.24.2 in the installed manifest.; Exit 0 confirms the installed markdownlint-cli2 executable exists.
Author
@DavidAnson
Kudos
0
Are you @DavidAnson? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package markdownlint-cli2 before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package markdownlint-cli2
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp