Write content; mdsmith keeps your Markdown neat and consistent — fast enough to stay out of your way. Auto-fix on save, instant navigation, cross-file integrity, and generated sections that keep a single source of truth in sync across files and pipelines.
One static Go binary checks this whole repository in well under a
second. That is an order of magnitude faster than Node
markdownlint. It does more per file than the Rust linters. The
figures are re-measured on every merge and refreshed each release.
See the [latest cross-tool benchmark][bench-live] for the current
per-tool ratios on both corpora.
Why mdsmith
mdsmith is a Markdown linter and formatter written in Go. It
checks style, readability, structure, and cross-file integrity,
and auto-fixes what fixes cleanly. Where markdownlint-compatible
linters stop at per-file style, mdsmith adds the cross-file graph,
generated sections, structure schemas, and readability budgets.
Together they keep a whole docs tree consistent as it grows, so
the same Markdown can drive your README, your docs site, and
downstream pipelines.
Already on markdownlint? mdsmith init --from-markdownlint
converts your config and notes whatever needs review.
One rule engine runs everywhere you work: in CI, in your editor
through mdsmith lsp, and in your coding agent through a Claude
Code plugin. The check that blocks a merge is the same one you see
as you type, so feedback never depends on which tool you opened.
Clean, consistent Markdown
Catch style, formatting, and readability problems on every file.
mdsmith fix rewrites the ones with a single correct fix;
mdsmith check is the read-only gate for CI.
Auto-fix Markdown formatting.mdsmith fix rewrites whitespace, headings, code fences, bare
URLs, list indentation, and table alignment in place, looping
until edits stabilize. mdsmith check runs the same rules
read-only for CI.
Conventions and flavors.
Pin one convention to apply a curated rule preset and a target
renderer flavor together. MDS034 flags syntax the flavor will
not render; a placeholder vocabulary leaves template tokens like
{name} alone.
Size and readability limits.
Cap file, section, and token-budget size, enforce a reading grade
and sentence count, and flag verbatim copy-paste between files.
Three rules ship on by default; two are opt-in.
One engine, every surface
The same engine runs in CI, in your editor, and in your coding
agent, from one fast static binary you can install through any
channel.
Editors and agents.
A bundled VS Code extension and a Claude Code plugin drive the
same mdsmith lsp server, so diagnostics, fix-on-save, and
navigation reach your editor and your agent with no separate
install. The .vsix is republished to Open VSX for Cursor,
VSCodium, and Theia.
Live diagnostics wherever you write.mdsmith lsp serves diagnostics, quick-fixes, and navigation
(definition, references, symbol search, and a call hierarchy) to
any LSP-aware editor over stdio.
Fast on every run.
One static Go binary, no runtime to start. The workspace walk runs
across all cores, and includes are linted once. A full check of
this repository's Markdown takes about 0.5 s, an order of
magnitude faster than Node markdownlint.
Installs everywhere.
The same version-stamped binary ships through go install, npm,
pip, uvx, Homebrew, mise, asdf, and GitHub Releases. No
postinstall network call, so locked-down CI installs offline.
A connected docs tree
mdsmith reads the links, includes, and headings that tie your
files together, so a rename or a move never strands a reference.