markdownlint rule mapping

June 21, 2026 · View on GitHub

Each row pairs an mdsmith rule with the markdownlint rule or rules it covers, ordered by mdsmith rule id. (partial) marks a mapping that covers only part of the markdownlint check. A markdownlint name follows its id when the two differ.

The table is generated from the markdownlint: front matter in each rule README. mdsmith init --from-markdownlint reads the same data, so the table and the converter cannot drift apart. mdsmith fix regenerates the table.

markdownlintmdsmith
MD013 line-lengthMDS001 line-length
MD003 heading-styleMDS002 heading-style
MD001 heading-incrementMDS003 heading-increment
MD041 first-line-h1MDS004 first-line-heading
MD024 no-duplicate-headingMDS005 no-duplicate-headings
MD009 no-trailing-spacesMDS006 no-trailing-spaces
MD010 no-hard-tabsMDS007 no-hard-tabs
MD012 no-multiple-blanksMDS008 no-multiple-blanks
MD047 single-trailing-newlineMDS009 single-trailing-newline
MD048 code-fence-styleMDS010 fenced-code-style
MD040 fenced-code-languageMDS011 fenced-code-language
MD034 no-bare-urlsMDS012 no-bare-urls
MD022 blanks-around-headingsMDS013 blank-line-around-headings
MD032 blanks-around-listsMDS014 blank-line-around-lists
MD031 blanks-around-fencesMDS015 blank-line-around-fenced-code
MD005 list-indent (partial), MD007 ul-indentMDS016 list-indent
MD026 no-trailing-punctuationMDS017 no-trailing-punctuation-in-heading
MD036 no-emphasis-as-headingMDS018 no-emphasis-as-heading
MD043 required-headingsMDS020 required-structure
MD055 table-pipe-style, MD056 table-column-count (partial), MD058 blanks-around-tablesMDS025 table-format
MD051 link-fragments (partial)MDS027 cross-file-reference-integrity
MD045 no-alt-textMDS032 no-empty-alt-text
MD033 no-inline-htmlMDS041 no-inline-html
MD049 emphasis-style, MD050 strong-styleMDS042 emphasis-style
MD035 hr-styleMDS044 horizontal-rule-style
MD004 ul-styleMDS045 list-marker-style
MD029 ol-prefixMDS046 ordered-list-numbering
MD037 no-space-in-emphasisMDS047 ambiguous-emphasis
MD039 no-space-in-linksMDS049 no-space-in-link-text
MD044 proper-namesMDS050 proper-names
MD025 single-h1MDS051 single-h1
MD038 no-space-in-codeMDS052 no-space-in-code-spans
MD053 link-image-reference-definitionsMDS053 no-unused-link-definitions
MD052 reference-links-imagesMDS054 no-undefined-reference-labels
MD027 no-multiple-space-blockquote, MD028 no-blanks-blockquoteMDS059 blockquote-whitespace
MD030 list-marker-spaceMDS061 list-marker-space
MD011 no-reversed-links, MD042 no-empty-linksMDS062 link-validity
MD059 descriptive-link-textMDS063 descriptive-link-text
MD018 no-missing-space-atx, MD019 no-multiple-space-atx, MD020 no-missing-space-closed-atx (partial), MD021 no-multiple-space-closed-atx, MD023 heading-start-leftMDS064 atx-heading-whitespace
MD046 code-block-styleMDS065 code-block-style
MD014 commands-show-outputMDS066 commands-show-output
MD054 link-image-styleMDS068 link-style
MD051 link-fragmentsMDS070 same-file-anchor

See also