markdownlint 0.38.0 → 0.40.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +144 -75
  4. package/doc/Rules.md +174 -18
  5. package/doc/md001.md +14 -0
  6. package/doc/md009.md +8 -9
  7. package/doc/md010.md +6 -0
  8. package/doc/md029.md +2 -0
  9. package/doc/md033.md +7 -1
  10. package/doc/md051.md +10 -5
  11. package/doc/md055.md +1 -1
  12. package/doc/md056.md +1 -1
  13. package/doc/md059.md +4 -1
  14. package/doc/md060.md +118 -0
  15. package/helpers/README.md +2 -2
  16. package/helpers/helpers.cjs +171 -15
  17. package/helpers/micromark-helpers.cjs +11 -7
  18. package/helpers/package.json +1 -1
  19. package/lib/cache.mjs +6 -2
  20. package/lib/configuration-strict.d.ts +1351 -205
  21. package/lib/constants.mjs +6 -5
  22. package/lib/defer-require.cjs +2 -0
  23. package/lib/exports.d.mts +1 -2
  24. package/lib/exports.mjs +1 -2
  25. package/lib/markdownit.cjs +2 -1
  26. package/lib/markdownlint.d.mts +101 -51
  27. package/lib/markdownlint.mjs +217 -181
  28. package/lib/md001.mjs +6 -2
  29. package/lib/md004.mjs +7 -18
  30. package/lib/md007.mjs +2 -1
  31. package/lib/md009.mjs +9 -5
  32. package/lib/md010.mjs +1 -1
  33. package/lib/md011.mjs +8 -6
  34. package/lib/md013.mjs +14 -27
  35. package/lib/md022.mjs +5 -2
  36. package/lib/md029.mjs +25 -14
  37. package/lib/md031.mjs +0 -1
  38. package/lib/md032.mjs +3 -1
  39. package/lib/md033.mjs +28 -20
  40. package/lib/md034.mjs +2 -1
  41. package/lib/md036.mjs +5 -3
  42. package/lib/md037.mjs +10 -7
  43. package/lib/md042.mjs +4 -2
  44. package/lib/md043.mjs +2 -2
  45. package/lib/md044.mjs +1 -1
  46. package/lib/md046.mjs +6 -6
  47. package/lib/md053.mjs +1 -1
  48. package/lib/md054.mjs +7 -5
  49. package/lib/md055.mjs +7 -6
  50. package/lib/md056.mjs +1 -1
  51. package/lib/md060.mjs +170 -0
  52. package/lib/micromark-parse.mjs +5 -3
  53. package/lib/node-imports-browser.mjs +2 -0
  54. package/lib/parse-configuration.mjs +5 -4
  55. package/lib/rules.mjs +3 -1
  56. package/package.json +18 -18
  57. package/schema/.markdownlint.jsonc +69 -54
  58. package/schema/.markdownlint.yaml +66 -53
  59. package/schema/markdownlint-config-schema-strict.json +4709 -1537
  60. package/schema/markdownlint-config-schema.json +4709 -1537
