markdownlint 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,378 @@
1
+ # Changelog
2
+
3
+ ## 0.28.0
4
+
5
+ - Introduce `micromark` parser for better positional data (internal only)
6
+ - Use `micromark` in MD013/MD033/MD034/MD035/MD038/MD044/MD052/MD053
7
+ - Simplify file-based test cases
8
+ - Unify browser script for demo
9
+ - Update dependencies
10
+
11
+ ## 0.27.0
12
+
13
+ - Improve MD011/MD013/MD022/MD031/MD032/MD033/MD034/MD040/MD043/MD051/MD053
14
+ - Generate/separate documentation
15
+ - Improve documentation
16
+ - Update dependencies
17
+
18
+ ## 0.26.2
19
+
20
+ - Improve MD037/MD051/MD053
21
+
22
+ ## 0.26.1
23
+
24
+ - Improve MD051
25
+
26
+ ## 0.26.0
27
+
28
+ - Add MD051/MD052/MD053 for validating link fragments & reference
29
+ links/images & link/image reference definitions (MD053 auto-fixable)
30
+ - Improve MD010/MD031/MD035/MD039/MD042/MD044/MD049/MD050
31
+ - Add `markdownlint-disable-line` inline comment
32
+ - Support `~` paths in `readConfig/Sync`
33
+ - Add `configParsers` option
34
+ - Remove support for end-of-life Node version 12
35
+ - Default `resultVersion` to 3
36
+ - Update browser script to use ES2015
37
+ - Simplify JSON schema
38
+ - Address remaining CodeQL issues
39
+ - Improve performance
40
+ - Update dependencies
41
+
42
+ ## 0.25.1
43
+
44
+ - Update dependencies for CVE-2022-21670
45
+
46
+ ## 0.25.0
47
+
48
+ - Add MD049/MD050 for consistent emphasis/strong style (both auto-fixable)
49
+ - Improve MD007/MD010/MD032/MD033/MD035/MD037/MD039
50
+ - Support asynchronous custom rules
51
+ - Improve performance
52
+ - Improve CI process
53
+ - Reduce dependencies
54
+ - Update dependencies
55
+
56
+ ## 0.24.0
57
+
58
+ - Remove support for end-of-life Node version 10
59
+ - Add support for custom file system module
60
+ - Improve MD010/MD011/MD037/MD043/MD044
61
+ - Improve TypeScript declaration file and JSON schema
62
+ - Update dependencies
63
+
64
+ ## 0.23.1
65
+
66
+ - Work around lack of webpack support for dynamic calls to `require`(`.resolve`)
67
+
68
+ ## 0.23.0
69
+
70
+ - Add comprehensive example `.markdownlint.jsonc`/`.markdownlint.yaml` files
71
+ - Add fix information for MD004/ul-style
72
+ - Improve MD018/MD019/MD020/MD021/MD037/MD041
73
+ - Improve HTML comment handling
74
+ - Update test runner and test suite
75
+ - Update dependencies
76
+
77
+ ## 0.22.0
78
+
79
+ - Allow `extends` in config to reference installed packages by name
80
+ - Add `markdownlint-disable-next-line` inline comment
81
+ - Support JSON front matter
82
+ - Improve MD009/MD026/MD028/MD043
83
+ - Update dependencies (including `markdown-it` to v12)
84
+
85
+ ## 0.21.1
86
+
87
+ - Improve MD011/MD031
88
+ - Export `getVersion` API
89
+
90
+ ## 0.21.0
91
+
92
+ - Lint concurrently for better performance (async only)
93
+ - Add Promise-based APIs
94
+ - Update TypeScript declaration file
95
+ - Hide `toString` on `LintResults`
96
+ - Add ability to fix in browser demo
97
+ - Allow custom rules in `.markdownlint.json` schema
98
+ - Improve MD042/MD044
99
+ - Improve documentation
100
+ - Update dependencies
101
+
102
+ ## 0.20.4
103
+
104
+ - Fix regression in MD037
105
+ - Improve MD034/MD044
106
+ - Improve documentation
107
+
108
+ ## 0.20.3
109
+
110
+ - Fix regression in MD037
111
+ - Improve MD044
112
+ - Add automatic regression testing
113
+
114
+ ## 0.20.2
115
+
116
+ - Fix regression in MD037
117
+ - Improve MD038
118
+
119
+ ## 0.20.1
120
+
121
+ - Fix regression in MD037
122
+
123
+ ## 0.20.0
124
+
125
+ - Add `markdownlint-configure-file` inline comment
126
+ - Reimplement MD037
127
+ - Improve MD005/MD007/MD013/MD018/MD029/MD031/MD034/MD038/MD039
128
+ - Improve HTML comment handling
129
+ - Update dependencies
130
+
131
+ ## 0.19.0
132
+
133
+ - Remove support for end-of-life Node version 8
134
+ - Add fix information for MD005/list-indent
135
+ - Improve MD007/MD013/MD014
136
+ - Deprecate MD006/ul-start-left
137
+ - Add rationale for every rule
138
+ - Update test runner and code coverage
139
+ - Add more JSDoc comments
140
+ - Update dependencies
141
+
142
+ ## 0.18.0
143
+
144
+ - Add MD048/code-fence-style
145
+ - Add fix information for MD007/ul-indent
146
+ - Add `markdownlint-disable-file`/`markdownlint-enable-file` inline comments
147
+ - Add type declaration file (.d.ts) for TypeScript dependents
148
+ - Update schema
149
+ - Improve MD006/MD007/MD009/MD013/MD030
150
+ - Update dependencies
151
+
152
+ ## 0.17.2
153
+
154
+ - Improve MD020/MD033/MD044
155
+
156
+ ## 0.17.1
157
+
158
+ - Fix handling of front matter by fix information
159
+
160
+ ## 0.17.0
161
+
162
+ - Add `resultVersion` 3 to support fix information for default and custom rules
163
+ - Add fix information for 24 rules
164
+ - Update newline handling to match latest CommonMark specification
165
+ - Improve MD014/MD037/MD039
166
+ - Update dependencies
167
+
168
+ ## 0.16.0
169
+
170
+ - Add custom rule sample for linting code
171
+ - Improve MD026/MD031/MD033/MD038
172
+ - Update dependencies
173
+
174
+ ## 0.15.0
175
+
176
+ - Add `markdownlint-capture`/`markdownlint-restore` inline comments
177
+ - Improve MD009/MD013/MD026/MD033/MD036
178
+ - Update dependencies
179
+
180
+ ## 0.14.2
181
+
182
+ - Improve MD047
183
+ - Add `handleRuleFailures` option
184
+
185
+ ## 0.14.1
186
+
187
+ - Improve MD033
188
+
189
+ ## 0.14.0
190
+
191
+ - Remove support for end-of-life Node version 6
192
+ - Introduce `markdownlint-rule-helpers`
193
+ - Add MD046/MD047
194
+ - Improve MD033/MD034/MD039
195
+ - Improve custom rule validation and in-browser demo
196
+ - Update dependencies
197
+
198
+ ## 0.13.0
199
+
200
+ - Improve MD013/MD022/MD025/MD029/MD031/MD032/MD037/MD041
201
+ - Deprecate MD002
202
+ - Improve Pandoc YAML support
203
+ - Update dependencies
204
+
205
+ ## 0.12.0
206
+
207
+ - Add `information` link for custom rules
208
+ - Add `markdownItPlugins` for extensibility
209
+ - Improve MD023/MD032/MD038
210
+ - Update dependencies
211
+
212
+ ## 0.11.0
213
+
214
+ - Improve MD005/MD024/MD029/MD038
215
+ - Improve custom rule example
216
+ - Add `CONTRIBUTING.md`
217
+ - Update dependencies
218
+
219
+ ## 0.10.0
220
+
221
+ - Add support for non-JSON configuration files
222
+ - Pass file/string name to custom rules
223
+ - Update dependencies
224
+
225
+ ## 0.9.0
226
+
227
+ - Remove support for end-of-life Node versions 0.10/0.12/4
228
+ - Change "header" to "heading" per spec (non-breaking)
229
+ - Improve MD003/MD009/MD041
230
+ - Handle uncommon line-break characters
231
+ - Refactor for ES6
232
+ - Update dependencies
233
+
234
+ ## 0.8.1
235
+
236
+ - Update item loop to be iterative
237
+ - Improve MD014
238
+ - Update dependencies
239
+
240
+ ## 0.8.0
241
+
242
+ - Add support for using and authoring custom rules
243
+ - Improve MD004/MD007/MD013
244
+ - Add `engines` to `package.json`
245
+ - Refactor
246
+ - Update dependencies
247
+
248
+ ## 0.7.0
249
+
250
+ - `resultVersion` defaults to 2 (breaking change)
251
+ - Add MD045
252
+ - Improve MD029
253
+ - Remove `trimLeft`/`trimRight`
254
+ - Split rules
255
+ - Refactor
256
+ - Update dependencies
257
+
258
+ ## 0.6.4
259
+
260
+ - Improve MD029/MD042
261
+ - Update dependencies
262
+
263
+ ## 0.6.3
264
+
265
+ - Improve highlighting for MD020
266
+
267
+ ## 0.6.2
268
+
269
+ - Improve MD013/MD027/MD034/MD037/MD038/MD041/MD044
270
+ - Update dependencies
271
+
272
+ ## 0.6.1
273
+
274
+ - Update `markdown-it` versioning
275
+ - Exclude demo/test from publishing
276
+
277
+ ## 0.6.0
278
+
279
+ - `resultVersion` defaults to 1 (breaking change)
280
+ - Ignore HTML comments
281
+ - TOML front matter
282
+ - Fixes for MD044
283
+ - Update dependencies
284
+
285
+ ## 0.5.0
286
+
287
+ - Add shareable configuration
288
+ - Add `noInlineConfig` option
289
+ - Add `README.md` links
290
+ - Fix MD030
291
+ - Improve MD009/MD041
292
+ - Update dependencies
293
+
294
+ ## 0.4.1
295
+
296
+ - Fixes for MD038/front matter
297
+ - Improvements to MD044
298
+ - Update dependencies
299
+
300
+ ## 0.4.0
301
+
302
+ - Add MD044
303
+ - Enhance MD013/MD032/MD041/MD042/MD043
304
+ - Fix for MD038
305
+ - Update dependencies
306
+
307
+ ## 0.3.1
308
+
309
+ - Fix regressions in MD032/MD038
310
+ - Update dependencies
311
+
312
+ ## 0.3.0
313
+
314
+ - More detailed error reporting with `resultVersion`
315
+ - Enhance MD010/MD012/MD036
316
+ - Fixes for MD027/MD029/MD030
317
+ - Include JSON schema dependencies
318
+
319
+ ## 0.2.0
320
+
321
+ - Add MD042/MD043
322
+ - Enhance MD002/MD003/MD004/MD007/MD011/MD025/MD041
323
+ - Update dependencies
324
+
325
+ ## 0.1.1
326
+
327
+ - Fix bug handling HTML in tables
328
+ - Reference `markdownlint-cli`
329
+
330
+ ## 0.1.0
331
+
332
+ - Add aliases
333
+ - Exceptions for MD033
334
+ - Exclusions for MD013
335
+ - Update dependencies
336
+
337
+ ## 0.0.8
338
+
339
+ - Support disabling/enabling rules inline
340
+ - Improve code fence
341
+ - Update dependencies
342
+
343
+ ## 0.0.7
344
+
345
+ - Add MD041
346
+ - Improve MD003
347
+ - Ignore front matter
348
+ - Update dependencies
349
+
350
+ ## 0.0.6
351
+
352
+ - Improve performance
353
+ - Simplify in-browser
354
+ - Update dependencies
355
+
356
+ ## 0.0.5
357
+
358
+ - Add `strings` option to enable file-less scenarios
359
+ - Add in-browser demo
360
+
361
+ ## 0.0.4
362
+
363
+ - Add tests MD033-MD040
364
+ - Update dependencies
365
+
366
+ ## 0.0.3
367
+
368
+ - Add synchronous API
369
+ - Improve documentation and code
370
+
371
+ ## 0.0.2
372
+
373
+ - Improve documentation, tests, and code
374
+
375
+ ## 0.0.1
376
+
377
+ - Initial release
378
+ - Includes tests MD001-MD032
package/CONTRIBUTING.md CHANGED
@@ -13,9 +13,9 @@ time and effort writing code that may not get used.
13
13
  Match the coding style of the files you edit. Although everyone has their own
