markdownlint 0.26.2 → 0.27.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 (83) hide show
  1. package/CONTRIBUTING.md +81 -59
  2. package/README.md +424 -303
  3. package/demo/markdownlint-browser.js +374 -144
  4. package/doc/CustomRules.md +101 -50
  5. package/doc/Prettier.md +14 -10
  6. package/doc/ReleaseProcess.md +20 -0
  7. package/doc/Rules.md +453 -296
  8. package/doc/md001.md +37 -0
  9. package/doc/md002.md +37 -0
  10. package/doc/md003.md +59 -0
  11. package/doc/md004.md +49 -0
  12. package/doc/md005.md +53 -0
  13. package/doc/md006.md +46 -0
  14. package/doc/md007.md +55 -0
  15. package/doc/md009.md +51 -0
  16. package/doc/md010.md +56 -0
  17. package/doc/md011.md +30 -0
  18. package/doc/md012.md +38 -0
  19. package/doc/md013.md +60 -0
  20. package/doc/md014.md +54 -0
  21. package/doc/md018.md +27 -0
  22. package/doc/md019.md +28 -0
  23. package/doc/md020.md +29 -0
  24. package/doc/md021.md +31 -0
  25. package/doc/md022.md +46 -0
  26. package/doc/md023.md +26 -0
  27. package/doc/md024.md +47 -0
  28. package/doc/md025.md +49 -0
  29. package/doc/md026.md +41 -0
  30. package/doc/md027.md +24 -0
  31. package/doc/md028.md +40 -0
  32. package/doc/md029.md +98 -0
  33. package/doc/md030.md +82 -0
  34. package/doc/md031.md +50 -0
  35. package/doc/md032.md +38 -0
  36. package/doc/md033.md +27 -0
  37. package/doc/md034.md +44 -0
  38. package/doc/md035.md +42 -0
  39. package/doc/md036.md +45 -0
  40. package/doc/md037.md +37 -0
  41. package/doc/md038.md +40 -0
  42. package/doc/md039.md +21 -0
  43. package/doc/md040.md +52 -0
  44. package/doc/md041.md +49 -0
  45. package/doc/md042.md +32 -0
  46. package/doc/md043.md +72 -0
  47. package/doc/md044.md +35 -0
  48. package/doc/md045.md +34 -0
  49. package/doc/md046.md +40 -0
  50. package/doc/md047.md +34 -0
  51. package/doc/md048.md +41 -0
  52. package/doc/md049.md +32 -0
  53. package/doc/md050.md +32 -0
  54. package/doc/md051.md +50 -0
  55. package/doc/md052.md +33 -0
  56. package/doc/md053.md +38 -0
  57. package/helpers/README.md +35 -15
  58. package/helpers/helpers.js +204 -42
  59. package/helpers/package.json +2 -2
  60. package/lib/constants.js +8 -1
  61. package/lib/markdownlint.js +7 -7
  62. package/lib/md011.js +2 -2
  63. package/lib/md013.js +7 -6
  64. package/lib/md019.js +1 -1
  65. package/lib/md022.js +15 -3
  66. package/lib/md023.js +1 -1
  67. package/lib/md026.js +1 -1
  68. package/lib/md033.js +15 -4
  69. package/lib/md034.js +70 -45
  70. package/lib/md035.js +1 -1
  71. package/lib/md037.js +2 -2
  72. package/lib/md038.js +1 -1
  73. package/lib/md039.js +1 -1
  74. package/lib/md040.js +21 -2
  75. package/lib/md043.js +4 -2
  76. package/lib/md044.js +4 -3
  77. package/lib/md051.js +37 -5
  78. package/lib/rules.js +1 -1
  79. package/package.json +31 -21
  80. package/schema/.markdownlint.jsonc +10 -3
  81. package/schema/.markdownlint.yaml +8 -2
  82. package/schema/markdownlint-config-schema.json +27 -3
  83. package/style/prettier.json +26 -0
