# Introducing Markdownlint Spellcheck

DevFeed: [Introducing Markdownlint Spellcheck](<https://devfeed.tech/articles/introducing-markdownlint-spellcheck-96431.md>)

Original publisher: [Read original article](<https://code.dblock.org/2026/10/22/introducing-markdownlint-rule-spellcheck.html>)

Author: Daniel Doubrovkine (dblock@dblock.org)

Published: 2026-10-22T00:00:00Z

Content type: release

Language: en

Sources: [Daniel Doubrovkine](<https://devfeed.tech/sources/daniel-doubrovkine.md>)

Topics: [Documentation](<https://devfeed.tech/topics/documentation.md>), [npm](<https://devfeed.tech/topics/npm.md>), [npm packages](<https://devfeed.tech/topics/npm-packages.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [english](<https://devfeed.tech/tags/english.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [jekyll](<https://devfeed.tech/tags/jekyll.md>), [liquid](<https://devfeed.tech/tags/liquid.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [npm](<https://devfeed.tech/tags/npm.md>), [npx](<https://devfeed.tech/tags/npx.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [rust](<https://devfeed.tech/tags/rust.md>), [technical-documentation](<https://devfeed.tech/tags/technical-documentation.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

markdownlint-rule-spellcheck 0.1.0 adds CSpell-powered spelling checks to Markdown through markdownlint-cli2, requires Node.js 22.18 or later, and includes American English without a separate dictionary or system spelling package. It checks headings, paragraphs, lists, tables, link labels, image descriptions, and--by default--YAML front matter; it skips code, links' destinations, URLs, email addresses, and Liquid tags and expressions. Project vocabulary can be collected, reviewed for typos, and added to a custom dictionary. Autocorrection is opt-in and only applies when the first suggestion is one edit away; the excerpt recommends reviewing changes because a correctly spelled suggestion may still be the wrong word. Checking front matter requires a markdownlint-cli2 setting that leaves it visible to custom rules, which can also expose it to other Markdown rules, or front matter checking can be disabled.

## Source excerpt

After RuboCop spelling checks for Ruby and Dylint spelling checks for Rust, here's the version that doesn't require either language's toolchain. Introducing markdownlint-rule-spellcheck, a custom markdownlint rule powered by CSpell. Released 0.1.0 checks Markdown prose, suggests corrections, and ships American English through its dependencies. No separate dictionary download or system spelling package is required. Getting Started Requires Node.js 22.18 or later. Install the rule and the command-line runner: npm install --save-dev markdownlint-cli2 markdownlint-rule-spellcheck@0.1.0 Add .markdownlint-cli2.jsonc: { "customRules": ["markdownlint-rule-spellcheck"] } Given example.md: # Say helo to the world Run: npx markdownlint-cli2 example.md The spelling diagnostic includes the original line and column: example.md:1:7 error spellcheck Prose words should be spelled correctly [Misspelled word: "helo". Suggestions: hello, helio, halo.] Headings, paragraphs, lists, tables, link labels, and image descriptions are checked. Code, link destinations, URLs, and email addresses are skipped. Liquid expressions and tags are skipped too, which matters for Jekyll sites like this one. Accepting Project Vocabulary Technical documentation contains legitimate words that aren't in an English dictionary. Collect candidates, review them, and add the accepted words: npx markdownlint-rule-spellcheck collect "**/*.md" --output .spellcheck.txt # Edit .spellcheck.txt: remove actual typos. npx markdownlint-rule-spellcheck add ./.spellcheck.txt npx markdownlint-cli2 "**/*.md" The add command updates .markdownlint.json, preserving existing settings. Its dictionary configuration looks like this: { "spellcheck": { "dictionaries": { "en": ["@cspell/dict-en_us", "./.spellcheck.txt"] } } } Corrections and Front Matter Corrections are opt-in. Set "autocorrect": true inside spellcheck, then run: npx markdownlint-cli2 --fix "**/*.md" The first suggestion must be one edit away: an insertion, deletion, sub