2 hours ago · Tech · hide · 0 comments

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…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.