@@ -127,7 +127,7 @@ MD025:
127
127
 
128
128
  # MD026/no-trailing-punctuation - Trailing punctuation in heading
129
129
  MD026:
130
- # Punctuation characters
130
+ # Punctuation characters not allowed at end of headings
131
131
  punctuation: ".,;:!。,;:!"
132
132
 
133
133
  # MD027/no-multiple-space-blockquote - Multiple spaces after blockquote symbol
@@ -188,7 +188,11 @@ MD038: true
188
188
  MD039: true
189
189
 
190
190
  # MD040/fenced-code-language - Fenced code blocks should have a language specified
191
- MD040: true
191
+ MD040:
192
+ # List of languages
193
+ allowed_languages: []
194
+ # Require language only
195
+ language_only: false
192
196
 
193
197
  # MD041/first-line-heading/first-line-h1 - First line in a file should be a top-level heading
194
198
  MD041:
@@ -206,6 +210,8 @@ MD043:
206
210
  headings: []
207
211
  # List of headings
208
212
  headers: []
213
+ # Match case of headings
214
+ match_case: false
209
215
 
210
216
  # MD044/proper-names - Proper names should have the correct capitalization
211
217
  MD044:
@@ -456,7 +456,7 @@
456
456
  "default": true,
457
457
  "properties": {
458
458
  "punctuation": {
459
- "description": "Punctuation characters",
459
+ "description": "Punctuation characters not allowed at end of headings",
460
460
  "type": "string",
461
461
  "default": ".,;:!。,;:!"
462
462
  }
@@ -669,8 +669,27 @@
669
669
  },
670
670
  "MD040": {
671
671
  "description": "MD040/fenced-code-language - Fenced code blocks should have a language specified",
672
- "type": "boolean",
673
- "default": true
672
+ "type": [
673
+ "boolean",
674
+ "object"
675
+ ],
676
+ "default": true,
677
+ "properties": {
678
+ "allowed_languages": {
679
+ "description": "List of languages",
680
+ "type": "array",
681
+ "items": {
682
+ "type": "string"
683
+ },
684
+ "default": []
685
+ },
686
+ "language_only": {
687
+ "description": "Require language only",
688
+ "type": "boolean",
689
+ "default": false
690
+ }
691
+ },
692
+ "additionalProperties": false
674
693
  },
675
694
  "fenced-code-language": {
676
695
  "$ref": "#/properties/MD040"
@@ -737,6 +756,11 @@
737
756
  "pattern": "^(\\*|\\+|#{1,6} .*)$"
738
757
  },
739
758
  "default": []
759
+ },
760
+ "match_case": {
761
+ "description": "Match case of headings",
762
+ "type": "boolean",
763
+ "default": false
740
764
  }
741
765
  },
742
766
  "additionalProperties": false
@@ -0,0 +1,26 @@
1
+ {
2
+ "comment": "Disables rules that may conflict with Prettier",
3
+
4
+ "blanks-around-fences": false,
5
+ "blanks-around-headings": false,
6
+ "blanks-around-lists": false,
7
+ "code-fence-style": false,
8
+ "emphasis-style": false,
9
+ "heading-start-left": false,
10
+ "hr-style": false,
11
+ "line-length": false,
12
+ "list-indent": false,
13
+ "list-marker-space": false,
14
+ "no-blanks-blockquote": false,
15
+ "no-hard-tabs": false,
16
+ "no-missing-space-atx": false,
17
+ "no-missing-space-closed-atx": false,
18
+ "no-multiple-blanks": false,
19
+ "no-multiple-space-atx": false,
20
+ "no-multiple-space-blockquote": false,
21
+ "no-multiple-space-closed-atx": false,
22
+ "no-trailing-spaces": false,
23
+ "ol-prefix": false,
24
+ "strong-style": false,
25
+ "ul-indent": false
26
+ }