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 ID | Description | Fixable | Config |
---|---|---|---|
markdown-preferences/canonical-code-block-language | enforce canonical language names in code blocks | 🔧 | |
markdown-preferences/emoji-notation | enforce consistent emoji notation style in Markdown files. | 🔧 | |
markdown-preferences/heading-casing | enforce consistent casing in headings. | 🔧 | |
markdown-preferences/ordered-list-marker-start | enforce that ordered list markers start with 1 or 0 | 🔧 | 💄 |
markdown-preferences/prefer-inline-code-words | enforce the use of inline code for specific words. | 🔧 | |
markdown-preferences/prefer-linked-words | enforce the specified word to be a link. | 🔧 | |
markdown-preferences/table-header-casing | enforce consistent casing in table header cells. | 🔧 |
Stylistic Rules
- Rules related to the formatting and visual style of Markdown.
Rule ID | Description | Fixable | Config |
---|---|---|---|
markdown-preferences/atx-heading-closing-sequence-length | enforce consistent length for the closing sequence (trailing #s) in ATX headings. | 🔧 | 💄 |
markdown-preferences/atx-heading-closing-sequence | enforce consistent use of closing sequence in ATX headings. | 🔧 | 💄 |
markdown-preferences/blockquote-marker-alignment | enforce consistent alignment of blockquote markers | 🔧 | ⭐💄 |
markdown-preferences/bullet-list-marker-style | enforce consistent bullet list (unordered list) marker style | 🔧 | 💄 |
markdown-preferences/code-fence-length | enforce consistent code fence length in fenced code blocks. | 🔧 | 💄 |
markdown-preferences/code-fence-style | enforce a consistent code fence style (backtick or tilde) in Markdown fenced code blocks. | 🔧 | 💄 |
markdown-preferences/definitions-last | require link definitions and footnote definitions to be placed at the end of the document | 🔧 | |
markdown-preferences/emphasis-delimiters-style | enforce a consistent delimiter style for emphasis and strong emphasis | 🔧 | 💄 |
markdown-preferences/hard-linebreak-style | enforce consistent hard linebreak style. | 🔧 | ⭐💄 |
markdown-preferences/level1-heading-style | enforce consistent style for level 1 headings | 🔧 | 💄 |
markdown-preferences/level2-heading-style | enforce consistent style for level 2 headings | 🔧 | 💄 |
markdown-preferences/list-marker-alignment | enforce consistent alignment of list markers | 🔧 | ⭐💄 |
markdown-preferences/no-laziness-blockquotes | disallow laziness in blockquotes | ⭐💄 | |
markdown-preferences/no-multi-spaces | disallow multiple spaces | 🔧 | 💄 |
markdown-preferences/no-multiple-empty-lines | disallow multiple empty lines in Markdown files. | 🔧 | 💄 |
markdown-preferences/no-text-backslash-linebreak | disallow text backslash at the end of a line. | ⭐💄 | |
markdown-preferences/no-trailing-spaces | disallow trailing whitespace at the end of lines in Markdown files. | 🔧 | 💄 |
markdown-preferences/ordered-list-marker-sequence | enforce that ordered list markers use sequential numbers | 🔧 | 💄 |
markdown-preferences/ordered-list-marker-style | enforce consistent ordered list marker style | 🔧 | 💄 |
markdown-preferences/padding-line-between-blocks | require or disallow padding lines between blocks | 🔧 | 💄 |
markdown-preferences/prefer-autolinks | enforce the use of autolinks for URLs | 🔧 | ⭐💄 |
markdown-preferences/prefer-fenced-code-blocks | enforce the use of fenced code blocks over indented code blocks | 🔧 | ⭐💄 |
markdown-preferences/prefer-link-reference-definitions | enforce using link reference definitions instead of inline links | 🔧 | |
markdown-preferences/setext-heading-underline-length | enforce setext heading underline length | 🔧 | 💄 |
markdown-preferences/sort-definitions | enforce a specific order for link definitions and footnote definitions | 🔧 | 💄 |
markdown-preferences/strikethrough-delimiters-style | enforce a consistent delimiter style for strikethrough | 🔧 | 💄 |
markdown-preferences/thematic-break-character-style | enforce consistent character style for thematic breaks (horizontal rules) in Markdown. | 🔧 | 💄 |
markdown-preferences/thematic-break-length | enforce consistent length for thematic breaks (horizontal rules) in Markdown. | 🔧 | 💄 |
markdown-preferences/thematic-break-sequence-pattern | enforce consistent repeating patterns for thematic breaks (horizontal rules) in Markdown. | 🔧 | 💄 |