markdownlint 0.24.0 → 0.26.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 (51) hide show
  1. package/CONTRIBUTING.md +15 -3
  2. package/LICENSE +1 -1
  3. package/README.md +138 -87
  4. package/demo/markdownlint-browser.js +2028 -1364
  5. package/doc/CustomRules.md +15 -4
  6. package/doc/Rules.md +217 -26
  7. package/helpers/LICENSE +1 -1
  8. package/helpers/helpers.js +541 -188
  9. package/helpers/package.json +4 -1
  10. package/lib/cache.js +15 -25
  11. package/lib/constants.js +7 -0
  12. package/lib/markdownlint.d.ts +27 -19
  13. package/lib/markdownlint.js +438 -344
  14. package/lib/md004.js +4 -4
  15. package/lib/md005.js +4 -4
  16. package/lib/md006.js +4 -4
  17. package/lib/md007.js +8 -6
  18. package/lib/md009.js +20 -13
  19. package/lib/md010.js +34 -16
  20. package/lib/md011.js +4 -4
  21. package/lib/md013.js +4 -5
  22. package/lib/md014.js +4 -4
  23. package/lib/md021.js +3 -1
  24. package/lib/md026.js +1 -1
  25. package/lib/md027.js +2 -2
  26. package/lib/md028.js +2 -2
  27. package/lib/md029.js +5 -4
  28. package/lib/md030.js +4 -4
  29. package/lib/md031.js +2 -2
  30. package/lib/md032.js +3 -2
  31. package/lib/md033.js +12 -9
  32. package/lib/md034.js +2 -2
  33. package/lib/md035.js +10 -5
  34. package/lib/md036.js +2 -2
  35. package/lib/md037.js +5 -3
  36. package/lib/md038.js +7 -4
  37. package/lib/md039.js +8 -5
  38. package/lib/md042.js +17 -10
  39. package/lib/md043.js +2 -3
  40. package/lib/md044.js +21 -10
  41. package/lib/md046.js +14 -13
  42. package/lib/md048.js +13 -14
  43. package/lib/md049-md050.js +73 -0
  44. package/lib/md051.js +84 -0
  45. package/lib/md052.js +35 -0
  46. package/lib/md053.js +52 -0
  47. package/lib/rules.js +8 -6
  48. package/package.json +37 -32
  49. package/schema/.markdownlint.jsonc +30 -3
  50. package/schema/.markdownlint.yaml +26 -1
  51. package/schema/markdownlint-config-schema.json +159 -683
@@ -39,7 +39,9 @@
39
39
  // Spaces for indent
40
40
  "indent": 2,
41
41
  // Whether to indent the first level of the list
42
- "start_indented": false
42
+ "start_indented": false,
43
+ // Spaces for first level indent (when start_indented is set)
44
+ "start_indent": 2
43
45
  },
44
46
 
45
47
  // MD009/no-trailing-spaces - Trailing spaces
@@ -56,6 +58,8 @@
56
58
  "MD010": {
57
59
  // Include code blocks
58
60
  "code_blocks": true,
61
+ // Fenced code languages to ignore
62
+ "ignore_code_languages": [],
59
63
  // Number of spaces for each hard tab
60
64
  "spaces_per_tab": 1
61
65
  },
@@ -229,7 +233,9 @@
229
233
  // List of proper names
230
234
  "names": [],
231
235
  // Include code blocks
232
- "code_blocks": true
236
+ "code_blocks": true,
237
+ // Include HTML elements
238
+ "html_elements": true
233
239
  },
234
240
 
235
241
  // MD045/no-alt-text - Images should have alternate text (alt text)
@@ -248,5 +254,26 @@
248
254
  "MD048": {
249
255
  // Code fence style
250
256
  "style": "consistent"
251
- }
257
+ },
258
+
259
+ // MD049/emphasis-style - Emphasis style should be consistent
260
+ "MD049": {
261
+ // Emphasis style should be consistent
262
+ "style": "consistent"
263
+ },
264
+
265
+ // MD050/strong-style - Strong style should be consistent
266
+ "MD050": {
267
+ // Strong style should be consistent
268
+ "style": "consistent"
269
+ },
270
+
271
+ // MD051/link-fragments - Link fragments should be valid
272
+ "MD051": true,
273
+
274
+ // MD052/reference-links-images - Reference links and images should use a label that is defined
275
+ "MD052": true,
276
+
277
+ // MD053/link-image-reference-definitions - Link and image reference definitions should be needed
278
+ "MD053": true
252
279
  }
@@ -36,6 +36,8 @@ MD007:
36
36
  indent: 2
37
37
  # Whether to indent the first level of the list
38
38
  start_indented: false
39
+ # Spaces for first level indent (when start_indented is set)
40
+ start_indent: 2
39
41
 
40
42
  # MD009/no-trailing-spaces - Trailing spaces
41
43
  MD009:
@@ -50,6 +52,8 @@ MD009:
50
52
  MD010:
51
53
  # Include code blocks
52
54
  code_blocks: true
55
+ # Fenced code languages to ignore
56
+ ignore_code_languages: []
53
57
  # Number of spaces for each hard tab
54
58
  spaces_per_tab: 1
55
59
 
@@ -209,6 +213,8 @@ MD044:
209
213
  names: []
210
214
  # Include code blocks
211
215
  code_blocks: true
216
+ # Include HTML elements
217
+ html_elements: true
212
218
 
213
219
  # MD045/no-alt-text - Images should have alternate text (alt text)
214
220
  MD045: true
@@ -224,4 +230,23 @@ MD047: true
224
230
  # MD048/code-fence-style - Code fence style
225
231
  MD048:
226
232
  # Code fence style
227
- style: "consistent"
233
+ style: "consistent"
234
+
235
+ # MD049/emphasis-style - Emphasis style should be consistent
236
+ MD049:
237
+ # Emphasis style should be consistent
238
+ style: "consistent"
239
+
240
+ # MD050/strong-style - Strong style should be consistent
241
+ MD050:
242
+ # Strong style should be consistent
243
+ style: "consistent"
244
+
245
+ # MD051/link-fragments - Link fragments should be valid
246
+ MD051: true
247
+
248
+ # MD052/reference-links-images - Reference links and images should use a label that is defined
249
+ MD052: true
250
+
251
+ # MD053/link-image-reference-definitions - Link and image reference definitions should be needed
252
+ MD053: true