@@ -13,77 +13,178 @@ export interface ConfigurationStrict {
13
13
  /**
14
14
  * Default state for all rules
15
15
  */
16
- default?: boolean;
16
+ default?: boolean | ("error" | "warning");
17
17
  /**
18
18
  * Path to configuration file to extend
19
19
  */
20
20
  extends?: string | null;
21
21
  /**
22
- * MD001/heading-increment : Heading levels should only increment by one level at a time : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md001.md
22
+ * MD001/heading-increment : Heading levels should only increment by one level at a time : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md001.md
23
23
  */
24
- MD001?: boolean;
24
+ MD001?:
25
+ | boolean
26
+ | ("error" | "warning")
27
+ | {
28
+ /**
29
+ * Whether to enable the rule
30
+ */
31
+ enabled?: boolean;
32
+ /**
33
+ * Rule severity
34
+ */
35
+ severity?: "error" | "warning";
36
+ /**
37
+ * RegExp for matching title in front matter
38
+ */
39
+ front_matter_title?: string;
40
+ };
25
41
  /**
26
- * MD001/heading-increment : Heading levels should only increment by one level at a time : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md001.md
42
+ * MD001/heading-increment : Heading levels should only increment by one level at a time : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md001.md
27
43
  */
28
- "heading-increment"?: boolean;
44
+ "heading-increment"?:
45
+ | boolean
46
+ | ("error" | "warning")
47
+ | {
48
+ /**
49
+ * Whether to enable the rule
50
+ */
51
+ enabled?: boolean;
52
+ /**
53
+ * Rule severity
54
+ */
55
+ severity?: "error" | "warning";
56
+ /**
57
+ * RegExp for matching title in front matter
58
+ */
59
+ front_matter_title?: string;
60
+ };
29
61
  /**
30
- * MD003/heading-style : Heading style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md003.md
62
+ * MD003/heading-style : Heading style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md003.md
31
63
  */
32
64
  MD003?:
33
65
  | boolean
66
+ | ("error" | "warning")
34
67
  | {
68
+ /**
69
+ * Whether to enable the rule
70
+ */
71
+ enabled?: boolean;
72
+ /**
73
+ * Rule severity
74
+ */
75
+ severity?: "error" | "warning";
35
76
  /**
36
77
  * Heading style
37
78
  */
38
79
  style?: "consistent" | "atx" | "atx_closed" | "setext" | "setext_with_atx" | "setext_with_atx_closed";
39
80
  };
40
81
  /**
41
- * MD003/heading-style : Heading style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md003.md
82
+ * MD003/heading-style : Heading style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md003.md
42
83
  */
43
84
  "heading-style"?:
44
85
  | boolean
86
+ | ("error" | "warning")
45
87
  | {
88
+ /**
89
+ * Whether to enable the rule
90
+ */
91
+ enabled?: boolean;
92
+ /**
93
+ * Rule severity
94
+ */
95
+ severity?: "error" | "warning";
46
96
  /**
47
97
  * Heading style
48
98
  */
49
99
  style?: "consistent" | "atx" | "atx_closed" | "setext" | "setext_with_atx" | "setext_with_atx_closed";
50
100
  };
51
101
  /**
52
- * MD004/ul-style : Unordered list style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md004.md
102
+ * MD004/ul-style : Unordered list style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md004.md
53
103
  */
54
104
  MD004?:
55
105
  | boolean
106
+ | ("error" | "warning")
56
107
  | {
108
+ /**
109
+ * Whether to enable the rule
110
+ */
111
+ enabled?: boolean;
112
+ /**
113
+ * Rule severity
114
+ */
115
+ severity?: "error" | "warning";
57
116
  /**
58
117
  * List style
59
118
  */
60
119
  style?: "consistent" | "asterisk" | "plus" | "dash" | "sublist";
61
120
  };
62
121
  /**
63
- * MD004/ul-style : Unordered list style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md004.md
122
+ * MD004/ul-style : Unordered list style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md004.md
64
123
  */
65
124
  "ul-style"?:
66
125
  | boolean
126
+ | ("error" | "warning")
67
127
  | {
128
+ /**
129
+ * Whether to enable the rule
130
+ */
131
+ enabled?: boolean;
132
+ /**
133
+ * Rule severity
134
+ */
135
+ severity?: "error" | "warning";
68
136
  /**
69
137
  * List style
70
138
  */
71
139
  style?: "consistent" | "asterisk" | "plus" | "dash" | "sublist";
72
140
  };
73
141
  /**
74
- * MD005/list-indent : Inconsistent indentation for list items at the same level : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md005.md
142
+ * MD005/list-indent : Inconsistent indentation for list items at the same level : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md005.md
75
143
  */
76
- MD005?: boolean;
144
+ MD005?:
145
+ | boolean
146
+ | ("error" | "warning")
147
+ | {
148
+ /**
149
+ * Whether to enable the rule
150
+ */
151
+ enabled?: boolean;
152
+ /**
153
+ * Rule severity
154
+ */
155
+ severity?: "error" | "warning";
156
+ };
77
157
  /**
78
- * MD005/list-indent : Inconsistent indentation for list items at the same level : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md005.md
158
+ * MD005/list-indent : Inconsistent indentation for list items at the same level : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md005.md
79
159
  */
80
- "list-indent"?: boolean;
160
+ "list-indent"?:
161
+ | boolean
162
+ | ("error" | "warning")
163
+ | {
164
+ /**
165
+ * Whether to enable the rule
166
+ */
167
+ enabled?: boolean;
168
+ /**
169
+ * Rule severity
170
+ */
171
+ severity?: "error" | "warning";
172
+ };
81
173
  /**
82
- * MD007/ul-indent : Unordered list indentation : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md007.md
174
+ * MD007/ul-indent : Unordered list indentation : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md007.md
83
175
  */
84
176
  MD007?:
85
177
  | boolean
178
+ | ("error" | "warning")
86
179
  | {
180
+ /**
181
+ * Whether to enable the rule
182
+ */
183
+ enabled?: boolean;
184
+ /**
185
+ * Rule severity
186
+ */
187
+ severity?: "error" | "warning";
87
188
  /**
88
189
  * Spaces for indent
89
190
  */
@@ -98,11 +199,20 @@ export interface ConfigurationStrict {
98
199
  start_indent?: number;
99
200
  };
100
201
  /**
101
- * MD007/ul-indent : Unordered list indentation : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md007.md
202
+ * MD007/ul-indent : Unordered list indentation : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md007.md
102
203
  */
103
204
  "ul-indent"?:
104
205
  | boolean
206
+ | ("error" | "warning")
105
207
  | {
208
+ /**
209
+ * Whether to enable the rule
210
+ */
211
+ enabled?: boolean;
212
+ /**
213
+ * Rule severity
214
+ */
215
+ severity?: "error" | "warning";
106
216
  /**
107
217
  * Spaces for indent
108
218
  */
@@ -117,15 +227,28 @@ export interface ConfigurationStrict {
117
227
  start_indent?: number;
118
228
  };
119
229
  /**
120
- * MD009/no-trailing-spaces : Trailing spaces : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md009.md
230
+ * MD009/no-trailing-spaces : Trailing spaces : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md009.md
121
231
  */
122
232
  MD009?:
123
233
  | boolean
234
+ | ("error" | "warning")
124
235
  | {
236
+ /**
237
+ * Whether to enable the rule
238
+ */
239
+ enabled?: boolean;
240
+ /**
241
+ * Rule severity
242
+ */
243
+ severity?: "error" | "warning";
125
244
  /**
126
245
  * Spaces for line break
127
246
  */
128
247
  br_spaces?: number;
248
+ /**
249
+ * Include code blocks
250
+ */
251
+ code_blocks?: boolean;
129
252
  /**
130
253
  * Allow spaces for empty lines in list items
131
254
  */
@@ -136,15 +259,28 @@ export interface ConfigurationStrict {
136
259
  strict?: boolean;
137
260
  };
138
261
  /**
139
- * MD009/no-trailing-spaces : Trailing spaces : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md009.md
262
+ * MD009/no-trailing-spaces : Trailing spaces : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md009.md
140
263
  */
141
264
  "no-trailing-spaces"?:
142
265
  | boolean
266
+ | ("error" | "warning")
143
267
  | {
268
+ /**
269
+ * Whether to enable the rule
270
+ */
271
+ enabled?: boolean;
272
+ /**
273
+ * Rule severity
274
+ */
275
+ severity?: "error" | "warning";
144
276
  /**
145
277
  * Spaces for line break
146
278
  */
147
279
  br_spaces?: number;
280
+ /**
281
+ * Include code blocks
282
+ */
283
+ code_blocks?: boolean;
148
284
  /**
149
285
  * Allow spaces for empty lines in list items
150
286
  */
@@ -155,11 +291,20 @@ export interface ConfigurationStrict {
155
291
  strict?: boolean;
156
292
  };
157
293
  /**
158
- * MD010/no-hard-tabs : Hard tabs : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md010.md
294
+ * MD010/no-hard-tabs : Hard tabs : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md010.md
159
295
  */
160
296
  MD010?:
161
297
  | boolean
298
+ | ("error" | "warning")
162
299
  | {
300
+ /**
301
+ * Whether to enable the rule
302
+ */
303
+ enabled?: boolean;
304
+ /**
305
+ * Rule severity
306
+ */
307
+ severity?: "error" | "warning";
163
308
  /**
164
309
  * Include code blocks
165
310
  */
@@ -174,11 +319,20 @@ export interface ConfigurationStrict {
174
319
  spaces_per_tab?: number;
175
320
  };
176
321
  /**
177
- * MD010/no-hard-tabs : Hard tabs : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md010.md
322
+ * MD010/no-hard-tabs : Hard tabs : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md010.md
178
323
  */
179
324
  "no-hard-tabs"?:
180
325
  | boolean
326
+ | ("error" | "warning")
181
327
  | {
328
+ /**
329
+ * Whether to enable the rule
330
+ */
331
+ enabled?: boolean;
332
+ /**
333
+ * Rule severity
334
+ */
335
+ severity?: "error" | "warning";
182
336
  /**
183
337
  * Include code blocks
184
338
  */
@@ -193,41 +347,92 @@ export interface ConfigurationStrict {
193
347
  spaces_per_tab?: number;
194
348
  };
195
349
  /**
196
- * MD011/no-reversed-links : Reversed link syntax : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md011.md
350
+ * MD011/no-reversed-links : Reversed link syntax : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md011.md
197
351
  */
198
- MD011?: boolean;
352
+ MD011?:
353
+ | boolean
354
+ | ("error" | "warning")
355
+ | {
356
+ /**
357
+ * Whether to enable the rule
358
+ */
359
+ enabled?: boolean;
360
+ /**
361
+ * Rule severity
362
+ */
363
+ severity?: "error" | "warning";
364
+ };
199
365
  /**
200
- * MD011/no-reversed-links : Reversed link syntax : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md011.md
366
+ * MD011/no-reversed-links : Reversed link syntax : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md011.md
201
367
  */
202
- "no-reversed-links"?: boolean;
368
+ "no-reversed-links"?:
369
+ | boolean
370
+ | ("error" | "warning")
371
+ | {
372
+ /**
373
+ * Whether to enable the rule
374
+ */
375
+ enabled?: boolean;
376
+ /**
377
+ * Rule severity
378
+ */
379
+ severity?: "error" | "warning";
380
+ };
203
381
  /**
204
- * MD012/no-multiple-blanks : Multiple consecutive blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md012.md
382
+ * MD012/no-multiple-blanks : Multiple consecutive blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md012.md
205
383
  */
206
384
  MD012?:
207
385
  | boolean
386
+ | ("error" | "warning")
208
387
  | {
388
+ /**
389
+ * Whether to enable the rule
390
+ */
391
+ enabled?: boolean;
392
+ /**
393
+ * Rule severity
394
+ */
395
+ severity?: "error" | "warning";
209
396
  /**
210
397
  * Consecutive blank lines
211
398
  */
212
399
  maximum?: number;
213
400
  };
214
401
  /**
215
- * MD012/no-multiple-blanks : Multiple consecutive blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md012.md
402
+ * MD012/no-multiple-blanks : Multiple consecutive blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md012.md
216
403
  */
217
404
  "no-multiple-blanks"?:
218
405
  | boolean
406
+ | ("error" | "warning")
219
407
  | {
408
+ /**
409
+ * Whether to enable the rule
410
+ */
411
+ enabled?: boolean;
412
+ /**
413
+ * Rule severity
414
+ */
415
+ severity?: "error" | "warning";
220
416
  /**
221
417
  * Consecutive blank lines
222
418
  */
223
419
  maximum?: number;
224
420
  };
225
421
  /**
226
- * MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md013.md
422
+ * MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md013.md
227
423
  */
228
424
  MD013?:
229
425
  | boolean
426
+ | ("error" | "warning")
230
427
  | {
428
+ /**
429
+ * Whether to enable the rule
430
+ */
431
+ enabled?: boolean;
432
+ /**
433
+ * Rule severity
434
+ */
435
+ severity?: "error" | "warning";
231
436
  /**
232
437
  * Number of characters
233
438
  */
@@ -262,11 +467,20 @@ export interface ConfigurationStrict {
262
467
  stern?: boolean;
263
468
  };
264
469
  /**
265
- * MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md013.md
470
+ * MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md013.md
266
471
  */
267
472
  "line-length"?:
268
473
  | boolean
474
+ | ("error" | "warning")
269
475
  | {
476
+ /**
477
+ * Whether to enable the rule
478
+ */
479
+ enabled?: boolean;
480
+ /**
481
+ * Rule severity
482
+ */
483
+ severity?: "error" | "warning";
270
484
  /**
271
485
  * Number of characters
272
486
  */
@@ -301,51 +515,180 @@ export interface ConfigurationStrict {
301
515
  stern?: boolean;
302
516
  };
303
517
  /**
304
- * MD014/commands-show-output : Dollar signs used before commands without showing output : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md014.md
518
+ * MD014/commands-show-output : Dollar signs used before commands without showing output : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md014.md
305
519
  */
306
- MD014?: boolean;
520
+ MD014?:
521
+ | boolean
522
+ | ("error" | "warning")
523
+ | {
524
+ /**
525
+ * Whether to enable the rule
526
+ */
527
+ enabled?: boolean;
528
+ /**
529
+ * Rule severity
530
+ */
531
+ severity?: "error" | "warning";
532
+ };
307
533
  /**
308
- * MD014/commands-show-output : Dollar signs used before commands without showing output : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md014.md
534
+ * MD014/commands-show-output : Dollar signs used before commands without showing output : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md014.md
309
535
  */
310
- "commands-show-output"?: boolean;
536
+ "commands-show-output"?:
537
+ | boolean
538
+ | ("error" | "warning")
539
+ | {
540
+ /**
541
+ * Whether to enable the rule
542
+ */
543
+ enabled?: boolean;
544
+ /**
545
+ * Rule severity
546
+ */
547
+ severity?: "error" | "warning";
548
+ };
311
549
  /**
312
- * MD018/no-missing-space-atx : No space after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md018.md
550
+ * MD018/no-missing-space-atx : No space after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md018.md
313
551
  */
314
- MD018?: boolean;
552
+ MD018?:
553
+ | boolean
554
+ | ("error" | "warning")
555
+ | {
556
+ /**
557
+ * Whether to enable the rule
558
+ */
559
+ enabled?: boolean;
560
+ /**
561
+ * Rule severity
562
+ */
563
+ severity?: "error" | "warning";
564
+ };
315
565
  /**
316
- * MD018/no-missing-space-atx : No space after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md018.md
566
+ * MD018/no-missing-space-atx : No space after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md018.md
317
567
  */
318
- "no-missing-space-atx"?: boolean;
568
+ "no-missing-space-atx"?:
569
+ | boolean
570
+ | ("error" | "warning")
571
+ | {
572
+ /**
573
+ * Whether to enable the rule
574
+ */
575
+ enabled?: boolean;
576
+ /**
577
+ * Rule severity
578
+ */
579
+ severity?: "error" | "warning";
580
+ };
319
581
  /**
320
- * MD019/no-multiple-space-atx : Multiple spaces after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md019.md
582
+ * MD019/no-multiple-space-atx : Multiple spaces after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md019.md
321
583
  */
322
- MD019?: boolean;
584
+ MD019?:
585
+ | boolean
586
+ | ("error" | "warning")
587
+ | {
588
+ /**
589
+ * Whether to enable the rule
590
+ */
591
+ enabled?: boolean;
592
+ /**
593
+ * Rule severity
594
+ */
595
+ severity?: "error" | "warning";
596
+ };
323
597
  /**
324
- * MD019/no-multiple-space-atx : Multiple spaces after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md019.md
598
+ * MD019/no-multiple-space-atx : Multiple spaces after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md019.md
325
599
  */
326
- "no-multiple-space-atx"?: boolean;
600
+ "no-multiple-space-atx"?:
601
+ | boolean
602
+ | ("error" | "warning")
603
+ | {
604
+ /**
605
+ * Whether to enable the rule
606
+ */
607
+ enabled?: boolean;
608
+ /**
609
+ * Rule severity
610
+ */
611
+ severity?: "error" | "warning";
612
+ };
327
613
  /**
328
- * MD020/no-missing-space-closed-atx : No space inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md020.md
614
+ * MD020/no-missing-space-closed-atx : No space inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md020.md
329
615
  */
330
- MD020?: boolean;
616
+ MD020?:
617
+ | boolean
618
+ | ("error" | "warning")
619
+ | {
620
+ /**
621
+ * Whether to enable the rule
622
+ */
623
+ enabled?: boolean;
624
+ /**
625
+ * Rule severity
626
+ */
627
+ severity?: "error" | "warning";
628
+ };
331
629
  /**
332
- * MD020/no-missing-space-closed-atx : No space inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md020.md
630
+ * MD020/no-missing-space-closed-atx : No space inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md020.md
333
631
  */
334
- "no-missing-space-closed-atx"?: boolean;
632
+ "no-missing-space-closed-atx"?:
633
+ | boolean
634
+ | ("error" | "warning")
635
+ | {
636
+ /**
637
+ * Whether to enable the rule
638
+ */
639
+ enabled?: boolean;
640
+ /**
641
+ * Rule severity
642
+ */
643
+ severity?: "error" | "warning";
644
+ };
335
645
  /**
336
- * MD021/no-multiple-space-closed-atx : Multiple spaces inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md021.md
646
+ * MD021/no-multiple-space-closed-atx : Multiple spaces inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md021.md
337
647
  */
338
- MD021?: boolean;
648
+ MD021?:
649
+ | boolean
650
+ | ("error" | "warning")
651
+ | {
652
+ /**
653
+ * Whether to enable the rule
654
+ */
655
+ enabled?: boolean;
656
+ /**
657
+ * Rule severity
658
+ */
659
+ severity?: "error" | "warning";
660
+ };
339
661
  /**
340
- * MD021/no-multiple-space-closed-atx : Multiple spaces inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md021.md
662
+ * MD021/no-multiple-space-closed-atx : Multiple spaces inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md021.md
341
663
  */
342
- "no-multiple-space-closed-atx"?: boolean;
664
+ "no-multiple-space-closed-atx"?:
665
+ | boolean
666
+ | ("error" | "warning")
667
+ | {
668
+ /**
669
+ * Whether to enable the rule
670
+ */
671
+ enabled?: boolean;
672
+ /**
673
+ * Rule severity
674
+ */
675
+ severity?: "error" | "warning";
676
+ };
343
677
  /**
344
- * MD022/blanks-around-headings : Headings should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md022.md
678
+ * MD022/blanks-around-headings : Headings should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md022.md
345
679
  */
346
680
  MD022?:
347
681
  | boolean
682
+ | ("error" | "warning")
348
683
  | {
684
+ /**
685
+ * Whether to enable the rule
686
+ */
687
+ enabled?: boolean;
688
+ /**
689
+ * Rule severity
690
+ */
691
+ severity?: "error" | "warning";
349
692
  /**
350
693
  * Blank lines above heading
351
694
  */
@@ -356,11 +699,20 @@ export interface ConfigurationStrict {
356
699
  lines_below?: number | number[];
357
700
  };
358
701
  /**
359
- * MD022/blanks-around-headings : Headings should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md022.md
702
+ * MD022/blanks-around-headings : Headings should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md022.md
360
703
  */
361
704
  "blanks-around-headings"?:
362
705
  | boolean
706
+ | ("error" | "warning")
363
707
  | {
708
+ /**
709
+ * Whether to enable the rule
710
+ */
711
+ enabled?: boolean;
712
+ /**
713
+ * Rule severity
714
+ */
715
+ severity?: "error" | "warning";
364
716
  /**
365
717
  * Blank lines above heading
366
718
  */
@@ -371,41 +723,92 @@ export interface ConfigurationStrict {
371
723
  lines_below?: number | number[];
372
724
  };
373
725
  /**
374
- * MD023/heading-start-left : Headings must start at the beginning of the line : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md023.md
726
+ * MD023/heading-start-left : Headings must start at the beginning of the line : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md023.md
375
727
  */
376
- MD023?: boolean;
728
+ MD023?:
729
+ | boolean
730
+ | ("error" | "warning")
731
+ | {
732
+ /**
733
+ * Whether to enable the rule
734
+ */
735
+ enabled?: boolean;
736
+ /**
737
+ * Rule severity
738
+ */
739
+ severity?: "error" | "warning";
740
+ };
377
741
  /**
378
- * MD023/heading-start-left : Headings must start at the beginning of the line : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md023.md
742
+ * MD023/heading-start-left : Headings must start at the beginning of the line : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md023.md
379
743
  */
380
- "heading-start-left"?: boolean;
744
+ "heading-start-left"?:
745
+ | boolean
746
+ | ("error" | "warning")
747
+ | {
748
+ /**
749
+ * Whether to enable the rule
750
+ */
751
+ enabled?: boolean;
752
+ /**
753
+ * Rule severity
754
+ */
755
+ severity?: "error" | "warning";
756
+ };
381
757
  /**
382
- * MD024/no-duplicate-heading : Multiple headings with the same content : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md024.md
758
+ * MD024/no-duplicate-heading : Multiple headings with the same content : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md024.md
383
759
  */
384
760
  MD024?:
385
761
  | boolean
762
+ | ("error" | "warning")
386
763
  | {
764
+ /**
765
+ * Whether to enable the rule
766
+ */
767
+ enabled?: boolean;
768
+ /**
769
+ * Rule severity
770
+ */
771
+ severity?: "error" | "warning";
387
772
  /**
388
773
  * Only check sibling headings
389
774
  */
390
775
  siblings_only?: boolean;
391
776
  };
392
777
  /**
393
- * MD024/no-duplicate-heading : Multiple headings with the same content : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md024.md
778
+ * MD024/no-duplicate-heading : Multiple headings with the same content : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md024.md
394
779
  */
395
780
  "no-duplicate-heading"?:
396
781
  | boolean
782
+ | ("error" | "warning")
397
783
  | {
784
+ /**
785
+ * Whether to enable the rule
786
+ */
787
+ enabled?: boolean;
788
+ /**
789
+ * Rule severity
790
+ */
791
+ severity?: "error" | "warning";
398
792
  /**
399
793
  * Only check sibling headings
400
794
  */
401
795
  siblings_only?: boolean;
402
796
  };
403
797
  /**
404
- * MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md025.md
798
+ * MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md025.md
405
799
  */
406
800
  MD025?:
407
801
  | boolean
802
+ | ("error" | "warning")
408
803
  | {
804
+ /**
805
+ * Whether to enable the rule
806
+ */
807
+ enabled?: boolean;
808
+ /**
809
+ * Rule severity
810
+ */
811
+ severity?: "error" | "warning";
409
812
  /**
410
813
  * RegExp for matching title in front matter
411
814
  */
@@ -416,11 +819,20 @@ export interface ConfigurationStrict {
416
819
  level?: number;
417
820
  };
418
821
  /**
419
- * MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md025.md
822
+ * MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md025.md
420
823
  */
421
824
  "single-title"?:
422
825
  | boolean
826
+ | ("error" | "warning")
423
827
  | {
828
+ /**
829
+ * Whether to enable the rule
830
+ */
831
+ enabled?: boolean;
832
+ /**
833
+ * Rule severity
834
+ */
835
+ severity?: "error" | "warning";
424
836
  /**
425
837
  * RegExp for matching title in front matter
426
838
  */
@@ -431,11 +843,20 @@ export interface ConfigurationStrict {
431
843
  level?: number;
432
844
  };
433
845
  /**
434
- * MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md025.md
846
+ * MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md025.md
435
847
  */
436
848
  "single-h1"?:
437
849
  | boolean
850
+ | ("error" | "warning")
438
851
  | {
852
+ /**
853
+ * Whether to enable the rule
854
+ */
855
+ enabled?: boolean;
856
+ /**
857
+ * Rule severity
858
+ */
859
+ severity?: "error" | "warning";
439
860
  /**
440
861
  * RegExp for matching title in front matter
441
862
  */
@@ -446,85 +867,172 @@ export interface ConfigurationStrict {
446
867
  level?: number;
447
868
  };
448
869
  /**
449
- * MD026/no-trailing-punctuation : Trailing punctuation in heading : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md026.md
870
+ * MD026/no-trailing-punctuation : Trailing punctuation in heading : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md026.md
450
871
  */
451
872
  MD026?:
452
873
  | boolean
874
+ | ("error" | "warning")
453
875
  | {
876
+ /**
877
+ * Whether to enable the rule
878
+ */
879
+ enabled?: boolean;
880
+ /**
881
+ * Rule severity
882
+ */
883
+ severity?: "error" | "warning";
454
884
  /**
455
885
  * Punctuation characters
456
886
  */
457
887
  punctuation?: string;
458
888
  };
459
889
  /**
460
- * MD026/no-trailing-punctuation : Trailing punctuation in heading : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md026.md
890
+ * MD026/no-trailing-punctuation : Trailing punctuation in heading : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md026.md
461
891
  */
462
892
  "no-trailing-punctuation"?:
463
893
  | boolean
894
+ | ("error" | "warning")
464
895
  | {
896
+ /**
897
+ * Whether to enable the rule
898
+ */
899
+ enabled?: boolean;
900
+ /**
901
+ * Rule severity
902
+ */
903
+ severity?: "error" | "warning";
465
904
  /**
466
905
  * Punctuation characters
467
906
  */
468
907
  punctuation?: string;
469
908
  };
470
909
  /**
471
- * MD027/no-multiple-space-blockquote : Multiple spaces after blockquote symbol : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md027.md
910
+ * MD027/no-multiple-space-blockquote : Multiple spaces after blockquote symbol : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md027.md
472
911
  */
473
912
  MD027?:
474
913
  | boolean
914
+ | ("error" | "warning")
475
915
  | {
916
+ /**
917
+ * Whether to enable the rule
918
+ */
919
+ enabled?: boolean;
920
+ /**
921
+ * Rule severity
922
+ */
923
+ severity?: "error" | "warning";
476
924
  /**
477
925
  * Include list items
478
926
  */
479
927
  list_items?: boolean;
480
928
  };
481
929
  /**
482
- * MD027/no-multiple-space-blockquote : Multiple spaces after blockquote symbol : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md027.md
930
+ * MD027/no-multiple-space-blockquote : Multiple spaces after blockquote symbol : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md027.md
483
931
  */
484
932
  "no-multiple-space-blockquote"?:
485
933
  | boolean
934
+ | ("error" | "warning")
486
935
  | {
936
+ /**
937
+ * Whether to enable the rule
938
+ */
939
+ enabled?: boolean;
940
+ /**
941
+ * Rule severity
942
+ */
943
+ severity?: "error" | "warning";
487
944
  /**
488
945
  * Include list items
489
946
  */
490
947
  list_items?: boolean;
491
948
  };
492
949
  /**
493
- * MD028/no-blanks-blockquote : Blank line inside blockquote : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md028.md
950
+ * MD028/no-blanks-blockquote : Blank line inside blockquote : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md028.md
494
951
  */
495
- MD028?: boolean;
952
+ MD028?:
953
+ | boolean
954
+ | ("error" | "warning")
955
+ | {
956
+ /**
957
+ * Whether to enable the rule
958
+ */
959
+ enabled?: boolean;
960
+ /**
961
+ * Rule severity
962
+ */
963
+ severity?: "error" | "warning";
964
+ };
496
965
  /**
497
- * MD028/no-blanks-blockquote : Blank line inside blockquote : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md028.md
966
+ * MD028/no-blanks-blockquote : Blank line inside blockquote : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md028.md
498
967
  */
499
- "no-blanks-blockquote"?: boolean;
968
+ "no-blanks-blockquote"?:
969
+ | boolean
970
+ | ("error" | "warning")
971
+ | {
972
+ /**
973
+ * Whether to enable the rule
974
+ */
975
+ enabled?: boolean;
976
+ /**
977
+ * Rule severity
978
+ */
979
+ severity?: "error" | "warning";
980
+ };
500
981
  /**
501
- * MD029/ol-prefix : Ordered list item prefix : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md029.md
982
+ * MD029/ol-prefix : Ordered list item prefix : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md029.md
502
983
  */
503
984
  MD029?:
504
985
  | boolean
986
+ | ("error" | "warning")
505
987
  | {
988
+ /**
989
+ * Whether to enable the rule
990
+ */
991
+ enabled?: boolean;
992
+ /**
993
+ * Rule severity
994
+ */
995
+ severity?: "error" | "warning";
506
996
  /**
507
997
  * List style
508
998
  */
509
999
  style?: "one" | "ordered" | "one_or_ordered" | "zero";
510
1000
  };
511
1001
  /**
512
- * MD029/ol-prefix : Ordered list item prefix : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md029.md
1002
+ * MD029/ol-prefix : Ordered list item prefix : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md029.md
513
1003
  */
514
1004
  "ol-prefix"?:
515
1005
  | boolean
1006
+ | ("error" | "warning")
516
1007
  | {
1008
+ /**
1009
+ * Whether to enable the rule
1010
+ */
1011
+ enabled?: boolean;
1012
+ /**
1013
+ * Rule severity
1014
+ */
1015
+ severity?: "error" | "warning";
517
1016
  /**
518
1017
  * List style
519
1018
  */
520
1019
  style?: "one" | "ordered" | "one_or_ordered" | "zero";
521
1020
  };
522
1021
  /**
523
- * MD030/list-marker-space : Spaces after list markers : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md030.md
1022
+ * MD030/list-marker-space : Spaces after list markers : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md030.md
524
1023
  */
525
1024
  MD030?:
526
1025
  | boolean
1026
+ | ("error" | "warning")
527
1027
  | {
1028
+ /**
1029
+ * Whether to enable the rule
1030
+ */
1031
+ enabled?: boolean;
1032
+ /**
1033
+ * Rule severity
1034
+ */
1035
+ severity?: "error" | "warning";
528
1036
  /**
529
1037
  * Spaces for single-line unordered list items
530
1038
  */
@@ -543,11 +1051,20 @@ export interface ConfigurationStrict {
543
1051
  ol_multi?: number;
544
1052
  };
545
1053
  /**
546
- * MD030/list-marker-space : Spaces after list markers : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md030.md
1054
+ * MD030/list-marker-space : Spaces after list markers : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md030.md
547
1055
  */
548
1056
  "list-marker-space"?:
549
1057
  | boolean
1058
+ | ("error" | "warning")
550
1059
  | {
1060
+ /**
1061
+ * Whether to enable the rule
1062
+ */
1063
+ enabled?: boolean;
1064
+ /**
1065
+ * Rule severity
1066
+ */
1067
+ severity?: "error" | "warning";
551
1068
  /**
552
1069
  * Spaces for single-line unordered list items
553
1070
  */
@@ -566,139 +1083,348 @@ export interface ConfigurationStrict {
566
1083
  ol_multi?: number;
567
1084
  };
568
1085
  /**
569
- * MD031/blanks-around-fences : Fenced code blocks should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md031.md
1086
+ * MD031/blanks-around-fences : Fenced code blocks should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md031.md
570
1087
  */
571
1088
  MD031?:
572
1089
  | boolean
1090
+ | ("error" | "warning")
573
1091
  | {
1092
+ /**
1093
+ * Whether to enable the rule
1094
+ */
1095
+ enabled?: boolean;
1096
+ /**
1097
+ * Rule severity
1098
+ */
1099
+ severity?: "error" | "warning";
574
1100
  /**
575
1101
  * Include list items
576
1102
  */
577
1103
  list_items?: boolean;
578
1104
  };
579
1105
  /**
580
- * MD031/blanks-around-fences : Fenced code blocks should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md031.md
1106
+ * MD031/blanks-around-fences : Fenced code blocks should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md031.md
581
1107
  */
582
1108
  "blanks-around-fences"?:
583
1109
  | boolean
1110
+ | ("error" | "warning")
584
1111
  | {
1112
+ /**
1113
+ * Whether to enable the rule
1114
+ */
1115
+ enabled?: boolean;
1116
+ /**
1117
+ * Rule severity
1118
+ */
1119
+ severity?: "error" | "warning";
585
1120
  /**
586
1121
  * Include list items
587
1122
  */
588
1123
  list_items?: boolean;
589
1124
  };
590
1125
  /**
591
- * MD032/blanks-around-lists : Lists should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md032.md
1126
+ * MD032/blanks-around-lists : Lists should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md032.md
592
1127
  */
593
- MD032?: boolean;
1128
+ MD032?:
1129
+ | boolean
1130
+ | ("error" | "warning")
1131
+ | {
1132
+ /**
1133
+ * Whether to enable the rule
1134
+ */
1135
+ enabled?: boolean;
1136
+ /**
1137
+ * Rule severity
1138
+ */
1139
+ severity?: "error" | "warning";
1140
+ };
594
1141
  /**
595
- * MD032/blanks-around-lists : Lists should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md032.md
1142
+ * MD032/blanks-around-lists : Lists should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md032.md
596
1143
  */
597
- "blanks-around-lists"?: boolean;
1144
+ "blanks-around-lists"?:
1145
+ | boolean
1146
+ | ("error" | "warning")
1147
+ | {
1148
+ /**
1149
+ * Whether to enable the rule
1150
+ */
1151
+ enabled?: boolean;
1152
+ /**
1153
+ * Rule severity
1154
+ */
1155
+ severity?: "error" | "warning";
1156
+ };
598
1157
  /**
599
- * MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md033.md
1158
+ * MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md033.md
600
1159
  */
601
1160
  MD033?:
602
1161
  | boolean
1162
+ | ("error" | "warning")
1163
+ | {
1164
+ /**
1165
+ * Whether to enable the rule
1166
+ */
1167
+ enabled?: boolean;
1168
+ /**
1169
+ * Rule severity
1170
+ */
1171
+ severity?: "error" | "warning";
1172
+ /**
1173
+ * Allowed elements
1174
+ */
1175
+ allowed_elements?: string[];
1176
+ /**
1177
+ * Allowed elements in tables
1178
+ */
1179
+ table_allowed_elements?: string[];
1180
+ };
1181
+ /**
1182
+ * MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md033.md
1183
+ */
1184
+ "no-inline-html"?:
1185
+ | boolean
1186
+ | ("error" | "warning")
1187
+ | {
1188
+ /**
1189
+ * Whether to enable the rule
1190
+ */
1191
+ enabled?: boolean;
1192
+ /**
1193
+ * Rule severity
1194
+ */
1195
+ severity?: "error" | "warning";
1196
+ /**
1197
+ * Allowed elements
1198
+ */
1199
+ allowed_elements?: string[];
1200
+ /**
1201
+ * Allowed elements in tables
1202
+ */
1203
+ table_allowed_elements?: string[];
1204
+ };
1205
+ /**
1206
+ * MD034/no-bare-urls : Bare URL used : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md034.md
1207
+ */
1208
+ MD034?:
1209
+ | boolean
1210
+ | ("error" | "warning")
1211
+ | {
1212
+ /**
1213
+ * Whether to enable the rule
1214
+ */
1215
+ enabled?: boolean;
1216
+ /**
1217
+ * Rule severity
1218
+ */
1219
+ severity?: "error" | "warning";
1220
+ };
1221
+ /**
1222
+ * MD034/no-bare-urls : Bare URL used : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md034.md
1223
+ */
1224
+ "no-bare-urls"?:
1225
+ | boolean
1226
+ | ("error" | "warning")
1227
+ | {
1228
+ /**
1229
+ * Whether to enable the rule
1230
+ */
1231
+ enabled?: boolean;
1232
+ /**
1233
+ * Rule severity
1234
+ */
1235
+ severity?: "error" | "warning";
1236
+ };
1237
+ /**
1238
+ * MD035/hr-style : Horizontal rule style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md035.md
1239
+ */
1240
+ MD035?:
1241
+ | boolean
1242
+ | ("error" | "warning")
1243
+ | {
1244
+ /**
1245
+ * Whether to enable the rule
1246
+ */
1247
+ enabled?: boolean;
1248
+ /**
1249
+ * Rule severity
1250
+ */
1251
+ severity?: "error" | "warning";
1252
+ /**
1253
+ * Horizontal rule style
1254
+ */
1255
+ style?: string;
1256
+ };
1257
+ /**
1258
+ * MD035/hr-style : Horizontal rule style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md035.md
1259
+ */
1260
+ "hr-style"?:
1261
+ | boolean
1262
+ | ("error" | "warning")
1263
+ | {
1264
+ /**
1265
+ * Whether to enable the rule
1266
+ */
1267
+ enabled?: boolean;
1268
+ /**
1269
+ * Rule severity
1270
+ */
1271
+ severity?: "error" | "warning";
1272
+ /**
1273
+ * Horizontal rule style
1274
+ */
1275
+ style?: string;
1276
+ };
1277
+ /**
1278
+ * MD036/no-emphasis-as-heading : Emphasis used instead of a heading : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md036.md
1279
+ */
1280
+ MD036?:
1281
+ | boolean
1282
+ | ("error" | "warning")
1283
+ | {
1284
+ /**
1285
+ * Whether to enable the rule
1286
+ */
1287
+ enabled?: boolean;
1288
+ /**
1289
+ * Rule severity
1290
+ */
1291
+ severity?: "error" | "warning";
1292
+ /**
1293
+ * Punctuation characters
1294
+ */
1295
+ punctuation?: string;
1296
+ };
1297
+ /**
1298
+ * MD036/no-emphasis-as-heading : Emphasis used instead of a heading : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md036.md
1299
+ */
1300
+ "no-emphasis-as-heading"?:
1301
+ | boolean
1302
+ | ("error" | "warning")
603
1303
  | {
604
1304
  /**
605
- * Allowed elements
1305
+ * Whether to enable the rule
1306
+ */
1307
+ enabled?: boolean;
1308
+ /**
1309
+ * Rule severity
1310
+ */
1311
+ severity?: "error" | "warning";
1312
+ /**
1313
+ * Punctuation characters
1314
+ */
1315
+ punctuation?: string;
1316
+ };
1317
+ /**
1318
+ * MD037/no-space-in-emphasis : Spaces inside emphasis markers : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md037.md
1319
+ */
1320
+ MD037?:
1321
+ | boolean
1322
+ | ("error" | "warning")
1323
+ | {
1324
+ /**
1325
+ * Whether to enable the rule
1326
+ */
1327
+ enabled?: boolean;
1328
+ /**
1329
+ * Rule severity
606
1330
  */
607
- allowed_elements?: string[];
1331
+ severity?: "error" | "warning";
608
1332
  };
609
1333
  /**
610
- * MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md033.md
1334
+ * MD037/no-space-in-emphasis : Spaces inside emphasis markers : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md037.md
611
1335
  */
612
- "no-inline-html"?:
1336
+ "no-space-in-emphasis"?:
613
1337
  | boolean
1338
+ | ("error" | "warning")
614
1339
  | {
615
1340
  /**
616
- * Allowed elements
1341
+ * Whether to enable the rule
617
1342
  */
618
- allowed_elements?: string[];
1343
+ enabled?: boolean;
1344
+ /**
1345
+ * Rule severity
1346
+ */
1347
+ severity?: "error" | "warning";
619
1348
  };
620
1349
  /**
621
- * MD034/no-bare-urls : Bare URL used : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md034.md
1350
+ * MD038/no-space-in-code : Spaces inside code span elements : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md038.md
622
1351
  */
623
- MD034?: boolean;
624
- /**
625
- * MD034/no-bare-urls : Bare URL used : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md034.md
626
- */
627
- "no-bare-urls"?: boolean;
628
- /**
629
- * MD035/hr-style : Horizontal rule style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md035.md
630
- */
631
- MD035?:
1352
+ MD038?:
632
1353
  | boolean
1354
+ | ("error" | "warning")
633
1355
  | {
634
1356
  /**
635
- * Horizontal rule style
1357
+ * Whether to enable the rule
636
1358
  */
637
- style?: string;
1359
+ enabled?: boolean;
1360
+ /**
1361
+ * Rule severity
1362
+ */
1363
+ severity?: "error" | "warning";
638
1364
  };
639
1365
  /**
640
- * MD035/hr-style : Horizontal rule style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md035.md
1366
+ * MD038/no-space-in-code : Spaces inside code span elements : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md038.md
641
1367
  */
642
- "hr-style"?:
1368
+ "no-space-in-code"?:
643
1369
  | boolean
1370
+ | ("error" | "warning")
644
1371
  | {
645
1372
  /**
646
- * Horizontal rule style
1373
+ * Whether to enable the rule
647
1374
  */
648
- style?: string;
1375
+ enabled?: boolean;
1376
+ /**
1377
+ * Rule severity
1378
+ */
1379
+ severity?: "error" | "warning";
649
1380
  };
650
1381
  /**
651
- * MD036/no-emphasis-as-heading : Emphasis used instead of a heading : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md036.md
1382
+ * MD039/no-space-in-links : Spaces inside link text : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md039.md
652
1383
  */
653
- MD036?:
1384
+ MD039?:
654
1385
  | boolean
1386
+ | ("error" | "warning")
655
1387
  | {
656
1388
  /**
657
- * Punctuation characters
1389
+ * Whether to enable the rule
658
1390
  */
659
- punctuation?: string;
1391
+ enabled?: boolean;
1392
+ /**
1393
+ * Rule severity
1394
+ */
1395
+ severity?: "error" | "warning";
660
1396
  };
661
1397
  /**
662
- * MD036/no-emphasis-as-heading : Emphasis used instead of a heading : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md036.md
1398
+ * MD039/no-space-in-links : Spaces inside link text : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md039.md
663
1399
  */
664
- "no-emphasis-as-heading"?:
1400
+ "no-space-in-links"?:
665
1401
  | boolean
1402
+ | ("error" | "warning")
666
1403
  | {
667
1404
  /**
668
- * Punctuation characters
1405
+ * Whether to enable the rule
669
1406
  */
670
- punctuation?: string;
1407
+ enabled?: boolean;
1408
+ /**
1409
+ * Rule severity
1410
+ */
1411
+ severity?: "error" | "warning";
671
1412
  };
672
1413
  /**
673
- * MD037/no-space-in-emphasis : Spaces inside emphasis markers : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md037.md
674
- */
675
- MD037?: boolean;
676
- /**
677
- * MD037/no-space-in-emphasis : Spaces inside emphasis markers : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md037.md
678
- */
679
- "no-space-in-emphasis"?: boolean;
680
- /**
681
- * MD038/no-space-in-code : Spaces inside code span elements : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md038.md
682
- */
683
- MD038?: boolean;
684
- /**
685
- * MD038/no-space-in-code : Spaces inside code span elements : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md038.md
686
- */
687
- "no-space-in-code"?: boolean;
688
- /**
689
- * MD039/no-space-in-links : Spaces inside link text : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md039.md
690
- */
691
- MD039?: boolean;
692
- /**
693
- * MD039/no-space-in-links : Spaces inside link text : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md039.md
694
- */
695
- "no-space-in-links"?: boolean;
696
- /**
697
- * MD040/fenced-code-language : Fenced code blocks should have a language specified : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md040.md
1414
+ * MD040/fenced-code-language : Fenced code blocks should have a language specified : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md040.md
698
1415
  */
699
1416
  MD040?:
700
1417
  | boolean
1418
+ | ("error" | "warning")
701
1419
  | {
1420
+ /**
1421
+ * Whether to enable the rule
1422
+ */
1423
+ enabled?: boolean;
1424
+ /**
1425
+ * Rule severity
1426
+ */
1427
+ severity?: "error" | "warning";
702
1428
  /**
703
1429
  * List of languages
704
1430
  */
@@ -709,11 +1435,20 @@ export interface ConfigurationStrict {
709
1435
  language_only?: boolean;
710
1436
  };
711
1437
  /**
712
- * MD040/fenced-code-language : Fenced code blocks should have a language specified : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md040.md
1438
+ * MD040/fenced-code-language : Fenced code blocks should have a language specified : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md040.md
713
1439
  */
714
1440
  "fenced-code-language"?:
715
1441
  | boolean
1442
+ | ("error" | "warning")
716
1443
  | {
1444
+ /**
1445
+ * Whether to enable the rule
1446
+ */
1447
+ enabled?: boolean;
1448
+ /**
1449
+ * Rule severity
1450
+ */
1451
+ severity?: "error" | "warning";
717
1452
  /**
718
1453
  * List of languages
719
1454
  */
@@ -724,11 +1459,20 @@ export interface ConfigurationStrict {
724
1459
  language_only?: boolean;
725
1460
  };
726
1461
  /**
727
- * 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.38.0/doc/md041.md
1462
+ * 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.40.0/doc/md041.md
728
1463
  */
729
1464
  MD041?:
730
1465
  | boolean
1466
+ | ("error" | "warning")
731
1467
  | {
1468
+ /**
1469
+ * Whether to enable the rule
1470
+ */
1471
+ enabled?: boolean;
1472
+ /**
1473
+ * Rule severity
1474
+ */
1475
+ severity?: "error" | "warning";
732
1476
  /**
733
1477
  * Allow content before first heading
734
1478
  */
@@ -743,11 +1487,20 @@ export interface ConfigurationStrict {
743
1487
  level?: number;
744
1488
  };
745
1489
  /**
746
- * 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.38.0/doc/md041.md
1490
+ * 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.40.0/doc/md041.md
747
1491
  */
748
1492
  "first-line-heading"?:
749
1493
  | boolean
1494
+ | ("error" | "warning")
750
1495
  | {
1496
+ /**
1497
+ * Whether to enable the rule
1498
+ */
1499
+ enabled?: boolean;
1500
+ /**
1501
+ * Rule severity
1502
+ */
1503
+ severity?: "error" | "warning";
751
1504
  /**
752
1505
  * Allow content before first heading
753
1506
  */
@@ -762,11 +1515,20 @@ export interface ConfigurationStrict {
762
1515
  level?: number;
763
1516
  };
764
1517
  /**
765
- * 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.38.0/doc/md041.md
1518
+ * 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.40.0/doc/md041.md
766
1519
  */
767
1520
  "first-line-h1"?:
768
1521
  | boolean
1522
+ | ("error" | "warning")
769
1523
  | {
1524
+ /**
1525
+ * Whether to enable the rule
1526
+ */
1527
+ enabled?: boolean;
1528
+ /**
1529
+ * Rule severity
1530
+ */
1531
+ severity?: "error" | "warning";
770
1532
  /**
771
1533
  * Allow content before first heading
772
1534
  */
@@ -781,19 +1543,52 @@ export interface ConfigurationStrict {
781
1543
  level?: number;
782
1544
  };
783
1545
  /**
784
- * MD042/no-empty-links : No empty links : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md042.md
1546
+ * MD042/no-empty-links : No empty links : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md042.md
785
1547
  */
786
- MD042?: boolean;
1548
+ MD042?:
1549
+ | boolean
1550
+ | ("error" | "warning")
1551
+ | {
1552
+ /**
1553
+ * Whether to enable the rule
1554
+ */
1555
+ enabled?: boolean;
1556
+ /**
1557
+ * Rule severity
1558
+ */
1559
+ severity?: "error" | "warning";
1560
+ };
787
1561
  /**
788
- * MD042/no-empty-links : No empty links : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md042.md
1562
+ * MD042/no-empty-links : No empty links : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md042.md
789
1563
  */
790
- "no-empty-links"?: boolean;
1564
+ "no-empty-links"?:
1565
+ | boolean
1566
+ | ("error" | "warning")
1567
+ | {
1568
+ /**
1569
+ * Whether to enable the rule
1570
+ */
1571
+ enabled?: boolean;
1572
+ /**
1573
+ * Rule severity
1574
+ */
1575
+ severity?: "error" | "warning";
1576
+ };
791
1577
  /**
792
- * MD043/required-headings : Required heading structure : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md043.md
1578
+ * MD043/required-headings : Required heading structure : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md043.md
793
1579
  */
794
1580
  MD043?:
795
1581
  | boolean
1582
+ | ("error" | "warning")
796
1583
  | {
1584
+ /**
1585
+ * Whether to enable the rule
1586
+ */
1587
+ enabled?: boolean;
1588
+ /**
1589
+ * Rule severity
1590
+ */
1591
+ severity?: "error" | "warning";
797
1592
  /**
798
1593
  * List of headings
799
1594
  */
@@ -804,11 +1599,20 @@ export interface ConfigurationStrict {
804
1599
  match_case?: boolean;
805
1600
  };
806
1601
  /**
807
- * MD043/required-headings : Required heading structure : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md043.md
1602
+ * MD043/required-headings : Required heading structure : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md043.md
808
1603
  */
809
1604
  "required-headings"?:
810
1605
  | boolean
1606
+ | ("error" | "warning")
811
1607
  | {
1608
+ /**
1609
+ * Whether to enable the rule
1610
+ */
1611
+ enabled?: boolean;
1612
+ /**
1613
+ * Rule severity
1614
+ */
1615
+ severity?: "error" | "warning";
812
1616
  /**
813
1617
  * List of headings
814
1618
  */
@@ -819,11 +1623,20 @@ export interface ConfigurationStrict {
819
1623
  match_case?: boolean;
820
1624
  };
821
1625
  /**
822
- * MD044/proper-names : Proper names should have the correct capitalization : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md044.md
1626
+ * MD044/proper-names : Proper names should have the correct capitalization : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md044.md
823
1627
  */
824
1628
  MD044?:
825
1629
  | boolean
1630
+ | ("error" | "warning")
826
1631
  | {
1632
+ /**
1633
+ * Whether to enable the rule
1634
+ */
1635
+ enabled?: boolean;
1636
+ /**
1637
+ * Rule severity
1638
+ */
1639
+ severity?: "error" | "warning";
827
1640
  /**
828
1641
  * List of proper names
829
1642
  */
@@ -838,11 +1651,20 @@ export interface ConfigurationStrict {
838
1651
  html_elements?: boolean;
839
1652
  };
840
1653
  /**
841
- * MD044/proper-names : Proper names should have the correct capitalization : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md044.md
1654
+ * MD044/proper-names : Proper names should have the correct capitalization : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md044.md
842
1655
  */
843
1656
  "proper-names"?:
844
1657
  | boolean
1658
+ | ("error" | "warning")
845
1659
  | {
1660
+ /**
1661
+ * Whether to enable the rule
1662
+ */
1663
+ enabled?: boolean;
1664
+ /**
1665
+ * Rule severity
1666
+ */
1667
+ severity?: "error" | "warning";
846
1668
  /**
847
1669
  * List of proper names
848
1670
  */
@@ -857,115 +1679,244 @@ export interface ConfigurationStrict {
857
1679
  html_elements?: boolean;
858
1680
  };
859
1681
  /**
860
- * MD045/no-alt-text : Images should have alternate text (alt text) : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md045.md
1682
+ * MD045/no-alt-text : Images should have alternate text (alt text) : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md045.md
861
1683
  */
862
- MD045?: boolean;
1684
+ MD045?:
1685
+ | boolean
1686
+ | ("error" | "warning")
1687
+ | {
1688
+ /**
1689
+ * Whether to enable the rule
1690
+ */
1691
+ enabled?: boolean;
1692
+ /**
1693
+ * Rule severity
1694
+ */
1695
+ severity?: "error" | "warning";
1696
+ };
863
1697
  /**
864
- * MD045/no-alt-text : Images should have alternate text (alt text) : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md045.md
1698
+ * MD045/no-alt-text : Images should have alternate text (alt text) : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md045.md
865
1699
  */
866
- "no-alt-text"?: boolean;
1700
+ "no-alt-text"?:
1701
+ | boolean
1702
+ | ("error" | "warning")
1703
+ | {
1704
+ /**
1705
+ * Whether to enable the rule
1706
+ */
1707
+ enabled?: boolean;
1708
+ /**
1709
+ * Rule severity
1710
+ */
1711
+ severity?: "error" | "warning";
1712
+ };
867
1713
  /**
868
- * MD046/code-block-style : Code block style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md046.md
1714
+ * MD046/code-block-style : Code block style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md046.md
869
1715
  */
870
1716
  MD046?:
871
1717
  | boolean
1718
+ | ("error" | "warning")
872
1719
  | {
1720
+ /**
1721
+ * Whether to enable the rule
1722
+ */
1723
+ enabled?: boolean;
1724
+ /**
1725
+ * Rule severity
1726
+ */
1727
+ severity?: "error" | "warning";
873
1728
  /**
874
1729
  * Block style
875
1730
  */
876
1731
  style?: "consistent" | "fenced" | "indented";
877
1732
  };
878
1733
  /**
879
- * MD046/code-block-style : Code block style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md046.md
1734
+ * MD046/code-block-style : Code block style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md046.md
880
1735
  */
881
1736
  "code-block-style"?:
882
1737
  | boolean
1738
+ | ("error" | "warning")
883
1739
  | {
1740
+ /**
1741
+ * Whether to enable the rule
1742
+ */
1743
+ enabled?: boolean;
1744
+ /**
1745
+ * Rule severity
1746
+ */
1747
+ severity?: "error" | "warning";
884
1748
  /**
885
1749
  * Block style
886
1750
  */
887
1751
  style?: "consistent" | "fenced" | "indented";
888
1752
  };
889
1753
  /**
890
- * MD047/single-trailing-newline : Files should end with a single newline character : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md047.md
1754
+ * MD047/single-trailing-newline : Files should end with a single newline character : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md047.md
891
1755
  */
892
- MD047?: boolean;
1756
+ MD047?:
1757
+ | boolean
1758
+ | ("error" | "warning")
1759
+ | {
1760
+ /**
1761
+ * Whether to enable the rule
1762
+ */
1763
+ enabled?: boolean;
1764
+ /**
1765
+ * Rule severity
1766
+ */
1767
+ severity?: "error" | "warning";
1768
+ };
893
1769
  /**
894
- * MD047/single-trailing-newline : Files should end with a single newline character : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md047.md
1770
+ * MD047/single-trailing-newline : Files should end with a single newline character : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md047.md
895
1771
  */
896
- "single-trailing-newline"?: boolean;
1772
+ "single-trailing-newline"?:
1773
+ | boolean
1774
+ | ("error" | "warning")
1775
+ | {
1776
+ /**
1777
+ * Whether to enable the rule
1778
+ */
1779
+ enabled?: boolean;
1780
+ /**
1781
+ * Rule severity
1782
+ */
1783
+ severity?: "error" | "warning";
1784
+ };
897
1785
  /**
898
- * MD048/code-fence-style : Code fence style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md048.md
1786
+ * MD048/code-fence-style : Code fence style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md048.md
899
1787
  */
900
1788
  MD048?:
901
1789
  | boolean
1790
+ | ("error" | "warning")
902
1791
  | {
1792
+ /**
1793
+ * Whether to enable the rule
1794
+ */
1795
+ enabled?: boolean;
1796
+ /**
1797
+ * Rule severity
1798
+ */
1799
+ severity?: "error" | "warning";
903
1800
  /**
904
1801
  * Code fence style
905
1802
  */
906
1803
  style?: "consistent" | "backtick" | "tilde";
907
1804
  };
908
1805
  /**
909
- * MD048/code-fence-style : Code fence style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md048.md
1806
+ * MD048/code-fence-style : Code fence style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md048.md
910
1807
  */
911
1808
  "code-fence-style"?:
912
1809
  | boolean
1810
+ | ("error" | "warning")
913
1811
  | {
1812
+ /**
1813
+ * Whether to enable the rule
1814
+ */
1815
+ enabled?: boolean;
1816
+ /**
1817
+ * Rule severity
1818
+ */
1819
+ severity?: "error" | "warning";
914
1820
  /**
915
1821
  * Code fence style
916
1822
  */
917
1823
  style?: "consistent" | "backtick" | "tilde";
918
1824
  };
919
1825
  /**
920
- * MD049/emphasis-style : Emphasis style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md049.md
1826
+ * MD049/emphasis-style : Emphasis style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md049.md
921
1827
  */
922
1828
  MD049?:
923
1829
  | boolean
1830
+ | ("error" | "warning")
924
1831
  | {
1832
+ /**
1833
+ * Whether to enable the rule
1834
+ */
1835
+ enabled?: boolean;
1836
+ /**
1837
+ * Rule severity
1838
+ */
1839
+ severity?: "error" | "warning";
925
1840
  /**
926
1841
  * Emphasis style
927
1842
  */
928
1843
  style?: "consistent" | "asterisk" | "underscore";
929
1844
  };
930
1845
  /**
931
- * MD049/emphasis-style : Emphasis style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md049.md
1846
+ * MD049/emphasis-style : Emphasis style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md049.md
932
1847
  */
933
1848
  "emphasis-style"?:
934
1849
  | boolean
1850
+ | ("error" | "warning")
935
1851
  | {
1852
+ /**
1853
+ * Whether to enable the rule
1854
+ */
1855
+ enabled?: boolean;
1856
+ /**
1857
+ * Rule severity
1858
+ */
1859
+ severity?: "error" | "warning";
936
1860
  /**
937
1861
  * Emphasis style
938
1862
  */
939
1863
  style?: "consistent" | "asterisk" | "underscore";
940
1864
  };
941
1865
  /**
942
- * MD050/strong-style : Strong style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md050.md
1866
+ * MD050/strong-style : Strong style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md050.md
943
1867
  */
944
1868
  MD050?:
945
1869
  | boolean
1870
+ | ("error" | "warning")
946
1871
  | {
1872
+ /**
1873
+ * Whether to enable the rule
1874
+ */
1875
+ enabled?: boolean;
1876
+ /**
1877
+ * Rule severity
1878
+ */
1879
+ severity?: "error" | "warning";
947
1880
  /**
948
1881
  * Strong style
949
1882
  */
950
1883
  style?: "consistent" | "asterisk" | "underscore";
951
1884
  };
952
1885
  /**
953
- * MD050/strong-style : Strong style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md050.md
1886
+ * MD050/strong-style : Strong style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md050.md
954
1887
  */
955
1888
  "strong-style"?:
956
1889
  | boolean
1890
+ | ("error" | "warning")
957
1891
  | {
1892
+ /**
1893
+ * Whether to enable the rule
1894
+ */
1895
+ enabled?: boolean;
1896
+ /**
1897
+ * Rule severity
1898
+ */
1899
+ severity?: "error" | "warning";
958
1900
  /**
959
1901
  * Strong style
960
1902
  */
961
1903
  style?: "consistent" | "asterisk" | "underscore";
962
1904
  };
963
1905
  /**
964
- * MD051/link-fragments : Link fragments should be valid : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md051.md
1906
+ * MD051/link-fragments : Link fragments should be valid : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md051.md
965
1907
  */
966
1908
  MD051?:
967
1909
  | boolean
1910
+ | ("error" | "warning")
968
1911
  | {
1912
+ /**
1913
+ * Whether to enable the rule
1914
+ */
1915
+ enabled?: boolean;
1916
+ /**
1917
+ * Rule severity
1918
+ */
1919
+ severity?: "error" | "warning";
969
1920
  /**
970
1921
  * Ignore case of fragments
971
1922
  */
@@ -976,11 +1927,20 @@ export interface ConfigurationStrict {
976
1927
  ignored_pattern?: string;
977
1928
  };
978
1929
  /**
979
- * MD051/link-fragments : Link fragments should be valid : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md051.md
1930
+ * MD051/link-fragments : Link fragments should be valid : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md051.md
980
1931
  */
981
1932
  "link-fragments"?:
982
1933
  | boolean
1934
+ | ("error" | "warning")
983
1935
  | {
1936
+ /**
1937
+ * Whether to enable the rule
1938
+ */
1939
+ enabled?: boolean;
1940
+ /**
1941
+ * Rule severity
1942
+ */
1943
+ severity?: "error" | "warning";
984
1944
  /**
985
1945
  * Ignore case of fragments
986
1946
  */
@@ -991,11 +1951,20 @@ export interface ConfigurationStrict {
991
1951
  ignored_pattern?: string;
992
1952
  };
993
1953
  /**
994
- * MD052/reference-links-images : Reference links and images should use a label that is defined : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md052.md
1954
+ * MD052/reference-links-images : Reference links and images should use a label that is defined : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md052.md
995
1955
  */
996
1956
  MD052?:
997
1957
  | boolean
1958
+ | ("error" | "warning")
998
1959
  | {
1960
+ /**
1961
+ * Whether to enable the rule
1962
+ */
1963
+ enabled?: boolean;
1964
+ /**
1965
+ * Rule severity
1966
+ */
1967
+ severity?: "error" | "warning";
999
1968
  /**
1000
1969
  * Ignored link labels
1001
1970
  */
@@ -1006,11 +1975,20 @@ export interface ConfigurationStrict {
1006
1975
  shortcut_syntax?: boolean;
1007
1976
  };
1008
1977
  /**
1009
- * MD052/reference-links-images : Reference links and images should use a label that is defined : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md052.md
1978
+ * MD052/reference-links-images : Reference links and images should use a label that is defined : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md052.md
1010
1979
  */
1011
1980
  "reference-links-images"?:
1012
1981
  | boolean
1982
+ | ("error" | "warning")
1013
1983
  | {
1984
+ /**
1985
+ * Whether to enable the rule
1986
+ */
1987
+ enabled?: boolean;
1988
+ /**
1989
+ * Rule severity
1990
+ */
1991
+ severity?: "error" | "warning";
1014
1992
  /**
1015
1993
  * Ignored link labels
1016
1994
  */
@@ -1021,33 +1999,60 @@ export interface ConfigurationStrict {
1021
1999
  shortcut_syntax?: boolean;
1022
2000
  };
1023
2001
  /**
1024
- * MD053/link-image-reference-definitions : Link and image reference definitions should be needed : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md053.md
2002
+ * MD053/link-image-reference-definitions : Link and image reference definitions should be needed : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md053.md
1025
2003
  */
1026
2004
  MD053?:
1027
2005
  | boolean
2006
+ | ("error" | "warning")
1028
2007
  | {
2008
+ /**
2009
+ * Whether to enable the rule
2010
+ */
2011
+ enabled?: boolean;
2012
+ /**
2013
+ * Rule severity
2014
+ */
2015
+ severity?: "error" | "warning";
1029
2016
  /**
1030
2017
  * Ignored definitions
1031
2018
  */
1032
2019
  ignored_definitions?: string[];
1033
2020
  };
1034
2021
  /**
1035
- * MD053/link-image-reference-definitions : Link and image reference definitions should be needed : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md053.md
2022
+ * MD053/link-image-reference-definitions : Link and image reference definitions should be needed : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md053.md
1036
2023
  */
1037
2024
  "link-image-reference-definitions"?:
1038
2025
  | boolean
2026
+ | ("error" | "warning")
1039
2027
  | {
2028
+ /**
2029
+ * Whether to enable the rule
2030
+ */
2031
+ enabled?: boolean;
2032
+ /**
2033
+ * Rule severity
2034
+ */
2035
+ severity?: "error" | "warning";
1040
2036
  /**
1041
2037
  * Ignored definitions
1042
2038
  */
1043
2039
  ignored_definitions?: string[];
1044
2040
  };
1045
2041
  /**
1046
- * MD054/link-image-style : Link and image style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md054.md
2042
+ * MD054/link-image-style : Link and image style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md054.md
1047
2043
  */
1048
2044
  MD054?:
1049
2045
  | boolean
2046
+ | ("error" | "warning")
1050
2047
  | {
2048
+ /**
2049
+ * Whether to enable the rule
2050
+ */
2051
+ enabled?: boolean;
2052
+ /**
2053
+ * Rule severity
2054
+ */
2055
+ severity?: "error" | "warning";
1051
2056
  /**
1052
2057
  * Allow autolinks
1053
2058
  */
@@ -1074,11 +2079,20 @@ export interface ConfigurationStrict {
1074
2079
  url_inline?: boolean;
1075
2080
  };
1076
2081
  /**
1077
- * MD054/link-image-style : Link and image style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md054.md
2082
+ * MD054/link-image-style : Link and image style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md054.md
1078
2083
  */
1079
2084
  "link-image-style"?:
1080
2085
  | boolean
2086
+ | ("error" | "warning")
1081
2087
  | {
2088
+ /**
2089
+ * Whether to enable the rule
2090
+ */
2091
+ enabled?: boolean;
2092
+ /**
2093
+ * Rule severity
2094
+ */
2095
+ severity?: "error" | "warning";
1082
2096
  /**
1083
2097
  * Allow autolinks
1084
2098
  */
@@ -1105,159 +2119,291 @@ export interface ConfigurationStrict {
1105
2119
  url_inline?: boolean;
1106
2120
  };
1107
2121
  /**
1108
- * MD055/table-pipe-style : Table pipe style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md055.md
2122
+ * MD055/table-pipe-style : Table pipe style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md055.md
1109
2123
  */
1110
2124
  MD055?:
1111
2125
  | boolean
2126
+ | ("error" | "warning")
1112
2127
  | {
2128
+ /**
2129
+ * Whether to enable the rule
2130
+ */
2131
+ enabled?: boolean;
2132
+ /**
2133
+ * Rule severity
2134
+ */
2135
+ severity?: "error" | "warning";
1113
2136
  /**
1114
2137
  * Table pipe style
1115
2138
  */
1116
2139
  style?: "consistent" | "leading_only" | "trailing_only" | "leading_and_trailing" | "no_leading_or_trailing";
1117
2140
  };
1118
2141
  /**
1119
- * MD055/table-pipe-style : Table pipe style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md055.md
2142
+ * MD055/table-pipe-style : Table pipe style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md055.md
1120
2143
  */
1121
2144
  "table-pipe-style"?:
1122
2145
  | boolean
2146
+ | ("error" | "warning")
1123
2147
  | {
2148
+ /**
2149
+ * Whether to enable the rule
2150
+ */
2151
+ enabled?: boolean;
2152
+ /**
2153
+ * Rule severity
2154
+ */
2155
+ severity?: "error" | "warning";
1124
2156
  /**
1125
2157
  * Table pipe style
1126
2158
  */
1127
2159
  style?: "consistent" | "leading_only" | "trailing_only" | "leading_and_trailing" | "no_leading_or_trailing";
1128
2160
  };
1129
2161
  /**
1130
- * MD056/table-column-count : Table column count : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md056.md
2162
+ * MD056/table-column-count : Table column count : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md056.md
1131
2163
  */
1132
- MD056?: boolean;
2164
+ MD056?:
2165
+ | boolean
2166
+ | ("error" | "warning")
2167
+ | {
2168
+ /**
2169
+ * Whether to enable the rule
2170
+ */
2171
+ enabled?: boolean;
2172
+ /**
2173
+ * Rule severity
2174
+ */
2175
+ severity?: "error" | "warning";
2176
+ };
1133
2177
  /**
1134
- * MD056/table-column-count : Table column count : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md056.md
2178
+ * MD056/table-column-count : Table column count : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md056.md
1135
2179
  */
1136
- "table-column-count"?: boolean;
2180
+ "table-column-count"?:
2181
+ | boolean
2182
+ | ("error" | "warning")
2183
+ | {
2184
+ /**
2185
+ * Whether to enable the rule
2186
+ */
2187
+ enabled?: boolean;
2188
+ /**
2189
+ * Rule severity
2190
+ */
2191
+ severity?: "error" | "warning";
2192
+ };
1137
2193
  /**
1138
- * MD058/blanks-around-tables : Tables should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md058.md
2194
+ * MD058/blanks-around-tables : Tables should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md058.md
1139
2195
  */
1140
- MD058?: boolean;
2196
+ MD058?:
2197
+ | boolean
2198
+ | ("error" | "warning")
2199
+ | {
2200
+ /**
2201
+ * Whether to enable the rule
2202
+ */
2203
+ enabled?: boolean;
2204
+ /**
2205
+ * Rule severity
2206
+ */
2207
+ severity?: "error" | "warning";
2208
+ };
1141
2209
  /**
1142
- * MD058/blanks-around-tables : Tables should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md058.md
2210
+ * MD058/blanks-around-tables : Tables should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md058.md
1143
2211
  */
1144
- "blanks-around-tables"?: boolean;
2212
+ "blanks-around-tables"?:
2213
+ | boolean
2214
+ | ("error" | "warning")
2215
+ | {
2216
+ /**
2217
+ * Whether to enable the rule
2218
+ */
2219
+ enabled?: boolean;
2220
+ /**
2221
+ * Rule severity
2222
+ */
2223
+ severity?: "error" | "warning";
2224
+ };
1145
2225
  /**
1146
- * MD059/descriptive-link-text : Link text should be descriptive : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md059.md
2226
+ * MD059/descriptive-link-text : Link text should be descriptive : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md059.md
1147
2227
  */
1148
2228
  MD059?:
1149
2229
  | boolean
2230
+ | ("error" | "warning")
1150
2231
  | {
2232
+ /**
2233
+ * Whether to enable the rule
2234
+ */
2235
+ enabled?: boolean;
2236
+ /**
2237
+ * Rule severity
2238
+ */
2239
+ severity?: "error" | "warning";
1151
2240
  /**
1152
2241
  * Prohibited link texts
1153
2242
  */
1154
2243
  prohibited_texts?: string[];
1155
2244
  };
1156
2245
  /**
1157
- * MD059/descriptive-link-text : Link text should be descriptive : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md059.md
2246
+ * MD059/descriptive-link-text : Link text should be descriptive : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md059.md
1158
2247
  */
1159
2248
  "descriptive-link-text"?:
1160
2249
  | boolean
2250
+ | ("error" | "warning")
1161
2251
  | {
2252
+ /**
2253
+ * Whether to enable the rule
2254
+ */
2255
+ enabled?: boolean;
2256
+ /**
2257
+ * Rule severity
2258
+ */
2259
+ severity?: "error" | "warning";
1162
2260
  /**
1163
2261
  * Prohibited link texts
1164
2262
  */
1165
2263
  prohibited_texts?: string[];
1166
2264
  };
2265
+ /**
2266
+ * MD060/table-column-style : Table column style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md060.md
2267
+ */
2268
+ MD060?:
2269
+ | boolean
2270
+ | ("error" | "warning")
2271
+ | {
2272
+ /**
2273
+ * Whether to enable the rule
2274
+ */
2275
+ enabled?: boolean;
2276
+ /**
2277
+ * Rule severity
2278
+ */
2279
+ severity?: "error" | "warning";
2280
+ /**
2281
+ * Table column style
2282
+ */
2283
+ style?: "any" | "aligned" | "compact" | "tight";
2284
+ /**
2285
+ * Aligned delimiter columns
2286
+ */
2287
+ aligned_delimiter?: boolean;
2288
+ };
2289
+ /**
2290
+ * MD060/table-column-style : Table column style : https://github.com/DavidAnson/markdownlint/blob/v0.40.0/doc/md060.md
2291
+ */
2292
+ "table-column-style"?:
2293
+ | boolean
2294
+ | ("error" | "warning")
2295
+ | {
2296
+ /**
2297
+ * Whether to enable the rule
2298
+ */
2299
+ enabled?: boolean;
2300
+ /**
2301
+ * Rule severity
2302
+ */
2303
+ severity?: "error" | "warning";
2304
+ /**
2305
+ * Table column style
2306
+ */
2307
+ style?: "any" | "aligned" | "compact" | "tight";
2308
+ /**
2309
+ * Aligned delimiter columns
2310
+ */
2311
+ aligned_delimiter?: boolean;
2312
+ };
1167
2313
  /**
1168
2314
  * headings : MD001, MD003, MD018, MD019, MD020, MD021, MD022, MD023, MD024, MD025, MD026, MD036, MD041, MD043
1169
2315
  */
1170
- headings?: boolean;
2316
+ headings?: boolean | ("error" | "warning");
1171
2317
  /**
1172
2318
  * bullet : MD004, MD005, MD007, MD032
1173
2319
  */
1174
- bullet?: boolean;
2320
+ bullet?: boolean | ("error" | "warning");
1175
2321
  /**
1176
2322
  * ul : MD004, MD005, MD007, MD030, MD032
1177
2323
  */
1178
- ul?: boolean;
2324
+ ul?: boolean | ("error" | "warning");
1179
2325
  /**
1180
2326
  * indentation : MD005, MD007, MD027
1181
2327
  */
1182
- indentation?: boolean;
2328
+ indentation?: boolean | ("error" | "warning");
1183
2329
  /**
1184
2330
  * whitespace : MD009, MD010, MD012, MD027, MD028, MD030, MD037, MD038, MD039
1185
2331
  */
1186
- whitespace?: boolean;
2332
+ whitespace?: boolean | ("error" | "warning");
1187
2333
  /**
1188
2334
  * hard_tab : MD010
1189
2335
  */
1190
- hard_tab?: boolean;
2336
+ hard_tab?: boolean | ("error" | "warning");
1191
2337
  /**
1192
2338
  * links : MD011, MD034, MD039, MD042, MD051, MD052, MD053, MD054, MD059
1193
2339
  */
1194
- links?: boolean;
2340
+ links?: boolean | ("error" | "warning");
1195
2341
  /**
1196
2342
  * blank_lines : MD012, MD022, MD031, MD032, MD047
1197
2343
  */
1198
- blank_lines?: boolean;
2344
+ blank_lines?: boolean | ("error" | "warning");
1199
2345
  /**
1200
2346
  * line_length : MD013
1201
2347
  */
1202
- line_length?: boolean;
2348
+ line_length?: boolean | ("error" | "warning");
1203
2349
  /**
1204
2350
  * code : MD014, MD031, MD038, MD040, MD046, MD048
1205
2351
  */
1206
- code?: boolean;
2352
+ code?: boolean | ("error" | "warning");
1207
2353
  /**
1208
2354
  * atx : MD018, MD019
1209
2355
  */
1210
- atx?: boolean;
2356
+ atx?: boolean | ("error" | "warning");
1211
2357
  /**
1212
2358
  * spaces : MD018, MD019, MD020, MD021, MD023
1213
2359
  */
1214
- spaces?: boolean;
2360
+ spaces?: boolean | ("error" | "warning");
1215
2361
  /**
1216
2362
  * atx_closed : MD020, MD021
1217
2363
  */
1218
- atx_closed?: boolean;
2364
+ atx_closed?: boolean | ("error" | "warning");
1219
2365
  /**
1220
2366
  * blockquote : MD027, MD028
1221
2367
  */
1222
- blockquote?: boolean;
2368
+ blockquote?: boolean | ("error" | "warning");
1223
2369
  /**
1224
2370
  * ol : MD029, MD030, MD032
1225
2371
  */
1226
- ol?: boolean;
2372
+ ol?: boolean | ("error" | "warning");
1227
2373
  /**
1228
2374
  * html : MD033
1229
2375
  */
1230
- html?: boolean;
2376
+ html?: boolean | ("error" | "warning");
1231
2377
  /**
1232
2378
  * url : MD034
1233
2379
  */
1234
- url?: boolean;
2380
+ url?: boolean | ("error" | "warning");
1235
2381
  /**
1236
2382
  * hr : MD035
1237
2383
  */
1238
- hr?: boolean;
2384
+ hr?: boolean | ("error" | "warning");
1239
2385
  /**
1240
2386
  * emphasis : MD036, MD037, MD049, MD050
1241
2387
  */
1242
- emphasis?: boolean;
2388
+ emphasis?: boolean | ("error" | "warning");
1243
2389
  /**
1244
2390
  * language : MD040
1245
2391
  */
1246
- language?: boolean;
2392
+ language?: boolean | ("error" | "warning");
1247
2393
  /**
1248
2394
  * spelling : MD044
1249
2395
  */
1250
- spelling?: boolean;
2396
+ spelling?: boolean | ("error" | "warning");
1251
2397
  /**
1252
2398
  * accessibility : MD045, MD059
1253
2399
  */
1254
- accessibility?: boolean;
2400
+ accessibility?: boolean | ("error" | "warning");
1255
2401
  /**
1256
2402
  * images : MD045, MD052, MD053, MD054
1257
2403
  */
1258
- images?: boolean;
2404
+ images?: boolean | ("error" | "warning");
1259
2405
  /**
1260
- * table : MD055, MD056, MD058
2406
+ * table : MD055, MD056, MD058, MD060
1261
2407
  */
1262
- table?: boolean;
2408
+ table?: boolean | ("error" | "warning");
1263
2409
  }