14
14
  preferences and opinions, a pull request is not the right forum to debate them.
15
15
 
16
- Do not add new [`dependencies` to `package.json`][dependencies]. The excellent
17
- Markdown parser [markdown-it][markdown-it] is this project's one and only
18
- dependency.
16
+ Do not add new [`dependencies` to `package.json`][dependencies]. The Markdown
17
+ parsers [`markdown-it`][markdown-it] and [`micromark`][micromark] are the
18
+ project's only dependencies.
19
19
 
20
20
  If developing a new rule, start by creating a [custom rule][custom-rules] in its
21
21
  own project. Once written, published, and tested in real world scenarios, open
@@ -80,6 +80,7 @@ Thank you!
80
80
  [dependencies]: https://docs.npmjs.com/files/package.json#dependencies
81
81
  [example-com]: https://en.wikipedia.org/wiki/Example.com
82
82
  [markdown-it]: https://www.npmjs.com/package/markdown-it
83
+ [micromark]: https://www.npmjs.com/package/micromark
83
84
  [new-rule]: https://github.com/DavidAnson/markdownlint/labels/new%20rule
84
85
  [npm-scripts]: https://docs.npmjs.com/misc/scripts
85
86
  [rewriting-history]: https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015-2022 David Anson
3
+ Copyright (c) David Anson
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1020,129 +1020,7 @@ See [ReleaseProcess.md](doc/ReleaseProcess.md) for more information.
1020
1020
 
