@codacy/tools-markdownlint-0 0.13.0 → 0.14.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/dist/index.js +94 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -49,7 +49,13 @@ var patterns_default = [
|
|
|
49
49
|
title: "Enforce Incremental Heading Levels",
|
|
50
50
|
enabled: true,
|
|
51
51
|
languages: ["Markdown"],
|
|
52
|
-
parameters: [
|
|
52
|
+
parameters: [
|
|
53
|
+
{
|
|
54
|
+
name: "front_matter_title",
|
|
55
|
+
default: "^\\s*title\\s*[:=]",
|
|
56
|
+
description: "RegExp for matching title in front matter"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
53
59
|
tags: ["headings"]
|
|
54
60
|
},
|
|
55
61
|
{
|
|
@@ -133,6 +139,11 @@ var patterns_default = [
|
|
|
133
139
|
default: "2",
|
|
134
140
|
description: "Spaces for line break"
|
|
135
141
|
},
|
|
142
|
+
{
|
|
143
|
+
name: "code_blocks",
|
|
144
|
+
default: "false",
|
|
145
|
+
description: "Include code blocks"
|
|
146
|
+
},
|
|
136
147
|
{
|
|
137
148
|
name: "list_item_empty_lines",
|
|
138
149
|
default: "false",
|
|
@@ -390,7 +401,13 @@ var patterns_default = [
|
|
|
390
401
|
title: "Avoid Multiple Spaces After Blockquote Symbol",
|
|
391
402
|
enabled: true,
|
|
392
403
|
languages: ["Markdown"],
|
|
393
|
-
parameters: [
|
|
404
|
+
parameters: [
|
|
405
|
+
{
|
|
406
|
+
name: "list_items",
|
|
407
|
+
default: "true",
|
|
408
|
+
description: "Include list items"
|
|
409
|
+
}
|
|
410
|
+
],
|
|
394
411
|
tags: ["blockquote", "indentation", "whitespace"]
|
|
395
412
|
},
|
|
396
413
|
{
|
|
@@ -488,6 +505,11 @@ var patterns_default = [
|
|
|
488
505
|
name: "allowed_elements",
|
|
489
506
|
default: "[]",
|
|
490
507
|
description: "Allowed elements"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
name: "table_allowed_elements",
|
|
511
|
+
default: "[]",
|
|
512
|
+
description: "Allowed elements in tables"
|
|
491
513
|
}
|
|
492
514
|
],
|
|
493
515
|
tags: ["html"]
|
|
@@ -593,6 +615,11 @@ var patterns_default = [
|
|
|
593
615
|
enabled: false,
|
|
594
616
|
languages: ["Markdown"],
|
|
595
617
|
parameters: [
|
|
618
|
+
{
|
|
619
|
+
name: "allow_preamble",
|
|
620
|
+
default: "false",
|
|
621
|
+
description: "Allow content before first heading"
|
|
622
|
+
},
|
|
596
623
|
{
|
|
597
624
|
name: "front_matter_title",
|
|
598
625
|
default: "^\\s*title\\s*[:=]",
|
|
@@ -669,7 +696,7 @@ var patterns_default = [
|
|
|
669
696
|
severityLevel: "Info",
|
|
670
697
|
title: "Enforce Images to Have Alternate Text (alt text)",
|
|
671
698
|
enabled: true,
|
|
672
|
-
languages: ["Markdown"],
|
|
699
|
+
languages: ["Markdown", "HTML"],
|
|
673
700
|
parameters: [],
|
|
674
701
|
tags: ["accessibility", "images"]
|
|
675
702
|
},
|
|
@@ -754,7 +781,18 @@ var patterns_default = [
|
|
|
754
781
|
title: "Enforce Valid Link Fragments in Markdown",
|
|
755
782
|
enabled: true,
|
|
756
783
|
languages: ["Markdown"],
|
|
757
|
-
parameters: [
|
|
784
|
+
parameters: [
|
|
785
|
+
{
|
|
786
|
+
name: "ignore_case",
|
|
787
|
+
default: "false",
|
|
788
|
+
description: "Ignore case of fragments"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
name: "ignored_pattern",
|
|
792
|
+
default: "",
|
|
793
|
+
description: "Pattern for ignoring additional fragments"
|
|
794
|
+
}
|
|
795
|
+
],
|
|
758
796
|
tags: ["links"]
|
|
759
797
|
},
|
|
760
798
|
{
|
|
@@ -765,6 +803,11 @@ var patterns_default = [
|
|
|
765
803
|
enabled: true,
|
|
766
804
|
languages: ["Markdown"],
|
|
767
805
|
parameters: [
|
|
806
|
+
{
|
|
807
|
+
name: "ignored_labels",
|
|
808
|
+
default: '["x"]',
|
|
809
|
+
description: "Ignored link labels"
|
|
810
|
+
},
|
|
768
811
|
{
|
|
769
812
|
name: "shortcut_syntax",
|
|
770
813
|
default: "false",
|
|
@@ -855,6 +898,53 @@ var patterns_default = [
|
|
|
855
898
|
languages: ["Markdown"],
|
|
856
899
|
parameters: [],
|
|
857
900
|
tags: ["table"]
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
id: "markdownlint_MD058",
|
|
904
|
+
category: "CodeStyle",
|
|
905
|
+
severityLevel: "Info",
|
|
906
|
+
title: "Ensure tables are surrounded by blank lines",
|
|
907
|
+
enabled: false,
|
|
908
|
+
languages: ["Markdown"],
|
|
909
|
+
parameters: [],
|
|
910
|
+
tags: ["table"]
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
id: "markdownlint_MD059",
|
|
914
|
+
category: "Comprehensibility",
|
|
915
|
+
severityLevel: "Info",
|
|
916
|
+
title: "Ensure link text is descriptive",
|
|
917
|
+
enabled: false,
|
|
918
|
+
languages: ["Markdown"],
|
|
919
|
+
parameters: [
|
|
920
|
+
{
|
|
921
|
+
name: "prohibited_texts",
|
|
922
|
+
default: '["click here","here","link","more"]',
|
|
923
|
+
description: "Prohibited link texts"
|
|
924
|
+
}
|
|
925
|
+
],
|
|
926
|
+
tags: ["accessibility", "links"]
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
id: "markdownlint_MD060",
|
|
930
|
+
category: "CodeStyle",
|
|
931
|
+
severityLevel: "Info",
|
|
932
|
+
title: "Enforce table column style",
|
|
933
|
+
enabled: false,
|
|
934
|
+
languages: ["Markdown"],
|
|
935
|
+
parameters: [
|
|
936
|
+
{
|
|
937
|
+
name: "aligned_delimiter",
|
|
938
|
+
default: "false",
|
|
939
|
+
description: "Aligned delimiter columns"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
name: "style",
|
|
943
|
+
default: "any",
|
|
944
|
+
description: "Table column style"
|
|
945
|
+
}
|
|
946
|
+
],
|
|
947
|
+
tags: ["table"]
|
|
858
948
|
}
|
|
859
949
|
];
|
|
860
950
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codacy/tools-markdownlint-0",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "markdownlint adapter — Library-mode Markdown linter",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"markdownlint": "^0.37.4",
|
|
12
|
-
"@codacy/tooling": "0.
|
|
12
|
+
"@codacy/tooling": "0.14.0"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"author": "Codacy <support@codacy.com> (https://www.codacy.com)",
|