Skip to content

Available Rules

The --fix option on the command line automatically fixes problems reported by rules which have a wrench 🔧 below.
The rules with the following star ⭐ are included in the plugin.configs.recommended config.

Preference Rules

Rule IDDescriptionFixableRECOMMENDED
markdown-preferences/canonical-code-block-languageenforce canonical language names in code blocks🔧
markdown-preferences/no-text-backslash-linebreakdisallow text backslash at the end of a line.
markdown-preferences/prefer-inline-code-wordsenforce the use of inline code for specific words.🔧
markdown-preferences/prefer-linked-wordsenforce the specified word to be a link.🔧

Stylistic Rules

Rule IDDescriptionFixableRECOMMENDED
markdown-preferences/definitions-lastrequire link definitions and footnote definitions to be placed at the end of the document🔧
markdown-preferences/hard-linebreak-styleenforce consistent hard linebreak style.🔧
markdown-preferences/heading-casingenforce consistent casing in headings.🔧
markdown-preferences/no-laziness-blockquotesdisallow laziness in blockquotes
markdown-preferences/no-multiple-empty-linesdisallow multiple empty lines in Markdown files.🔧
markdown-preferences/no-trailing-spacesdisallow trailing whitespace at the end of lines in Markdown files.🔧
markdown-preferences/prefer-autolinksenforce the use of autolinks for URLs🔧
markdown-preferences/prefer-fenced-code-blocksenforce the use of fenced code blocks over indented code blocks🔧
markdown-preferences/prefer-link-reference-definitionsenforce using link reference definitions instead of inline links🔧
markdown-preferences/sort-definitionsenforce a specific order for link definitions and footnote definitions🔧