Skip to content

Commit 49ef661

Browse files
committed
Update to version 0.32.0.
1 parent b709a2f commit 49ef661

9 files changed

+308
-297
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 0.32.0
4+
5+
- Remove deprecated MD002/MD006
6+
- Remove rule aliases for "header"
7+
- Add MD054/link-image-style
8+
- Use `micromark` in MD005/MD007/MD030
9+
- Improve MD022/MD026/MD034/MD037/MD038/MD045/MD051
10+
- Improve JSON schema and related examples
11+
- Provide type declaration for Configuration object
12+
- Update dependencies
13+
314
## 0.31.1
415

516
- Improve MD032/MD034

demo/markdownlint-browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! markdownlint 0.31.1 https://github.com/DavidAnson/markdownlint @license MIT */
1+
/*! markdownlint 0.32.0 https://github.com/DavidAnson/markdownlint @license MIT */
22
var markdownlint;
33
/******/ (() => { // webpackBootstrap
44
/******/ var __webpack_modules__ = ({
@@ -1657,7 +1657,7 @@ module.exports.referenceLinkImageData = function () {
16571657
module.exports.deprecatedRuleNames = [];
16581658
module.exports.fixableRuleNames = ["MD004", "MD005", "MD007", "MD009", "MD010", "MD011", "MD012", "MD014", "MD018", "MD019", "MD020", "MD021", "MD022", "MD023", "MD026", "MD027", "MD030", "MD031", "MD032", "MD034", "MD037", "MD038", "MD039", "MD044", "MD047", "MD049", "MD050", "MD051", "MD053", "MD054"];
16591659
module.exports.homepage = "https://github.com/DavidAnson/markdownlint";
1660-
module.exports.version = "0.31.1";
1660+
module.exports.version = "0.32.0";
16611661

16621662
/***/ }),
16631663

helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "markdownlint-rule-helpers",
3-
"version": "0.22.0",
3+
"version": "0.23.0",
44
"description": "A collection of markdownlint helper functions for custom rules",
55
"main": "./helpers.js",
66
"exports": "./helpers.js",

lib/configuration.d.ts

Lines changed: 98 additions & 98 deletions
Large diffs are not rendered by default.

lib/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ module.exports.fixableRuleNames = [
1111
"MD047", "MD049", "MD050", "MD051", "MD053", "MD054"
1212
];
1313
module.exports.homepage = "https://github.com/DavidAnson/markdownlint";
14-
module.exports.version = "0.31.1";
14+
module.exports.version = "0.32.0";

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "markdownlint",
3-
"version": "0.31.1",
3+
"version": "0.32.0",
44
"description": "A Node.js style checker and lint tool for Markdown/CommonMark files.",
55
"type": "commonjs",
66
"main": "./lib/markdownlint.js",

schema/.markdownlint.jsonc

Lines changed: 48 additions & 48 deletions
Large diffs are not rendered by default.

schema/.markdownlint.yaml

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ default: true
66
# Path to configuration file to extend
77
extends: null
88

9-
# MD001/heading-increment : Heading levels should only increment by one level at a time : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md001.md
9+
# MD001/heading-increment : Heading levels should only increment by one level at a time : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md001.md
1010
MD001: true
1111

12-
# MD003/heading-style : Heading style : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md003.md
12+
# MD003/heading-style : Heading style : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md003.md
1313
MD003:
1414
# Heading style
1515
style: "consistent"
1616

17-
# MD004/ul-style : Unordered list style : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md004.md
17+
# MD004/ul-style : Unordered list style : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md004.md
1818
MD004:
1919
# List style
2020
style: "consistent"
2121

22-
# MD005/list-indent : Inconsistent indentation for list items at the same level : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md005.md
22+
# MD005/list-indent : Inconsistent indentation for list items at the same level : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md005.md
2323
MD005: true
2424

25-
# MD007/ul-indent : Unordered list indentation : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md007.md
25+
# MD007/ul-indent : Unordered list indentation : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md007.md
2626
MD007:
2727
# Spaces for indent
2828
indent: 2
@@ -31,7 +31,7 @@ MD007:
3131
# Spaces for first level indent (when start_indented is set)
3232
start_indent: 2
3333

34-
# MD009/no-trailing-spaces : Trailing spaces : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md009.md
34+
# MD009/no-trailing-spaces : Trailing spaces : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md009.md
3535
MD009:
3636
# Spaces for line break
3737
br_spaces: 2
@@ -40,7 +40,7 @@ MD009:
4040
# Include unnecessary breaks
4141
strict: false
4242

43-
# MD010/no-hard-tabs : Hard tabs : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md010.md
43+
# MD010/no-hard-tabs : Hard tabs : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md010.md
4444
MD010:
4545
# Include code blocks
4646
code_blocks: true
@@ -49,15 +49,15 @@ MD010:
4949
# Number of spaces for each hard tab
5050
spaces_per_tab: 1
5151

52-
# MD011/no-reversed-links : Reversed link syntax : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md011.md
52+
# MD011/no-reversed-links : Reversed link syntax : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md011.md
5353
MD011: true
5454

55-
# MD012/no-multiple-blanks : Multiple consecutive blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md012.md
55+
# MD012/no-multiple-blanks : Multiple consecutive blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md012.md
5656
MD012:
5757
# Consecutive blank lines
5858
maximum: 1
5959

60-
# MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md013.md
60+
# MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md013.md
6161
MD013:
6262
# Number of characters
6363
line_length: 80
@@ -76,62 +76,62 @@ MD013:
7676
# Stern length checking
7777
stern: false
7878

79-
# MD014/commands-show-output : Dollar signs used before commands without showing output : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md014.md
79+
# MD014/commands-show-output : Dollar signs used before commands without showing output : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md014.md
8080
MD014: true
8181

82-
# MD018/no-missing-space-atx : No space after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md018.md
82+
# MD018/no-missing-space-atx : No space after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md018.md
8383
MD018: true
8484

85-
# MD019/no-multiple-space-atx : Multiple spaces after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md019.md
85+
# MD019/no-multiple-space-atx : Multiple spaces after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md019.md
8686
MD019: true
8787

88-
# MD020/no-missing-space-closed-atx : No space inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md020.md
88+
# MD020/no-missing-space-closed-atx : No space inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md020.md
8989
MD020: true
9090

91-
# MD021/no-multiple-space-closed-atx : Multiple spaces inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md021.md
91+
# MD021/no-multiple-space-closed-atx : Multiple spaces inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md021.md
9292
MD021: true
9393

94-
# MD022/blanks-around-headings : Headings should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md022.md
94+
# MD022/blanks-around-headings : Headings should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md022.md
9595
MD022:
9696
# Blank lines above heading
9797
lines_above: 1
9898
# Blank lines below heading
9999
lines_below: 1
100100

101-
# MD023/heading-start-left : Headings must start at the beginning of the line : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md023.md
101+
# MD023/heading-start-left : Headings must start at the beginning of the line : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md023.md
102102
MD023: true
103103

104-
# MD024/no-duplicate-heading : Multiple headings with the same content : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md024.md
104+
# MD024/no-duplicate-heading : Multiple headings with the same content : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md024.md
105105
MD024:
106106
# Only check sibling headings
107107
allow_different_nesting: false
108108
# Only check sibling headings
109109
siblings_only: false
110110

111-
# MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md025.md
111+
# MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md025.md
112112
MD025:
113113
# Heading level
114114
level: 1
115115
# RegExp for matching title in front matter
116116
front_matter_title: "^\\s*title\\s*[:=]"
117117

118-
# MD026/no-trailing-punctuation : Trailing punctuation in heading : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md026.md
118+
# MD026/no-trailing-punctuation : Trailing punctuation in heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md026.md
119119
MD026:
120120
# Punctuation characters
121121
punctuation: ".,;:!。,;:!"
122122

123-
# MD027/no-multiple-space-blockquote : Multiple spaces after blockquote symbol : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md027.md
123+
# MD027/no-multiple-space-blockquote : Multiple spaces after blockquote symbol : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md027.md
124124
MD027: true
125125

126-
# MD028/no-blanks-blockquote : Blank line inside blockquote : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md028.md
126+
# MD028/no-blanks-blockquote : Blank line inside blockquote : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md028.md
127127
MD028: true
128128

129-
# MD029/ol-prefix : Ordered list item prefix : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md029.md
129+
# MD029/ol-prefix : Ordered list item prefix : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md029.md
130130
MD029:
131131
# List style
132132
style: "one_or_ordered"
133133

134-
# MD030/list-marker-space : Spaces after list markers : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md030.md
134+
# MD030/list-marker-space : Spaces after list markers : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md030.md
135135
MD030:
136136
# Spaces for single-line unordered list items
137137
ul_single: 1
@@ -142,66 +142,66 @@ MD030:
142142
# Spaces for multi-line ordered list items
143143
ol_multi: 1
144144

145-
# MD031/blanks-around-fences : Fenced code blocks should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md031.md
145+
# MD031/blanks-around-fences : Fenced code blocks should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md031.md
146146
MD031:
147147
# Include list items
148148
list_items: true
149149

150-
# MD032/blanks-around-lists : Lists should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md032.md
150+
# MD032/blanks-around-lists : Lists should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md032.md
151151
MD032: true
152152

153-
# MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md033.md
153+
# MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md033.md
154154
MD033:
155155
# Allowed elements
156156
allowed_elements: []
157157

158-
# MD034/no-bare-urls : Bare URL used : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md034.md
158+
# MD034/no-bare-urls : Bare URL used : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md034.md
159159
MD034: true
160160

161-
# MD035/hr-style : Horizontal rule style : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md035.md
161+
# MD035/hr-style : Horizontal rule style : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md035.md
162162
MD035:
163163
# Horizontal rule style
164164
style: "consistent"
165165

166-
# MD036/no-emphasis-as-heading : Emphasis used instead of a heading : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md036.md
166+
# MD036/no-emphasis-as-heading : Emphasis used instead of a heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md036.md
167167
MD036:
168168
# Punctuation characters
169169
punctuation: ".,;:!?。,;:!?"
170170

171-
# MD037/no-space-in-emphasis : Spaces inside emphasis markers : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md037.md
171+
# MD037/no-space-in-emphasis : Spaces inside emphasis markers : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md037.md
172172
MD037: true
173173

174-
# MD038/no-space-in-code : Spaces inside code span elements : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md038.md
174+
# MD038/no-space-in-code : Spaces inside code span elements : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md038.md
175175
MD038: true
176176

177-
# MD039/no-space-in-links : Spaces inside link text : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md039.md
177+
# MD039/no-space-in-links : Spaces inside link text : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md039.md
178178
MD039: true
179179

180-
# MD040/fenced-code-language : Fenced code blocks should have a language specified : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md040.md
180+
# MD040/fenced-code-language : Fenced code blocks should have a language specified : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md040.md
181181
MD040:
182182
# List of languages
183183
allowed_languages: []
184184
# Require language only
185185
language_only: false
186186

187-
# MD041/first-line-heading/first-line-h1 : First line in a file should be a top-level heading : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md041.md
187+
# MD041/first-line-heading/first-line-h1 : First line in a file should be a top-level heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md041.md
188188
MD041:
189189
# Heading level
190190
level: 1
191191
# RegExp for matching title in front matter
192192
front_matter_title: "^\\s*title\\s*[:=]"
193193

194-
# MD042/no-empty-links : No empty links : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md042.md
194+
# MD042/no-empty-links : No empty links : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md042.md
195195
MD042: true
196196

197-
# MD043/required-headings : Required heading structure : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md043.md
197+
# MD043/required-headings : Required heading structure : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md043.md
198198
MD043:
199199
# List of headings
200200
headings: []
201201
# Match case of headings
202202
match_case: false
203203

204-
# MD044/proper-names : Proper names should have the correct capitalization : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md044.md
204+
# MD044/proper-names : Proper names should have the correct capitalization : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md044.md
205205
MD044:
206206
# List of proper names
207207
names: []
@@ -210,47 +210,47 @@ MD044:
210210
# Include HTML elements
211211
html_elements: true
212212

213-
# MD045/no-alt-text : Images should have alternate text (alt text) : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md045.md
213+
# MD045/no-alt-text : Images should have alternate text (alt text) : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md045.md
214214
MD045: true
215215

216-
# MD046/code-block-style : Code block style : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md046.md
216+
# MD046/code-block-style : Code block style : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md046.md
217217
MD046:
218218
# Block style
219219
style: "consistent"
220220

221-
# MD047/single-trailing-newline : Files should end with a single newline character : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md047.md
221+
# MD047/single-trailing-newline : Files should end with a single newline character : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md047.md
222222
MD047: true
223223

224-
# MD048/code-fence-style : Code fence style : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md048.md
224+
# MD048/code-fence-style : Code fence style : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md048.md
225225
MD048:
226226
# Code fence style
227227
style: "consistent"
228228

229-
# MD049/emphasis-style : Emphasis style : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md049.md
229+
# MD049/emphasis-style : Emphasis style : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md049.md
230230
MD049:
231231
# Emphasis style
232232
style: "consistent"
233233

234-
# MD050/strong-style : Strong style : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md050.md
234+
# MD050/strong-style : Strong style : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md050.md
235235
MD050:
236236
# Strong style
237237
style: "consistent"
238238

239-
# MD051/link-fragments : Link fragments should be valid : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md051.md
239+
# MD051/link-fragments : Link fragments should be valid : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md051.md
240240
MD051: true
241241

242-
# MD052/reference-links-images : Reference links and images should use a label that is defined : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md052.md
242+
# MD052/reference-links-images : Reference links and images should use a label that is defined : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md052.md
243243
MD052:
244244
# Include shortcut syntax
245245
shortcut_syntax: false
246246

247-
# MD053/link-image-reference-definitions : Link and image reference definitions should be needed : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md053.md
247+
# MD053/link-image-reference-definitions : Link and image reference definitions should be needed : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md053.md
248248
MD053:
249249
# Ignored definitions
250250
ignored_definitions:
251251
- "//"
252252

253-
# MD054/link-image-style : Link and image style : https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md054.md
253+
# MD054/link-image-style : Link and image style : https://github.com/DavidAnson/markdownlint/blob/v0.32.0/doc/md054.md
254254
MD054:
255255
# Allow autolinks
256256
autolink: true

0 commit comments

Comments
 (0)