1021
1021
  ## History
1022
1022
 
1023
- - 0.0.1 - Initial release, includes tests MD001-MD032.
1024
- - 0.0.2 - Improve documentation, tests, and code.
1025
- - 0.0.3 - Add synchronous API, improve documentation and code.
1026
- - 0.0.4 - Add tests MD033-MD040, update dependencies.
1027
- - 0.0.5 - Add `strings` option to enable file-less scenarios, add in-browser
1028
- demo.
1029
- - 0.0.6 - Improve performance, simplify in-browser, update dependencies.
1030
- - 0.0.7 - Add MD041, improve MD003, ignore front matter, update dependencies.
1031
- - 0.0.8 - Support disabling/enabling rules inline, improve code fence,
1032
- dependencies.
1033
- - 0.1.0 - Add aliases, exceptions for MD033, exclusions for MD013, dependencies.
1034
- - 0.1.1 - Fix bug handling HTML in tables, reference markdownlint-cli.
1035
- - 0.2.0 - Add MD042/MD043, enhance MD002/MD003/MD004/MD007/MD011/MD025/MD041,
1036
- dependencies.
1037
- - 0.3.0 - More detailed error reporting with `resultVersion`, enhance
1038
- MD010/MD012/MD036, fixes for MD027/MD029/MD030, include JSON schema,
1039
- dependencies.
1040
- - 0.3.1 - Fix regressions in MD032/MD038, update dependencies.
1041
- - 0.4.0 - Add MD044, enhance MD013/MD032/MD041/MD042/MD043, fix for MD038,
1042
- dependencies.
1043
- - 0.4.1 - Fixes for MD038/front matter, improvements to MD044, update
1044
- dependencies.
1045
- - 0.5.0 - Add shareable configuration, `noInlineConfig` option, README links,
1046
- fix MD030, improve MD009/MD041, update dependencies.
1047
- - 0.6.0 - `resultVersion` defaults to 1 (breaking change), ignore HTML comments,
1048
- TOML front matter, fixes for MD044, update dependencies.
1049
- - 0.6.1 - Update `markdown-it` versioning, exclude demo/test from publishing.
1050
- - 0.6.2 - Improve MD013/MD027/MD034/MD037/MD038/MD041/MD044, update
1051
- dependencies.
1052
- - 0.6.3 - Improve highlighting for MD020.
1053
- - 0.6.4 - Improve MD029/MD042, update dependencies.
1054
- - 0.7.0 - `resultVersion` defaults to 2 (breaking change), add MD045, improve
1055
- MD029, remove trimLeft/trimRight, split rules, refactor, update
1056
- dependencies.
1057
- - 0.8.0 - Add support for using and authoring custom rules, improve
1058
- MD004/MD007/MD013, add `engines` to `package.json`, refactor, update
1059
- dependencies.
1060
- - 0.8.1 - Update item loop to be iterative, improve MD014, update
1061
- dependencies.
1062
- - 0.9.0 - Remove support for end-of-life Node versions 0.10/0.12/4, change
1063
- "header" to "heading" per spec (non-breaking), improve
1064
- MD003/MD009/MD041, handle uncommon line-break characters, refactor for
1065
- ES6, update dependencies.
1066
- - 0.10.0 - Add support for non-JSON configuration files, pass file/string name
1067
- to custom rules, update dependencies.
1068
- - 0.11.0 - Improve MD005/MD024/MD029/MD038, improve custom rule example, add
1069
- CONTRIBUTING.md, update dependencies.
1070
- - 0.12.0 - Add `information` link for custom rules, `markdownItPlugins` for
1071
- extensibility, improve MD023/MD032/MD038, update dependencies.
1072
- - 0.13.0 - Improve MD013/MD022/MD025/MD029/MD031/MD032/MD037/MD041/, deprecate
1073
- MD002, improve pandoc YAML support, update dependencies.
1074
- - 0.14.0 - Remove support for end-of-life Node version 6, introduce
1075
- `markdownlint-rule-helpers`, add MD046/MD047, improve
1076
- MD033/MD034/MD039, improve custom rule validation and in-browser
1077
- demo, update dependencies.
1078
- - 0.14.1 - Improve MD033.
1079
- - 0.14.2 - Improve MD047, add `handleRuleFailures` option.
1080
- - 0.15.0 - Add `markdownlint-capture`/`markdownlint-restore` inline comments,
1081
- improve MD009/MD013/MD026/MD033/MD036, update dependencies.
1082
- - 0.16.0 - Add custom rule sample for linting code, improve
1083
- MD026/MD031/MD033/MD038, update dependencies.
1084
- - 0.17.0 - Add `resultVersion` 3 to support fix information for default and
1085
- custom rules, add fix information for 24 rules, update newline
1086
- handling to match latest CommonMark specification, improve
1087
- MD014/MD037/MD039, update dependencies.
1088
- - 0.17.1 - Fix handling of front matter by fix information.
1089
- - 0.17.2 - Improve MD020/MD033/MD044.
1090
- - 0.18.0 - Add MD048/code-fence-style, add fix information for MD007/ul-indent,
1091
- add `markdownlint-disable-file`/`markdownlint-enable-file` inline
1092
- comments, add type declaration file (.d.ts) for TypeScript
1093
- dependents, update schema, improve MD006/MD007/MD009/MD013/MD030,
1094
- update dependencies.
1095
- - 0.19.0 - Remove support for end-of-life Node version 8, add fix information
1096
- for MD005/list-indent, improve MD007/MD013/MD014, deprecate
1097
- MD006/ul-start-left, add rationale for every rule, update test runner
1098
- and code coverage, add more JSDoc comments, update dependencies.
1099
- - 0.20.0 - Add `markdownlint-configure-file` inline comment, reimplement MD037,
1100
- improve MD005/MD007/MD013/MD018/MD029/MD031/MD034/MD038/MD039,
1101
- improve HTML comment handling, update dependencies.
1102
- - 0.20.1 - Fix regression in MD037.
1103
- - 0.20.2 - Fix regression in MD037, improve MD038.
1104
- - 0.20.3 - Fix regression in MD037, improve MD044, add automatic regression
1105
- testing.
1106
- - 0.20.4 - Fix regression in MD037, improve MD034/MD044, improve
1107
- documentation.
1108
- - 0.21.0 - Lint concurrently for better performance (async only), add
1109
- Promise-based APIs, update TypeScript declaration file, hide
1110
- `toString` on `LintResults`, add ability to fix in browser demo,
1111
- allow custom rules in `.markdownlint.json` schema, improve
1112
- MD042/MD044, improve documentation, update dependencies.
1113
- - 0.21.1 - Improve MD011/MD031, export `getVersion` API.
1114
- - 0.22.0 - Allow `extends` in config to reference installed packages by name,
1115
- add `markdownlint-disable-next-line` inline comment, support JSON
1116
- front matter, improve MD009/MD026/MD028/MD043, update dependencies
1117
- (including `markdown-it` to v12).
1118
- - 0.23.0 - Add comprehensive example `.markdownlint.jsonc`/`.markdownlint.yaml`
1119
- files, add fix information for MD004/ul-style, improve
1120
- MD018/MD019/MD020/MD021/MD037/MD041, improve HTML comment handling,
1121
- update test runner and test suite, update dependencies.
1122
- - 0.23.1 - Work around lack of webpack support for dynamic calls to
1123
- `require`(`.resolve`).
1124
- - 0.24.0 - Remove support for end-of-life Node version 10, add support for
1125
- custom file system module, improve MD010/MD011/MD037/MD043/MD044,
1126
- improve TypeScript declaration file and JSON schema, update
1127
- dependencies.
1128
- - 0.25.0 - Add MD049/MD050 for consistent emphasis/strong style (both
1129
- auto-fixable), improve MD007/MD010/MD032/MD033/MD035/MD037/MD039,
1130
- support asynchronous custom rules, improve performance, improve CI
1131
- process, reduce dependencies, update dependencies.
1132
- - 0.25.1 - Update dependencies for CVE-2022-21670.
1133
- - 0.26.0 - Add MD051/MD052/MD053 for validating link fragments & reference
1134
- links/images & link/image reference definitions (MD053 auto-fixable),
1135
- improve MD010/MD031/MD035/MD039/MD042/MD044/MD049/MD050, add
1136
- `markdownlint-disable-line` inline comment, support `~` paths in
1137
- `readConfig/Sync`, add `configParsers` option, remove support for
1138
- end-of-life Node version 12, default `resultVersion` to 3, update
1139
- browser script to use ES2015, simplify JSON schema, address remaining
1140
- CodeQL issues, improve performance, update dependencies.
1141
- - 0.26.1 - Improve MD051.
1142
- - 0.26.2 - Improve MD037/MD051/MD053.
1143
- - 0.27.0 - Improve MD011/MD013/MD022/MD031/MD032/MD033/MD034/MD040/MD043/MD051/
1144
- MD053, generate/separate documentation, improve documentation, update
1145
- dependencies.
1023
+ See [CHANGELOG.md](CHANGELOG.md).
1146
1024
 
1147
1025
  [npm-image]: https://img.shields.io/npm/v/markdownlint.svg
1148
1026
  [npm-url]: https://www.npmjs.com/package/markdownlint