2 "name": "coc-markdownlint",
4 "description": "Markdownlint extension for coc.nvim",
5 "author": "Heyward Fann <fannheyward@gmail.com>",
7 "main": "lib/index.js",
15 "clean": "rimraf lib",
16 "lint": "eslint src --ext ts",
17 "schema": "node generate-config-schema.js",
18 "build": "node esbuild.js",
19 "prepare": "node esbuild.js"
23 "url": "https://github.com/fannheyward/coc-markdownlint.git"
26 "@types/deep-extend": "^0.4.31",
27 "@types/js-yaml": "^4.0.3",
28 "@types/node": "12.12.0",
29 "@types/rc": "^1.2.0",
30 "@typescript-eslint/eslint-plugin": "^4.32.0",
31 "@typescript-eslint/parser": "^4.32.0",
32 "coc.nvim": "^0.0.81-next.7",
33 "deep-extend": "^0.6.0",
37 "markdownlint": "^0.24.0",
38 "markdownlint-rule-helpers": "^0.15.0",
41 "typescript": "^4.4.3"
44 "onLanguage:markdown",
45 "onCommand:markdownlint.fixLine"
50 "fileMatch": ".markdownlint.json",
51 "url": "./schemas/markdownlint-config-schema.json"
56 "language": "markdown",
57 "path": "./snippets/snippets.json"
62 "title": "coc-markdownlint configuration",
64 "markdownlint.onOpen": {
67 "description": "Lint on open a file"
69 "markdownlint.onSave": {
72 "description": "Lint on saving a file"
74 "markdownlint.onChange": {
77 "description": "Lint on changing a file"
79 "markdownlint.config": {
82 "description": "Default state for all rules",
87 "description": "Path to configuration file to extend",
95 "description": "JSON Schema URI (used by some editors)",
97 "default": "https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json"
100 "description": "MD001/heading-increment/header-increment - Heading levels should only increment by one level at a time",
104 "heading-increment": {
105 "description": "MD001/heading-increment/header-increment - Heading levels should only increment by one level at a time",
109 "header-increment": {
110 "description": "MD001/heading-increment/header-increment - Heading levels should only increment by one level at a time",
115 "description": "MD002/first-heading-h1/first-header-h1 - First heading should be a top-level heading",
123 "description": "Heading level",
128 "additionalProperties": false
130 "first-heading-h1": {
131 "description": "MD002/first-heading-h1/first-header-h1 - First heading should be a top-level heading",
139 "description": "Heading level",
144 "additionalProperties": false
147 "description": "MD002/first-heading-h1/first-header-h1 - First heading should be a top-level heading",
155 "description": "Heading level",
160 "additionalProperties": false
163 "description": "MD003/heading-style/header-style - Heading style",
171 "description": "Heading style",
179 "setext_with_atx_closed"
181 "default": "consistent"
184 "additionalProperties": false
187 "description": "MD003/heading-style/header-style - Heading style",
195 "description": "Heading style",
203 "setext_with_atx_closed"
205 "default": "consistent"
208 "additionalProperties": false
211 "description": "MD003/heading-style/header-style - Heading style",
219 "description": "Heading style",
227 "setext_with_atx_closed"
229 "default": "consistent"
232 "additionalProperties": false
235 "description": "MD004/ul-style - Unordered list style",
243 "description": "List style",
252 "default": "consistent"
255 "additionalProperties": false
258 "description": "MD004/ul-style - Unordered list style",
266 "description": "List style",
275 "default": "consistent"
278 "additionalProperties": false
281 "description": "MD005/list-indent - Inconsistent indentation for list items at the same level",
286 "description": "MD005/list-indent - Inconsistent indentation for list items at the same level",
291 "description": "MD006/ul-start-left - Consider starting bulleted lists at the beginning of the line",
296 "description": "MD006/ul-start-left - Consider starting bulleted lists at the beginning of the line",
301 "description": "MD007/ul-indent - Unordered list indentation",
309 "description": "Spaces for indent",
314 "description": "Whether to indent the first level of the list",
319 "additionalProperties": false
322 "description": "MD007/ul-indent - Unordered list indentation",
330 "description": "Spaces for indent",
335 "description": "Whether to indent the first level of the list",
340 "additionalProperties": false
343 "description": "MD009/no-trailing-spaces - Trailing spaces",
351 "description": "Spaces for line break",
355 "list_item_empty_lines": {
356 "description": "Allow spaces for empty lines in list items",
361 "description": "Include unnecessary breaks",
366 "additionalProperties": false
368 "no-trailing-spaces": {
369 "description": "MD009/no-trailing-spaces - Trailing spaces",
377 "description": "Spaces for line break",
381 "list_item_empty_lines": {
382 "description": "Allow spaces for empty lines in list items",
387 "description": "Include unnecessary breaks",
392 "additionalProperties": false
395 "description": "MD010/no-hard-tabs - Hard tabs",
403 "description": "Include code blocks",
408 "description": "Number of spaces for each hard tab",
413 "additionalProperties": false
416 "description": "MD010/no-hard-tabs - Hard tabs",
424 "description": "Include code blocks",
429 "description": "Number of spaces for each hard tab",
434 "additionalProperties": false
437 "description": "MD011/no-reversed-links - Reversed link syntax",
441 "no-reversed-links": {
442 "description": "MD011/no-reversed-links - Reversed link syntax",
447 "description": "MD012/no-multiple-blanks - Multiple consecutive blank lines",
455 "description": "Consecutive blank lines",
460 "additionalProperties": false
462 "no-multiple-blanks": {
463 "description": "MD012/no-multiple-blanks - Multiple consecutive blank lines",
471 "description": "Consecutive blank lines",
476 "additionalProperties": false
479 "description": "MD013/line-length - Line length",
487 "description": "Number of characters",
491 "heading_line_length": {
492 "description": "Number of characters for headings",
496 "code_block_line_length": {
497 "description": "Number of characters for code blocks",
502 "description": "Include code blocks",
507 "description": "Include tables",
512 "description": "Include headings",
517 "description": "Include headings",
522 "description": "Strict length checking",
527 "description": "Stern length checking",
532 "additionalProperties": false
535 "description": "MD013/line-length - Line length",
543 "description": "Number of characters",
547 "heading_line_length": {
548 "description": "Number of characters for headings",
552 "code_block_line_length": {
553 "description": "Number of characters for code blocks",
558 "description": "Include code blocks",
563 "description": "Include tables",
568 "description": "Include headings",
573 "description": "Include headings",
578 "description": "Strict length checking",
583 "description": "Stern length checking",
588 "additionalProperties": false
591 "description": "MD014/commands-show-output - Dollar signs used before commands without showing output",
595 "commands-show-output": {
596 "description": "MD014/commands-show-output - Dollar signs used before commands without showing output",
601 "description": "MD018/no-missing-space-atx - No space after hash on atx style heading",
605 "no-missing-space-atx": {
606 "description": "MD018/no-missing-space-atx - No space after hash on atx style heading",
611 "description": "MD019/no-multiple-space-atx - Multiple spaces after hash on atx style heading",
615 "no-multiple-space-atx": {
616 "description": "MD019/no-multiple-space-atx - Multiple spaces after hash on atx style heading",
621 "description": "MD020/no-missing-space-closed-atx - No space inside hashes on closed atx style heading",
625 "no-missing-space-closed-atx": {
626 "description": "MD020/no-missing-space-closed-atx - No space inside hashes on closed atx style heading",
631 "description": "MD021/no-multiple-space-closed-atx - Multiple spaces inside hashes on closed atx style heading",
635 "no-multiple-space-closed-atx": {
636 "description": "MD021/no-multiple-space-closed-atx - Multiple spaces inside hashes on closed atx style heading",
641 "description": "MD022/blanks-around-headings/blanks-around-headers - Headings should be surrounded by blank lines",
649 "description": "Blank lines above heading",
654 "description": "Blank lines below heading",
659 "additionalProperties": false
661 "blanks-around-headings": {
662 "description": "MD022/blanks-around-headings/blanks-around-headers - Headings should be surrounded by blank lines",
670 "description": "Blank lines above heading",
675 "description": "Blank lines below heading",
680 "additionalProperties": false
682 "blanks-around-headers": {
683 "description": "MD022/blanks-around-headings/blanks-around-headers - Headings should be surrounded by blank lines",
691 "description": "Blank lines above heading",
696 "description": "Blank lines below heading",
701 "additionalProperties": false
704 "description": "MD023/heading-start-left/header-start-left - Headings must start at the beginning of the line",
708 "heading-start-left": {
709 "description": "MD023/heading-start-left/header-start-left - Headings must start at the beginning of the line",
713 "header-start-left": {
714 "description": "MD023/heading-start-left/header-start-left - Headings must start at the beginning of the line",
719 "description": "MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content",
726 "allow_different_nesting": {
727 "description": "Only check sibling headings",
732 "description": "Only check sibling headings",
737 "additionalProperties": false
739 "no-duplicate-heading": {
740 "description": "MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content",
747 "allow_different_nesting": {
748 "description": "Only check sibling headings",
753 "description": "Only check sibling headings",
758 "additionalProperties": false
760 "no-duplicate-header": {
761 "description": "MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content",
768 "allow_different_nesting": {
769 "description": "Only check sibling headings",
774 "description": "Only check sibling headings",
779 "additionalProperties": false
782 "description": "MD025/single-title/single-h1 - Multiple top-level headings in the same document",
790 "description": "Heading level",
794 "front_matter_title": {
795 "description": "RegExp for matching title in front matter",
797 "default": "^\\s*title\\s*[:=]"
800 "additionalProperties": false
803 "description": "MD025/single-title/single-h1 - Multiple top-level headings in the same document",
811 "description": "Heading level",
815 "front_matter_title": {
816 "description": "RegExp for matching title in front matter",
818 "default": "^\\s*title\\s*[:=]"
821 "additionalProperties": false
824 "description": "MD025/single-title/single-h1 - Multiple top-level headings in the same document",
832 "description": "Heading level",
836 "front_matter_title": {
837 "description": "RegExp for matching title in front matter",
839 "default": "^\\s*title\\s*[:=]"
842 "additionalProperties": false
845 "description": "MD026/no-trailing-punctuation - Trailing punctuation in heading",
853 "description": "Punctuation characters",
855 "default": ".,;:!。,;:!"
858 "additionalProperties": false
860 "no-trailing-punctuation": {
861 "description": "MD026/no-trailing-punctuation - Trailing punctuation in heading",
869 "description": "Punctuation characters",
871 "default": ".,;:!。,;:!"
874 "additionalProperties": false
877 "description": "MD027/no-multiple-space-blockquote - Multiple spaces after blockquote symbol",
881 "no-multiple-space-blockquote": {
882 "description": "MD027/no-multiple-space-blockquote - Multiple spaces after blockquote symbol",
887 "description": "MD028/no-blanks-blockquote - Blank line inside blockquote",
891 "no-blanks-blockquote": {
892 "description": "MD028/no-blanks-blockquote - Blank line inside blockquote",
897 "description": "MD029/ol-prefix - Ordered list item prefix",
905 "description": "List style",
913 "default": "one_or_ordered"
916 "additionalProperties": false
919 "description": "MD029/ol-prefix - Ordered list item prefix",
927 "description": "List style",
935 "default": "one_or_ordered"
938 "additionalProperties": false
941 "description": "MD030/list-marker-space - Spaces after list markers",
949 "description": "Spaces for single-line unordered list items",
954 "description": "Spaces for single-line ordered list items",
959 "description": "Spaces for multi-line unordered list items",
964 "description": "Spaces for multi-line ordered list items",
969 "additionalProperties": false
971 "list-marker-space": {
972 "description": "MD030/list-marker-space - Spaces after list markers",
980 "description": "Spaces for single-line unordered list items",
985 "description": "Spaces for single-line ordered list items",
990 "description": "Spaces for multi-line unordered list items",
995 "description": "Spaces for multi-line ordered list items",
1000 "additionalProperties": false
1003 "description": "MD031/blanks-around-fences - Fenced code blocks should be surrounded by blank lines",
1011 "description": "Include list items",
1016 "additionalProperties": false
1018 "blanks-around-fences": {
1019 "description": "MD031/blanks-around-fences - Fenced code blocks should be surrounded by blank lines",
1027 "description": "Include list items",
1032 "additionalProperties": false
1035 "description": "MD032/blanks-around-lists - Lists should be surrounded by blank lines",
1039 "blanks-around-lists": {
1040 "description": "MD032/blanks-around-lists - Lists should be surrounded by blank lines",
1045 "description": "MD033/no-inline-html - Inline HTML",
1052 "allowed_elements": {
1053 "description": "Allowed elements",
1061 "additionalProperties": false
1064 "description": "MD033/no-inline-html - Inline HTML",
1071 "allowed_elements": {
1072 "description": "Allowed elements",
1080 "additionalProperties": false
1083 "description": "MD034/no-bare-urls - Bare URL used",
1088 "description": "MD034/no-bare-urls - Bare URL used",
1093 "description": "MD035/hr-style - Horizontal rule style",
1101 "description": "Horizontal rule style",
1103 "default": "consistent"
1106 "additionalProperties": false
1109 "description": "MD035/hr-style - Horizontal rule style",
1117 "description": "Horizontal rule style",
1119 "default": "consistent"
1122 "additionalProperties": false
1125 "description": "MD036/no-emphasis-as-heading/no-emphasis-as-header - Emphasis used instead of a heading",
1133 "description": "Punctuation characters",
1135 "default": ".,;:!?。,;:!?"
1138 "additionalProperties": false
1140 "no-emphasis-as-heading": {
1141 "description": "MD036/no-emphasis-as-heading/no-emphasis-as-header - Emphasis used instead of a heading",
1149 "description": "Punctuation characters",
1151 "default": ".,;:!?。,;:!?"
1154 "additionalProperties": false
1156 "no-emphasis-as-header": {
1157 "description": "MD036/no-emphasis-as-heading/no-emphasis-as-header - Emphasis used instead of a heading",
1165 "description": "Punctuation characters",
1167 "default": ".,;:!?。,;:!?"
1170 "additionalProperties": false
1173 "description": "MD037/no-space-in-emphasis - Spaces inside emphasis markers",
1177 "no-space-in-emphasis": {
1178 "description": "MD037/no-space-in-emphasis - Spaces inside emphasis markers",
1183 "description": "MD038/no-space-in-code - Spaces inside code span elements",
1187 "no-space-in-code": {
1188 "description": "MD038/no-space-in-code - Spaces inside code span elements",
1193 "description": "MD039/no-space-in-links - Spaces inside link text",
1197 "no-space-in-links": {
1198 "description": "MD039/no-space-in-links - Spaces inside link text",
1203 "description": "MD040/fenced-code-language - Fenced code blocks should have a language specified",
1207 "fenced-code-language": {
1208 "description": "MD040/fenced-code-language - Fenced code blocks should have a language specified",
1213 "description": "MD041/first-line-heading/first-line-h1 - First line in a file should be a top-level heading",
1221 "description": "Heading level",
1225 "front_matter_title": {
1226 "description": "RegExp for matching title in front matter",
1228 "default": "^\\s*title\\s*[:=]"
1231 "additionalProperties": false
1233 "first-line-heading": {
1234 "description": "MD041/first-line-heading/first-line-h1 - First line in a file should be a top-level heading",
1242 "description": "Heading level",
1246 "front_matter_title": {
1247 "description": "RegExp for matching title in front matter",
1249 "default": "^\\s*title\\s*[:=]"
1252 "additionalProperties": false
1255 "description": "MD041/first-line-heading/first-line-h1 - First line in a file should be a top-level heading",
1263 "description": "Heading level",
1267 "front_matter_title": {
1268 "description": "RegExp for matching title in front matter",
1270 "default": "^\\s*title\\s*[:=]"
1273 "additionalProperties": false
1276 "description": "MD042/no-empty-links - No empty links",
1281 "description": "MD042/no-empty-links - No empty links",
1286 "description": "MD043/required-headings/required-headers - Required heading structure",
1294 "description": "List of headings",
1302 "description": "List of headings",
1310 "additionalProperties": false
1312 "required-headings": {
1313 "description": "MD043/required-headings/required-headers - Required heading structure",
1321 "description": "List of headings",
1329 "description": "List of headings",
1337 "additionalProperties": false
1339 "required-headers": {
1340 "description": "MD043/required-headings/required-headers - Required heading structure",
1348 "description": "List of headings",
1356 "description": "List of headings",
1364 "additionalProperties": false
1367 "description": "MD044/proper-names - Proper names should have the correct capitalization",
1375 "description": "List of proper names",
1383 "description": "Include code blocks",
1388 "additionalProperties": false
1391 "description": "MD044/proper-names - Proper names should have the correct capitalization",
1399 "description": "List of proper names",
1407 "description": "Include code blocks",
1412 "additionalProperties": false
1415 "description": "MD045/no-alt-text - Images should have alternate text (alt text)",
1420 "description": "MD045/no-alt-text - Images should have alternate text (alt text)",
1425 "description": "MD046/code-block-style - Code block style",
1433 "description": "Block style",
1440 "default": "consistent"
1443 "additionalProperties": false
1445 "code-block-style": {
1446 "description": "MD046/code-block-style - Code block style",
1454 "description": "Block style",
1461 "default": "consistent"
1464 "additionalProperties": false
1467 "description": "MD047/single-trailing-newline - Files should end with a single newline character",
1471 "single-trailing-newline": {
1472 "description": "MD047/single-trailing-newline - Files should end with a single newline character",
1477 "description": "MD048/code-fence-style - Code fence style",
1485 "description": "Code fence style",
1492 "default": "consistent"
1495 "additionalProperties": false
1497 "code-fence-style": {
1498 "description": "MD048/code-fence-style - Code fence style",
1506 "description": "Code fence style",
1513 "default": "consistent"
1516 "additionalProperties": false
1519 "description": "headings - MD001, MD002, MD003, MD018, MD019, MD020, MD021, MD022, MD023, MD024, MD025, MD026, MD036, MD041, MD043",
1524 "description": "headers - MD001, MD002, MD003, MD018, MD019, MD020, MD021, MD022, MD023, MD024, MD025, MD026, MD036, MD041, MD043",
1529 "description": "bullet - MD004, MD005, MD006, MD007, MD032",
1534 "description": "ul - MD004, MD005, MD006, MD007, MD030, MD032",
1539 "description": "indentation - MD005, MD006, MD007, MD027",
1544 "description": "whitespace - MD009, MD010, MD012, MD027, MD028, MD030, MD037, MD038, MD039",
1549 "description": "hard_tab - MD010",
1554 "description": "links - MD011, MD034, MD039, MD042",
1559 "description": "blank_lines - MD012, MD022, MD031, MD032, MD047",
1564 "description": "line_length - MD013",
1569 "description": "code - MD014, MD031, MD038, MD040, MD046, MD048",
1574 "description": "atx - MD018, MD019",
1579 "description": "spaces - MD018, MD019, MD020, MD021, MD023",
1584 "description": "atx_closed - MD020, MD021",
1589 "description": "blockquote - MD027, MD028",
1594 "description": "ol - MD029, MD030, MD032",
1599 "description": "html - MD033",
1604 "description": "url - MD034",
1609 "description": "hr - MD035",
1614 "description": "emphasis - MD036, MD037",
1619 "description": "language - MD040",
1624 "description": "spelling - MD044",
1629 "description": "accessibility - MD045",
1634 "description": "images - MD045",
1644 "command": "markdownlint.fixAll",
1645 "title": "Fix all errors found by markdownlint"