markdownlint 0.29.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/demo/markdownlint-browser.js +997 -891
- package/doc/CustomRules.md +2 -0
- package/doc/Rules.md +46 -23
- package/doc/md022.md +12 -6
- package/doc/md026.md +1 -2
- package/doc/md049.md +2 -2
- package/doc/md050.md +2 -2
- package/doc/md051.md +17 -6
- package/doc/md052.md +13 -6
- package/helpers/helpers.js +146 -235
- package/helpers/micromark.cjs +192 -53
- package/helpers/package.json +2 -2
- package/helpers/shared.js +7 -0
- package/lib/cache.js +0 -2
- package/lib/constants.js +1 -1
- package/lib/markdownlint.d.ts +10 -2
- package/lib/markdownlint.js +37 -13
- package/lib/md022.js +80 -40
- package/lib/md026.js +19 -12
- package/lib/md032.js +62 -31
- package/lib/md033.js +20 -45
- package/lib/md037.js +70 -164
- package/lib/md043.js +42 -40
- package/lib/md044.js +15 -41
- package/lib/md045.js +17 -5
- package/lib/md049-md050.js +6 -3
- package/lib/md051.js +123 -72
- package/lib/md052.js +7 -3
- package/package.json +25 -24
- package/schema/.markdownlint.jsonc +7 -4
- package/schema/.markdownlint.yaml +6 -4
- package/schema/markdownlint-config-schema.json +32 -9
|
@@ -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
|
|
131
131
|
punctuation: ".,;:!。,;:!"
|
|
132
132
|
|
|
133
133
|
# MD027/no-multiple-space-blockquote - Multiple spaces after blockquote symbol
|
|
@@ -240,19 +240,21 @@ MD048:
|
|
|
240
240
|
|
|
241
241
|
# MD049/emphasis-style - Emphasis style should be consistent
|
|
242
242
|
MD049:
|
|
243
|
-
# Emphasis style
|
|
243
|
+
# Emphasis style
|
|
244
244
|
style: "consistent"
|
|
245
245
|
|
|
246
246
|
# MD050/strong-style - Strong style should be consistent
|
|
247
247
|
MD050:
|
|
248
|
-
# Strong style
|
|
248
|
+
# Strong style
|
|
249
249
|
style: "consistent"
|
|
250
250
|
|
|
251
251
|
# MD051/link-fragments - Link fragments should be valid
|
|
252
252
|
MD051: true
|
|
253
253
|
|
|
254
254
|
# MD052/reference-links-images - Reference links and images should use a label that is defined
|
|
255
|
-
MD052:
|
|
255
|
+
MD052:
|
|
256
|
+
# Include shortcut syntax
|
|
257
|
+
shortcut_syntax: false
|
|
256
258
|
|
|
257
259
|
# MD053/link-image-reference-definitions - Link and image reference definitions should be needed
|
|
258
260
|
MD053:
|
|
@@ -361,14 +361,26 @@
|
|
|
361
361
|
"properties": {
|
|
362
362
|
"lines_above": {
|
|
363
363
|
"description": "Blank lines above heading",
|
|
364
|
-
"type":
|
|
365
|
-
|
|
364
|
+
"type": [
|
|
365
|
+
"integer",
|
|
366
|
+
"array"
|
|
367
|
+
],
|
|
368
|
+
"items": {
|
|
369
|
+
"type": "integer"
|
|
370
|
+
},
|
|
371
|
+
"minimum": -1,
|
|
366
372
|
"default": 1
|
|
367
373
|
},
|
|
368
374
|
"lines_below": {
|
|
369
375
|
"description": "Blank lines below heading",
|
|
370
|
-
"type":
|
|
371
|
-
|
|
376
|
+
"type": [
|
|
377
|
+
"integer",
|
|
378
|
+
"array"
|
|
379
|
+
],
|
|
380
|
+
"items": {
|
|
381
|
+
"type": "integer"
|
|
382
|
+
},
|
|
383
|
+
"minimum": -1,
|
|
372
384
|
"default": 1
|
|
373
385
|
}
|
|
374
386
|
},
|
|
@@ -456,7 +468,7 @@
|
|
|
456
468
|
"default": true,
|
|
457
469
|
"properties": {
|
|
458
470
|
"punctuation": {
|
|
459
|
-
"description": "Punctuation characters
|
|
471
|
+
"description": "Punctuation characters",
|
|
460
472
|
"type": "string",
|
|
461
473
|
"default": ".,;:!。,;:!"
|
|
462
474
|
}
|
|
@@ -876,7 +888,7 @@
|
|
|
876
888
|
"default": true,
|
|
877
889
|
"properties": {
|
|
878
890
|
"style": {
|
|
879
|
-
"description": "Emphasis style
|
|
891
|
+
"description": "Emphasis style",
|
|
880
892
|
"type": "string",
|
|
881
893
|
"enum": [
|
|
882
894
|
"consistent",
|
|
@@ -900,7 +912,7 @@
|
|
|
900
912
|
"default": true,
|
|
901
913
|
"properties": {
|
|
902
914
|
"style": {
|
|
903
|
-
"description": "Strong style
|
|
915
|
+
"description": "Strong style",
|
|
904
916
|
"type": "string",
|
|
905
917
|
"enum": [
|
|
906
918
|
"consistent",
|
|
@@ -925,8 +937,19 @@
|
|
|
925
937
|
},
|
|
926
938
|
"MD052": {
|
|
927
939
|
"description": "MD052/reference-links-images - Reference links and images should use a label that is defined",
|
|
928
|
-
"type":
|
|
929
|
-
|
|
940
|
+
"type": [
|
|
941
|
+
"boolean",
|
|
942
|
+
"object"
|
|
943
|
+
],
|
|
944
|
+
"default": true,
|
|
945
|
+
"properties": {
|
|
946
|
+
"shortcut_syntax": {
|
|
947
|
+
"description": "Include shortcut syntax",
|
|
948
|
+
"type": "boolean",
|
|
949
|
+
"default": false
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
"additionalProperties": false
|
|
930
953
|
},
|
|
931
954
|
"reference-links-images": {
|
|
932
955
|
"$ref": "#/properties/MD052"
|