markdownlint 0.27.0 → 0.28.1

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,382 @@
1
+ # Changelog
2
+
3
+ ## 0.28.1
4
+
5
+ - Update dependencies
6
+
7
+ ## 0.28.0
8
+
9
+ - Introduce `micromark` parser for better positional data (internal only)
10
+ - Use `micromark` in MD013/MD033/MD034/MD035/MD038/MD044/MD052/MD053
11
+ - Simplify file-based test cases
12
+ - Unify browser script for demo
13
+ - Update dependencies
14
+
15
+ ## 0.27.0
16
+
17
+ - Improve MD011/MD013/MD022/MD031/MD032/MD033/MD034/MD040/MD043/MD051/MD053
18
+ - Generate/separate documentation
19
+ - Improve documentation
20
+ - Update dependencies
21
+
22
+ ## 0.26.2
23
+
24
+ - Improve MD037/MD051/MD053
25
+
26
+ ## 0.26.1
27
+
28
+ - Improve MD051
29
+
30
+ ## 0.26.0
31
+
32
+ - Add MD051/MD052/MD053 for validating link fragments & reference
33
+ links/images & link/image reference definitions (MD053 auto-fixable)
34
+ - Improve MD010/MD031/MD035/MD039/MD042/MD044/MD049/MD050
35
+ - Add `markdownlint-disable-line` inline comment
36
+ - Support `~` paths in `readConfig/Sync`
37
+ - Add `configParsers` option
38
+ - Remove support for end-of-life Node version 12
39
+ - Default `resultVersion` to 3
40
+ - Update browser script to use ES2015
41
+ - Simplify JSON schema
42
+ - Address remaining CodeQL issues
43
+ - Improve performance
44
+ - Update dependencies
45
+
46
+ ## 0.25.1
47
+
48
+ - Update dependencies for CVE-2022-21670
49
+
50
+ ## 0.25.0
51
+
52
+ - Add MD049/MD050 for consistent emphasis/strong style (both auto-fixable)
53
+ - Improve MD007/MD010/MD032/MD033/MD035/MD037/MD039
54
+ - Support asynchronous custom rules
55
+ - Improve performance
56
+ - Improve CI process
57
+ - Reduce dependencies
58
+ - Update dependencies
59
+
60
+ ## 0.24.0
61
+
62
+ - Remove support for end-of-life Node version 10
63
+ - Add support for custom file system module
64
+ - Improve MD010/MD011/MD037/MD043/MD044
65
+ - Improve TypeScript declaration file and JSON schema
66
+ - Update dependencies
67
+
68
+ ## 0.23.1
69
+
70
+ - Work around lack of webpack support for dynamic calls to `require`(`.resolve`)
71
+
72
+ ## 0.23.0
73
+
74
+ - Add comprehensive example `.markdownlint.jsonc`/`.markdownlint.yaml` files
75
+ - Add fix information for MD004/ul-style
76
+ - Improve MD018/MD019/MD020/MD021/MD037/MD041
77
+ - Improve HTML comment handling
78
+ - Update test runner and test suite
79
+ - Update dependencies
80
+
81
+ ## 0.22.0
82
+
83
+ - Allow `extends` in config to reference installed packages by name
84
+ - Add `markdownlint-disable-next-line` inline comment
85
+ - Support JSON front matter
86
+ - Improve MD009/MD026/MD028/MD043
87
+ - Update dependencies (including `markdown-it` to v12)
88
+
89
+ ## 0.21.1
90
+
91
+ - Improve MD011/MD031
92
+ - Export `getVersion` API
93
+
94
+ ## 0.21.0
95
+
96
+ - Lint concurrently for better performance (async only)
97
+ - Add Promise-based APIs
98
+ - Update TypeScript declaration file
99
+ - Hide `toString` on `LintResults`
100
+ - Add ability to fix in browser demo
101
+ - Allow custom rules in `.markdownlint.json` schema
102
+ - Improve MD042/MD044
103
+ - Improve documentation
104
+ - Update dependencies
105
+
106
+ ## 0.20.4
107
+
108
+ - Fix regression in MD037
109
+ - Improve MD034/MD044
110
+ - Improve documentation
111
+
112
+ ## 0.20.3
113
+
114
+ - Fix regression in MD037
115
+ - Improve MD044
116
+ - Add automatic regression testing
117
+
118
+ ## 0.20.2
119
+
120
+ - Fix regression in MD037
121
+ - Improve MD038
122
+
123
+ ## 0.20.1
124
+
125
+ - Fix regression in MD037
126
+
127
+ ## 0.20.0
128
+
129
+ - Add `markdownlint-configure-file` inline comment
130
+ - Reimplement MD037
131
+ - Improve MD005/MD007/MD013/MD018/MD029/MD031/MD034/MD038/MD039
132
+ - Improve HTML comment handling
133
+ - Update dependencies
134
+
135
+ ## 0.19.0
136
+
137
+ - Remove support for end-of-life Node version 8
138
+ - Add fix information for MD005/list-indent
139
+ - Improve MD007/MD013/MD014
140
+ - Deprecate MD006/ul-start-left
141
+ - Add rationale for every rule
142
+ - Update test runner and code coverage
143
+ - Add more JSDoc comments
144
+ - Update dependencies
145
+
146
+ ## 0.18.0
147
+
148
+ - Add MD048/code-fence-style
149
+ - Add fix information for MD007/ul-indent
150
+ - Add `markdownlint-disable-file`/`markdownlint-enable-file` inline comments
151
+ - Add type declaration file (.d.ts) for TypeScript dependents
152
+ - Update schema
153
+ - Improve MD006/MD007/MD009/MD013/MD030
154
+ - Update dependencies
155
+
156
+ ## 0.17.2
157
+
158
+ - Improve MD020/MD033/MD044
159
+
160
+ ## 0.17.1
161
+
162
+ - Fix handling of front matter by fix information
163
+
164
+ ## 0.17.0
165
+
166
+ - Add `resultVersion` 3 to support fix information for default and custom rules
167
+ - Add fix information for 24 rules
168
+ - Update newline handling to match latest CommonMark specification
169
+ - Improve MD014/MD037/MD039
170
+ - Update dependencies
171
+
172
+ ## 0.16.0
173
+
174
+ - Add custom rule sample for linting code
175
+ - Improve MD026/MD031/MD033/MD038
176
+ - Update dependencies
177
+
178
+ ## 0.15.0
179
+
180
+ - Add `markdownlint-capture`/`markdownlint-restore` inline comments
181
+ - Improve MD009/MD013/MD026/MD033/MD036
182
+ - Update dependencies
183
+
184
+ ## 0.14.2
185
+
186
+ - Improve MD047
187
+ - Add `handleRuleFailures` option
188
+
189
+ ## 0.14.1
190
+
191
+ - Improve MD033
192
+
193
+ ## 0.14.0
194
+
195
+ - Remove support for end-of-life Node version 6
196
+ - Introduce `markdownlint-rule-helpers`
197
+ - Add MD046/MD047
198
+ - Improve MD033/MD034/MD039
199
+ - Improve custom rule validation and in-browser demo
200
+ - Update dependencies
201
+
202
+ ## 0.13.0
203
+
204
+ - Improve MD013/MD022/MD025/MD029/MD031/MD032/MD037/MD041
205
+ - Deprecate MD002
206
+ - Improve Pandoc YAML support
207
+ - Update dependencies
208
+
209
+ ## 0.12.0
210
+
211
+ - Add `information` link for custom rules
212
+ - Add `markdownItPlugins` for extensibility
213
+ - Improve MD023/MD032/MD038
214
+ - Update dependencies
215
+
216
+ ## 0.11.0
217
+
218
+ - Improve MD005/MD024/MD029/MD038
219
+ - Improve custom rule example
220
+ - Add `CONTRIBUTING.md`
221
+ - Update dependencies
222
+
223
+ ## 0.10.0
224
+
225
+ - Add support for non-JSON configuration files
226
+ - Pass file/string name to custom rules
227
+ - Update dependencies
228
+
229
+ ## 0.9.0
230
+
231
+ - Remove support for end-of-life Node versions 0.10/0.12/4
232
+ - Change "header" to "heading" per spec (non-breaking)
233
+ - Improve MD003/MD009/MD041
234
+ - Handle uncommon line-break characters
235
+ - Refactor for ES6
236
+ - Update dependencies
237
+
238
+ ## 0.8.1
239
+
240
+ - Update item loop to be iterative
241
+ - Improve MD014
242
+ - Update dependencies
243
+
244
+ ## 0.8.0
245
+
246
+ - Add support for using and authoring custom rules
247
+ - Improve MD004/MD007/MD013
248
+ - Add `engines` to `package.json`
249
+ - Refactor
250
+ - Update dependencies
251
+
252
+ ## 0.7.0
253
+
254
+ - `resultVersion` defaults to 2 (breaking change)
255
+ - Add MD045
256
+ - Improve MD029
257
+ - Remove `trimLeft`/`trimRight`
258
+ - Split rules
259
+ - Refactor
260
+ - Update dependencies
261
+
262
+ ## 0.6.4
263
+
264
+ - Improve MD029/MD042
265
+ - Update dependencies
266
+
267
+ ## 0.6.3
268
+
269
+ - Improve highlighting for MD020
270
+
271
+ ## 0.6.2
272
+
273
+ - Improve MD013/MD027/MD034/MD037/MD038/MD041/MD044
274
+ - Update dependencies
275
+
276
+ ## 0.6.1
277
+
278
+ - Update `markdown-it` versioning
279
+ - Exclude demo/test from publishing
280
+
281
+ ## 0.6.0
282
+
283
+ - `resultVersion` defaults to 1 (breaking change)
284
+ - Ignore HTML comments
285
+ - TOML front matter
286
+ - Fixes for MD044
287
+ - Update dependencies
288
+
289
+ ## 0.5.0
290
+
291
+ - Add shareable configuration
292
+ - Add `noInlineConfig` option
293
+ - Add `README.md` links
294
+ - Fix MD030
295
+ - Improve MD009/MD041
296
+ - Update dependencies
297
+
298
+ ## 0.4.1
299
+
300
+ - Fixes for MD038/front matter
301
+ - Improvements to MD044
302
+ - Update dependencies
303
+
304
+ ## 0.4.0
305
+
306
+ - Add MD044
307
+ - Enhance MD013/MD032/MD041/MD042/MD043
308
+ - Fix for MD038
309
+ - Update dependencies
310
+
311
+ ## 0.3.1
312
+
313
+ - Fix regressions in MD032/MD038
314
+ - Update dependencies
315
+
316
+ ## 0.3.0
317
+
318
+ - More detailed error reporting with `resultVersion`
319
+ - Enhance MD010/MD012/MD036
320
+ - Fixes for MD027/MD029/MD030
321
+ - Include JSON schema dependencies
322
+
323
+ ## 0.2.0
324
+
325
+ - Add MD042/MD043
326
+ - Enhance MD002/MD003/MD004/MD007/MD011/MD025/MD041
327
+ - Update dependencies
328
+
329
+ ## 0.1.1
330
+
331
+ - Fix bug handling HTML in tables
332
+ - Reference `markdownlint-cli`
333
+
334
+ ## 0.1.0
335
+
336
+ - Add aliases
337
+ - Exceptions for MD033
338
+ - Exclusions for MD013
339
+ - Update dependencies
340
+
341
+ ## 0.0.8
342
+
343
+ - Support disabling/enabling rules inline
344
+ - Improve code fence
345
+ - Update dependencies
346
+
347
+ ## 0.0.7
348
+
349
+ - Add MD041
350
+ - Improve MD003
351
+ - Ignore front matter
352
+ - Update dependencies
353
+
354
+ ## 0.0.6
355
+
356
+ - Improve performance
357
+ - Simplify in-browser
358
+ - Update dependencies
359
+
360
+ ## 0.0.5
361
+
362
+ - Add `strings` option to enable file-less scenarios
363
+ - Add in-browser demo
364
+
365
+ ## 0.0.4
366
+
367
+ - Add tests MD033-MD040
368
+ - Update dependencies
369
+
370
+ ## 0.0.3
371
+
372
+ - Add synchronous API
373
+ - Improve documentation and code
374
+
375
+ ## 0.0.2
376
+
377
+ - Improve documentation, tests, and code
378
+
379
+ ## 0.0.1
380
+
381
+ - Initial release
382
+ - 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