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 ⭐ are included in the plugin.configs.recommended config.
The rules with the following 💄 are included in the plugin.configs.standard config.

Preference Rules

  • Rules to unify the expression and description style of documents.
Rule IDDescriptionFixableConfig
markdown-preferences/canonical-code-block-languageenforce canonical language names in code blocks🔧
markdown-preferences/emoji-notationenforce consistent emoji notation style in Markdown files.🔧
markdown-preferences/heading-casingenforce consistent casing in headings.🔧
markdown-preferences/ordered-list-marker-startenforce that ordered list markers start with 1 or 0🔧💄
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.🔧
markdown-preferences/table-header-casingenforce consistent casing in table header cells.🔧

Stylistic Rules

  • Rules related to the formatting and visual style of Markdown.
Rule IDDescriptionFixableConfig
markdown-preferences/atx-heading-closing-sequence-lengthenforce consistent length for the closing sequence (trailing #s) in ATX headings.🔧💄
markdown-preferences/atx-heading-closing-sequenceenforce consistent use of closing sequence in ATX headings.🔧💄
markdown-preferences/blockquote-marker-alignmentenforce consistent alignment of blockquote markers🔧⭐💄
markdown-preferences/bullet-list-marker-styleenforce consistent bullet list (unordered list) marker style🔧💄
markdown-preferences/code-fence-lengthenforce consistent code fence length in fenced code blocks.🔧💄
markdown-preferences/code-fence-styleenforce a consistent code fence style (backtick or tilde) in Markdown fenced code blocks.🔧💄
markdown-preferences/definitions-lastrequire link definitions and footnote definitions to be placed at the end of the document🔧
markdown-preferences/emphasis-delimiters-styleenforce a consistent delimiter style for emphasis and strong emphasis🔧💄
markdown-preferences/hard-linebreak-styleenforce consistent hard linebreak style.🔧⭐💄
markdown-preferences/level1-heading-styleenforce consistent style for level 1 headings🔧💄
markdown-preferences/level2-heading-styleenforce consistent style for level 2 headings🔧💄
markdown-preferences/list-marker-alignmentenforce consistent alignment of list markers🔧⭐💄
markdown-preferences/no-laziness-blockquotesdisallow laziness in blockquotes⭐💄
markdown-preferences/no-multi-spacesdisallow multiple spaces🔧💄
markdown-preferences/no-multiple-empty-linesdisallow multiple empty lines in Markdown files.🔧💄
markdown-preferences/no-text-backslash-linebreakdisallow text backslash at the end of a line.⭐💄
markdown-preferences/no-trailing-spacesdisallow trailing whitespace at the end of lines in Markdown files.🔧💄
markdown-preferences/ordered-list-marker-sequenceenforce that ordered list markers use sequential numbers🔧💄
markdown-preferences/ordered-list-marker-styleenforce consistent ordered list marker style🔧💄
markdown-preferences/padding-line-between-blocksrequire or disallow padding lines between blocks🔧💄
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/setext-heading-underline-lengthenforce setext heading underline length🔧💄
markdown-preferences/sort-definitionsenforce a specific order for link definitions and footnote definitions🔧💄
markdown-preferences/strikethrough-delimiters-styleenforce a consistent delimiter style for strikethrough🔧💄
markdown-preferences/thematic-break-character-styleenforce consistent character style for thematic breaks (horizontal rules) in Markdown.🔧💄
markdown-preferences/thematic-break-lengthenforce consistent length for thematic breaks (horizontal rules) in Markdown.🔧💄
markdown-preferences/thematic-break-sequence-patternenforce consistent repeating patterns for thematic breaks (horizontal rules) in Markdown.🔧💄