Skip to content

Rules

Rule Compatibility Matrix

The following table shows rule availability across mdlint and the Ruby and JavaScript markdownlint implementations. The rule behavior is mostly consistent with that of the markdownlint projects (slight preference to the JavaScript implementation), but may differ slightly over time as the project evolves.

Rule(s) mdlint Ruby markdownlint JS markdownlint Notes
MD001
MD002 Not implemented (use MD041)
MD003–MD005
MD006 Not implemented (use MD007)
MD007
MD008 Not implemented
MD009–MD014
MD015–MD017 Not implemented
MD018–MD041
MD042–MD045
MD046–MD047
MD048–MD056
MD057 Not implemented
MD058–MD060

Available Rules

This is a list of all available rules.

Rule Name Summary Fixable
MD001 heading-increment Heading levels should only increment by one level at a time ✓ Yes
MD003 heading-style Heading style should be consistent ✓ Yes
MD004 ul-style Unordered list style should be consistent ✓ Yes
MD005 list-indent List item indentation should be consistent ✓ Yes
MD007 ul-indent Unordered list indentation ✓ Yes
MD009 no-trailing-spaces No trailing spaces ✓ Yes
MD010 no-hard-tabs No hard tabs ✓ Yes
MD011 no-reversed-links Reversed link syntax ✓ Yes
MD012 no-multiple-blanks No multiple consecutive blank lines ✓ Yes
MD013 line-length Line length ✘ No
MD014 commands-show-output Dollar signs used before commands without showing output ✓ Yes
MD018 no-missing-space-atx No space after hash on atx style heading ✓ Yes
MD019 no-multiple-space-atx Multiple spaces after hash on ATX style heading ✓ Yes
MD020 no-missing-space-closed-atx No space inside hashes on closed ATX style heading ✓ Yes
MD021 no-multiple-space-closed-atx Multiple spaces inside hashes on closed ATX style heading ✓ Yes
MD022 blanks-around-headings Headings should be surrounded by blank lines ✓ Yes
MD023 heading-start-left Headings must start at the beginning of the line ✓ Yes
MD024 no-duplicate-heading Headings should have unique content ✘ No
MD025 single-title Multiple top-level headings in the same document ✘ No
MD026 no-trailing-punctuation Trailing punctuation in heading ✓ Yes
MD027 no-multiple-space-blockquote Multiple spaces after blockquote symbol ✓ Yes
MD028 no-blanks-blockquote Blank line inside blockquote ✓ Yes
MD029 ol-prefix Ordered list item prefix should be consistent ✓ Yes
MD030 list-marker-space Spaces after list markers ✓ Yes
MD031 blanks-around-fences Fenced code blocks should be surrounded by blank lines ✓ Yes
MD032 blanks-around-lists Lists should be surrounded by blank lines ✓ Yes
MD033 no-inline-html Inline HTML ✘ No
MD034 no-bare-urls Bare URL used ✓ Yes
MD035 hr-style Horizontal rule style should be consistent ✓ Yes
MD036 no-emphasis-as-heading Emphasis used instead of a heading ✘ No
MD037 no-space-in-emphasis Spaces inside emphasis markers ✓ Yes
MD038 no-space-in-code Spaces inside code span elements ✓ Yes
MD039 no-space-in-links Spaces inside link text ✓ Yes
MD040 fenced-code-language Fenced code blocks should have a language identifier specified ✘ No
MD041 first-line-heading First line in a file should be a top-level heading ✘ No
MD042 no-empty-links No empty links ✘ No
MD043 required-headings Required heading structure ✘ No
MD044 proper-names Proper names should have correct capitalization ✓ Yes
MD045 no-alt-text Images should have alternate text (alt text) ✘ No
MD046 code-block-style Code block style should be consistent ✓ Yes
MD047 single-trailing-newline Files should end with a single newline character ✓ Yes
MD048 code-fence-style Code fence style should be consistent ✓ Yes
MD049 emphasis-style Emphasis style should be consistent ✓ Yes
MD050 strong-style Strong style should be consistent ✓ Yes
MD051 link-fragments Link fragments should be valid ✓ Yes
MD052 reference-links-images Reference links and images should use a label that is defined ✘ No
MD053 link-image-reference-definitions Link and image reference definitions should be needed ✓ Yes
MD054 link-image-style Link and image style ✘ No
MD055 table-pipe-style Table pipe style should be consistent ✓ Yes
MD056 table-column-count Table column count should be consistent ✘ No
MD058 blanks-around-tables Tables should be surrounded by blank lines ✓ Yes
MD059 descriptive-link-text Link text should be descriptive ✘ No
MD060 table-column-style Table column style should be consistent ✓ Yes