markdownlint 0.37.4 → 0.39.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 (73) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/CONTRIBUTING.md +2 -3
  3. package/README.md +175 -87
  4. package/doc/Rules.md +273 -47
  5. package/doc/md001.md +14 -0
  6. package/doc/md009.md +8 -9
  7. package/doc/md010.md +6 -0
  8. package/doc/md027.md +8 -0
  9. package/doc/md029.md +2 -0
  10. package/doc/md033.md +7 -1
  11. package/doc/md038.md +23 -11
  12. package/doc/md041.md +31 -16
  13. package/doc/md043.md +22 -4
  14. package/doc/md045.md +9 -1
  15. package/doc/md051.md +17 -0
  16. package/doc/md052.md +12 -0
  17. package/doc/md053.md +3 -3
  18. package/doc/md055.md +1 -1
  19. package/doc/md056.md +1 -1
  20. package/doc/md059.md +33 -0
  21. package/doc/md060.md +70 -0
  22. package/helpers/README.md +2 -2
  23. package/helpers/helpers.cjs +174 -20
  24. package/helpers/micromark-helpers.cjs +37 -7
  25. package/helpers/package.json +1 -1
  26. package/lib/cache.mjs +25 -7
  27. package/lib/configuration-strict.d.ts +1494 -292
  28. package/lib/constants.mjs +6 -5
  29. package/lib/defer-require.cjs +2 -0
  30. package/lib/exports.d.mts +2 -2
  31. package/lib/exports.mjs +2 -2
  32. package/lib/markdownit.cjs +8 -14
  33. package/lib/markdownlint.d.mts +136 -52
  34. package/lib/markdownlint.mjs +469 -409
  35. package/lib/md001.mjs +6 -2
  36. package/lib/md004.mjs +7 -18
  37. package/lib/md007.mjs +2 -1
  38. package/lib/md009.mjs +9 -5
  39. package/lib/md010.mjs +1 -1
  40. package/lib/md022.mjs +5 -2
  41. package/lib/md025.mjs +23 -15
  42. package/lib/md027.mjs +11 -1
  43. package/lib/md029.mjs +25 -14
  44. package/lib/md031.mjs +0 -1
  45. package/lib/md032.mjs +3 -1
  46. package/lib/md033.mjs +28 -20
  47. package/lib/md034.mjs +2 -1
  48. package/lib/md036.mjs +16 -4
  49. package/lib/md037.mjs +10 -7
  50. package/lib/md038.mjs +52 -71
  51. package/lib/md041.mjs +54 -16
  52. package/lib/md042.mjs +4 -2
  53. package/lib/md043.mjs +4 -2
  54. package/lib/md044.mjs +1 -1
  55. package/lib/md045.mjs +3 -1
  56. package/lib/md046.mjs +6 -6
  57. package/lib/md051.mjs +13 -5
  58. package/lib/md052.mjs +2 -1
  59. package/lib/md053.mjs +1 -1
  60. package/lib/md054.mjs +7 -5
  61. package/lib/md055.mjs +7 -6
  62. package/lib/md056.mjs +1 -1
  63. package/lib/md059.mjs +71 -0
  64. package/lib/md060.mjs +121 -0
  65. package/lib/micromark-parse.mjs +17 -3
  66. package/lib/node-imports-browser.mjs +2 -0
  67. package/lib/parse-configuration.mjs +47 -0
  68. package/lib/rules.mjs +5 -1
  69. package/package.json +32 -30
  70. package/schema/.markdownlint.jsonc +97 -62
  71. package/schema/.markdownlint.yaml +86 -57
  72. package/schema/markdownlint-config-schema-strict.json +4713 -1436
  73. package/schema/markdownlint-config-schema.json +4713 -1436
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markdownlint",
3
- "version": "0.37.4",
3
+ "version": "0.39.0",
4
4
  "description": "A Node.js style checker and lint tool for Markdown/CommonMark files.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -39,11 +39,10 @@
39
39
  "build-declaration": "tsc --allowJs --checkJs --declaration --emitDeclarationOnly --module nodenext --outDir dts --rootDir . --target es2015 lib/exports.mjs lib/exports-async.mjs lib/exports-promise.mjs lib/exports-sync.mjs lib/markdownlint.mjs lib/resolve-module.cjs && node scripts/index.mjs copy dts/lib/exports.d.mts lib/exports.d.mts && node scripts/index.mjs copy dts/lib/exports-async.d.mts lib/exports-async.d.mts && node scripts/index.mjs copy dts/lib/exports-promise.d.mts lib/exports-promise.d.mts && node scripts/index.mjs copy dts/lib/exports-sync.d.mts lib/exports-sync.d.mts && node scripts/index.mjs copy dts/lib/markdownlint.d.mts lib/markdownlint.d.mts && node scripts/index.mjs copy dts/lib/resolve-module.d.cts lib/resolve-module.d.cts && node scripts/index.mjs remove dts",
40
40
  "build-demo": "node scripts/index.mjs copy node_modules/markdown-it/dist/markdown-it.min.js demo/markdown-it.min.js && cd demo && webpack --no-stats",
41
41
  "build-docs": "node doc-build/build-rules.mjs",
42
- "build-example": "npm install --no-save --ignore-scripts grunt grunt-cli gulp through2",
43
- "ci": "npm-run-all --continue-on-error --parallel lint serial-config-docs serial-declaration-demo test-cover && git diff --exit-code",
42
+ "ci": "npm-run-all --continue-on-error --parallel build-demo lint serial-config-docs serial-declaration test-cover && git diff --exit-code",
44
43
  "clone-test-repos-apache-airflow": "cd test-repos && git clone https://github.com/apache/airflow apache-airflow --depth 1 --no-tags --quiet",
45
44
  "clone-test-repos-dotnet-docs": "cd test-repos && git clone https://github.com/dotnet/docs dotnet-docs --depth 1 --no-tags --quiet",
46
- "clone-test-repos-electron-electron": "cd test-repos && git clone https://github.com/electron/electron electron-electron --depth 1 --no-tags --quiet && cd electron-electron && npm install --ignore-scripts @electron/lint-roller typescript@4",
45
+ "clone-test-repos-electron-electron": "cd test-repos && git clone https://github.com/electron/electron electron-electron --depth 1 --no-tags --quiet && cd electron-electron && node ../../scripts/index.mjs delete package.json && npm install --no-save --ignore-scripts @electron/lint-roller",
47
46
  "clone-test-repos-eslint-eslint": "cd test-repos && git clone https://github.com/eslint/eslint eslint-eslint --depth 1 --no-tags --quiet",
48
47
  "clone-test-repos-mdn-content": "cd test-repos && git clone https://github.com/mdn/content mdn-content --depth 1 --no-tags --quiet",
49
48
  "clone-test-repos-mkdocs-mkdocs": "cd test-repos && git clone https://github.com/mkdocs/mkdocs mkdocs-mkdocs --depth 1 --no-tags --quiet",
@@ -54,60 +53,63 @@
54
53
  "clone-test-repos-webpack-webpack-js-org": "cd test-repos && git clone https://github.com/webpack/webpack.js.org webpack-webpack-js-org --depth 1 --no-tags --quiet",
55
54
  "clone-test-repos": "mkdir test-repos && cd test-repos && npm run clone-test-repos-apache-airflow && npm run clone-test-repos-dotnet-docs && npm run clone-test-repos-electron-electron && npm run clone-test-repos-eslint-eslint && npm run clone-test-repos-mdn-content && npm run clone-test-repos-mkdocs-mkdocs && npm run clone-test-repos-mochajs-mocha && npm run clone-test-repos-pi-hole-docs && npm run clone-test-repos-v8-v8-dev && npm run clone-test-repos-webhintio-hint && npm run clone-test-repos-webpack-webpack-js-org",
56
55
  "declaration": "npm run build-declaration && npm run test-declaration",
57
- "example": "cd example && node standalone.mjs && grunt markdownlint --force && gulp markdownlint",
56
+ "example": "cd example && node standalone.mjs",
58
57
  "lint": "eslint --max-warnings 0",
59
58
  "lint-test-repos": "ava --timeout=10m test/markdownlint-test-repos-*.mjs",
60
59
  "serial-config-docs": "npm run build-config && npm run build-docs",
61
- "serial-declaration-demo": "npm run build-declaration && npm-run-all --continue-on-error --parallel build-demo test-declaration",
62
- "test": "ava --timeout=30s test/markdownlint-test.mjs test/markdownlint-test-config.mjs test/markdownlint-test-custom-rules.mjs test/markdownlint-test-fixes.mjs test/markdownlint-test-helpers.mjs test/markdownlint-test-micromark.mjs test/markdownlint-test-result-object.mjs test/markdownlint-test-scenarios.mjs test/resolve-module-test.mjs helpers/test.cjs",
60
+ "serial-declaration": "npm run build-declaration && npm run test-declaration",
61
+ "test": "ava --timeout=30s test/markdownlint-test.mjs test/markdownlint-test-config.mjs test/markdownlint-test-custom-rules.mjs test/markdownlint-test-exports.mjs test/markdownlint-test-fixes.mjs test/markdownlint-test-helpers.mjs test/markdownlint-test-micromark.mjs test/markdownlint-test-project.mjs test/markdownlint-test-result-object.mjs test/markdownlint-test-scenarios.mjs test/parse-configuration-test.mjs test/resolve-module-test.mjs helpers/test.cjs",
63
62
  "test-cover": "c8 --100 npm test",
64
- "test-declaration": "cd example/typescript && tsc --module commonjs && tsc --module nodenext && node type-check.js",
63
+ "test-declaration": "npm-run-all --continue-on-error --parallel test-declaration-cts test-declaration-mts",
64
+ "test-declaration-cts": "cd example/typescript && node ../../scripts/index.mjs copy type-check.ts type-check-commonjs.cts && tsc --module commonjs --esModuleInterop type-check-commonjs.cts",
65
+ "test-declaration-mts": "cd example/typescript && node ../../scripts/index.mjs copy type-check.ts type-check-nodenext.mts && tsc --module nodenext type-check-nodenext.mts && node type-check-nodenext.mjs",
65
66
  "test-extra": "ava --timeout=10m test/markdownlint-test-extra-parse.mjs test/markdownlint-test-extra-type.mjs",
66
- "update-snapshots": "ava --update-snapshots test/markdownlint-test-custom-rules.mjs test/markdownlint-test-micromark.mjs test/markdownlint-test-scenarios.mjs",
67
+ "update-snapshots": "ava --update-snapshots test/markdownlint-test-custom-rules.mjs test/markdownlint-test-exports.mjs test/markdownlint-test-micromark.mjs test/markdownlint-test-scenarios.mjs",
67
68
  "update-snapshots-test-repos": "ava --timeout=10m --update-snapshots test/markdownlint-test-repos-*.mjs",
69
+ "update-test-repos": "node scripts/index.mjs remove ./test-repos && npm run clone-test-repos && npm run update-snapshots-test-repos",
68
70
  "upgrade": "npx --yes npm-check-updates --upgrade"
69
71
  },
70
72
  "engines": {
71
- "node": ">=18"
73
+ "node": ">=20"
72
74
  },
73
75
  "dependencies": {
74
- "markdown-it": "14.1.0",
75
- "micromark": "4.0.1",
76
- "micromark-core-commonmark": "2.0.2",
77
- "micromark-extension-directive": "3.0.2",
76
+ "micromark": "4.0.2",
77
+ "micromark-core-commonmark": "2.0.3",
78
+ "micromark-extension-directive": "4.0.0",
78
79
  "micromark-extension-gfm-autolink-literal": "2.1.0",
79
80
  "micromark-extension-gfm-footnote": "2.1.0",
80
- "micromark-extension-gfm-table": "2.1.0",
81
+ "micromark-extension-gfm-table": "2.1.1",
81
82
  "micromark-extension-math": "3.1.0",
82
- "micromark-util-types": "2.0.1"
83
+ "micromark-util-types": "2.0.2"
83
84
  },
84
85
  "devDependencies": {
85
- "@eslint/js": "9.18.0",
86
- "@stylistic/eslint-plugin": "2.13.0",
86
+ "@eslint/js": "9.37.0",
87
+ "@stylistic/eslint-plugin": "5.4.0",
87
88
  "ajv": "8.17.1",
88
- "ava": "6.2.0",
89
+ "ava": "6.4.1",
89
90
  "c8": "10.1.3",
90
91
  "character-entities": "2.0.2",
91
- "eslint": "9.18.0",
92
- "eslint-plugin-jsdoc": "50.6.1",
93
- "eslint-plugin-n": "17.15.1",
94
- "eslint-plugin-regexp": "2.7.0",
95
- "eslint-plugin-unicorn": "56.0.1",
92
+ "eslint": "9.37.0",
93
+ "eslint-plugin-jsdoc": "61.1.1",
94
+ "eslint-plugin-n": "17.23.1",
95
+ "eslint-plugin-regexp": "2.10.0",
96
+ "eslint-plugin-unicorn": "61.0.2",
96
97
  "gemoji": "8.1.0",
97
- "globby": "14.0.2",
98
+ "globby": "15.0.0",
98
99
  "js-yaml": "4.1.0",
99
100
  "json-schema-to-typescript": "15.0.4",
100
101
  "jsonc-parser": "3.3.1",
102
+ "markdown-it": "14.1.0",
101
103
  "markdown-it-for-inline": "2.0.1",
102
104
  "markdown-it-sub": "2.0.0",
103
105
  "markdown-it-sup": "2.0.0",
104
- "markdownlint-rule-extended-ascii": "0.1.0",
105
- "nano-spawn": "0.2.0",
106
+ "markdownlint-rule-extended-ascii": "0.2.1",
107
+ "nano-spawn": "2.0.0",
106
108
  "npm-run-all": "4.1.5",
107
- "terser-webpack-plugin": "5.3.11",
109
+ "terser-webpack-plugin": "5.3.14",
108
110
  "toml": "3.0.0",
109
- "typescript": "5.7.3",
110
- "webpack": "5.97.1",
111
+ "typescript": "5.9.3",
112
+ "webpack": "5.102.1",
111
113
  "webpack-cli": "6.0.1"
112
114
  },
113
115
  "keywords": [
@@ -7,25 +7,28 @@
7
7
  // Path to configuration file to extend
8
8
  "extends": null,
9
9
 
10
- // MD001/heading-increment : Heading levels should only increment by one level at a time : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md001.md
11
- "MD001": true,
10
+ // MD001/heading-increment : Heading levels should only increment by one level at a time : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md001.md
11
+ "MD001": {
12
+ // RegExp for matching title in front matter
13
+ "front_matter_title": "^\\s*title\\s*[:=]"
14
+ },
12
15
 
13
- // MD003/heading-style : Heading style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md003.md
16
+ // MD003/heading-style : Heading style : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md003.md
14
17
  "MD003": {
15
18
  // Heading style
16
19
  "style": "consistent"
17
20
  },
18
21
 
19
- // MD004/ul-style : Unordered list style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md004.md
22
+ // MD004/ul-style : Unordered list style : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md004.md
20
23
  "MD004": {
21
24
  // List style
22
25
  "style": "consistent"
23
26
  },
24
27
 
25
- // MD005/list-indent : Inconsistent indentation for list items at the same level : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md005.md
28
+ // MD005/list-indent : Inconsistent indentation for list items at the same level : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md005.md
26
29
  "MD005": true,
27
30
 
28
- // MD007/ul-indent : Unordered list indentation : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md007.md
31
+ // MD007/ul-indent : Unordered list indentation : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md007.md
29
32
  "MD007": {
30
33
  // Spaces for indent
31
34
  "indent": 2,
@@ -35,17 +38,19 @@
35
38
  "start_indent": 2
36
39
  },
37
40
 
38
- // MD009/no-trailing-spaces : Trailing spaces : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md009.md
41
+ // MD009/no-trailing-spaces : Trailing spaces : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md009.md
39
42
  "MD009": {
40
43
  // Spaces for line break
41
44
  "br_spaces": 2,
45
+ // Include code blocks
46
+ "code_blocks": false,
42
47
  // Allow spaces for empty lines in list items
43
48
  "list_item_empty_lines": false,
44
49
  // Include unnecessary breaks
45
50
  "strict": false
46
51
  },
47
52
 
48
- // MD010/no-hard-tabs : Hard tabs : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md010.md
53
+ // MD010/no-hard-tabs : Hard tabs : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md010.md
49
54
  "MD010": {
50
55
  // Include code blocks
51
56
  "code_blocks": true,
@@ -55,16 +60,16 @@
55
60
  "spaces_per_tab": 1
56
61
  },
57
62
 
58
- // MD011/no-reversed-links : Reversed link syntax : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md011.md
63
+ // MD011/no-reversed-links : Reversed link syntax : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md011.md
59
64
  "MD011": true,
60
65
 
61
- // MD012/no-multiple-blanks : Multiple consecutive blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md012.md
66
+ // MD012/no-multiple-blanks : Multiple consecutive blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md012.md
62
67
  "MD012": {
63
68
  // Consecutive blank lines
64
69
  "maximum": 1
65
70
  },
66
71
 
67
- // MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md013.md
72
+ // MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md013.md
68
73
  "MD013": {
69
74
  // Number of characters
70
75
  "line_length": 80,
@@ -84,22 +89,22 @@
84
89
  "stern": false
85
90
  },
86
91
 
87
- // MD014/commands-show-output : Dollar signs used before commands without showing output : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md014.md
92
+ // MD014/commands-show-output : Dollar signs used before commands without showing output : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md014.md
88
93
  "MD014": true,
89
94
 
90
- // MD018/no-missing-space-atx : No space after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md018.md
95
+ // MD018/no-missing-space-atx : No space after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md018.md
91
96
  "MD018": true,
92
97
 
93
- // MD019/no-multiple-space-atx : Multiple spaces after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md019.md
98
+ // MD019/no-multiple-space-atx : Multiple spaces after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md019.md
94
99
  "MD019": true,
95
100
 
96
- // MD020/no-missing-space-closed-atx : No space inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md020.md
101
+ // MD020/no-missing-space-closed-atx : No space inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md020.md
97
102
  "MD020": true,
98
103
 
99
- // MD021/no-multiple-space-closed-atx : Multiple spaces inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md021.md
104
+ // MD021/no-multiple-space-closed-atx : Multiple spaces inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md021.md
100
105
  "MD021": true,
101
106
 
102
- // MD022/blanks-around-headings : Headings should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md022.md
107
+ // MD022/blanks-around-headings : Headings should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md022.md
103
108
  "MD022": {
104
109
  // Blank lines above heading
105
110
  "lines_above": 1,
@@ -107,42 +112,45 @@
107
112
  "lines_below": 1
108
113
  },
109
114
 
110
- // MD023/heading-start-left : Headings must start at the beginning of the line : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md023.md
115
+ // MD023/heading-start-left : Headings must start at the beginning of the line : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md023.md
111
116
  "MD023": true,
112
117
 
113
- // MD024/no-duplicate-heading : Multiple headings with the same content : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md024.md
118
+ // MD024/no-duplicate-heading : Multiple headings with the same content : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md024.md
114
119
  "MD024": {
115
120
  // Only check sibling headings
116
121
  "siblings_only": false
117
122
  },
118
123
 
119
- // MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md025.md
124
+ // MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md025.md
120
125
  "MD025": {
121
- // Heading level
122
- "level": 1,
123
126
  // RegExp for matching title in front matter
124
- "front_matter_title": "^\\s*title\\s*[:=]"
127
+ "front_matter_title": "^\\s*title\\s*[:=]",
128
+ // Heading level
129
+ "level": 1
125
130
  },
126
131
 
127
- // MD026/no-trailing-punctuation : Trailing punctuation in heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md026.md
132
+ // MD026/no-trailing-punctuation : Trailing punctuation in heading : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md026.md
128
133
  "MD026": {
129
134
  // Punctuation characters
130
135
  "punctuation": ".,;:!。,;:!"
131
136
  },
132
137
 
133
- // MD027/no-multiple-space-blockquote : Multiple spaces after blockquote symbol : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md027.md
134
- "MD027": true,
138
+ // MD027/no-multiple-space-blockquote : Multiple spaces after blockquote symbol : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md027.md
139
+ "MD027": {
140
+ // Include list items
141
+ "list_items": true
142
+ },
135
143
 
136
- // MD028/no-blanks-blockquote : Blank line inside blockquote : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md028.md
144
+ // MD028/no-blanks-blockquote : Blank line inside blockquote : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md028.md
137
145
  "MD028": true,
138
146
 
139
- // MD029/ol-prefix : Ordered list item prefix : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md029.md
147
+ // MD029/ol-prefix : Ordered list item prefix : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md029.md
140
148
  "MD029": {
141
149
  // List style
142
150
  "style": "one_or_ordered"
143
151
  },
144
152
 
145
- // MD030/list-marker-space : Spaces after list markers : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md030.md
153
+ // MD030/list-marker-space : Spaces after list markers : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md030.md
146
154
  "MD030": {
147
155
  // Spaces for single-line unordered list items
148
156
  "ul_single": 1,
@@ -154,46 +162,48 @@
154
162
  "ol_multi": 1
155
163
  },
156
164
 
157
- // MD031/blanks-around-fences : Fenced code blocks should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md031.md
165
+ // MD031/blanks-around-fences : Fenced code blocks should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md031.md
158
166
  "MD031": {
159
167
  // Include list items
160
168
  "list_items": true
161
169
  },
162
170
 
163
- // MD032/blanks-around-lists : Lists should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md032.md
171
+ // MD032/blanks-around-lists : Lists should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md032.md
164
172
  "MD032": true,
165
173
 
166
- // MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md033.md
174
+ // MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md033.md
167
175
  "MD033": {
168
176
  // Allowed elements
169
- "allowed_elements": []
177
+ "allowed_elements": [],
178
+ // Allowed elements in tables
179
+ "table_allowed_elements": []
170
180
  },
171
181
 
172
- // MD034/no-bare-urls : Bare URL used : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md034.md
182
+ // MD034/no-bare-urls : Bare URL used : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md034.md
173
183
  "MD034": true,
174
184
 
175
- // MD035/hr-style : Horizontal rule style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md035.md
185
+ // MD035/hr-style : Horizontal rule style : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md035.md
176
186
  "MD035": {
177
187
  // Horizontal rule style
178
188
  "style": "consistent"
179
189
  },
180
190
 
181
- // MD036/no-emphasis-as-heading : Emphasis used instead of a heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md036.md
191
+ // MD036/no-emphasis-as-heading : Emphasis used instead of a heading : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md036.md
182
192
  "MD036": {
183
193
  // Punctuation characters
184
194
  "punctuation": ".,;:!?。,;:!?"
185
195
  },
186
196
 
187
- // MD037/no-space-in-emphasis : Spaces inside emphasis markers : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md037.md
197
+ // MD037/no-space-in-emphasis : Spaces inside emphasis markers : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md037.md
188
198
  "MD037": true,
189
199
 
190
- // MD038/no-space-in-code : Spaces inside code span elements : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md038.md
200
+ // MD038/no-space-in-code : Spaces inside code span elements : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md038.md
191
201
  "MD038": true,
192
202
 
193
- // MD039/no-space-in-links : Spaces inside link text : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md039.md
203
+ // MD039/no-space-in-links : Spaces inside link text : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md039.md
194
204
  "MD039": true,
195
205
 
196
- // MD040/fenced-code-language : Fenced code blocks should have a language specified : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md040.md
206
+ // MD040/fenced-code-language : Fenced code blocks should have a language specified : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md040.md
197
207
  "MD040": {
198
208
  // List of languages
199
209
  "allowed_languages": [],
@@ -201,18 +211,20 @@
201
211
  "language_only": false
202
212
  },
203
213
 
204
- // MD041/first-line-heading/first-line-h1 : First line in a file should be a top-level heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md041.md
214
+ // MD041/first-line-heading/first-line-h1 : First line in a file should be a top-level heading : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md041.md
205
215
  "MD041": {
206
- // Heading level
207
- "level": 1,
216
+ // Allow content before first heading
217
+ "allow_preamble": false,
208
218
  // RegExp for matching title in front matter
209
- "front_matter_title": "^\\s*title\\s*[:=]"
219
+ "front_matter_title": "^\\s*title\\s*[:=]",
220
+ // Heading level
221
+ "level": 1
210
222
  },
211
223
 
212
- // MD042/no-empty-links : No empty links : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md042.md
224
+ // MD042/no-empty-links : No empty links : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md042.md
213
225
  "MD042": true,
214
226
 
215
- // MD043/required-headings : Required heading structure : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md043.md
227
+ // MD043/required-headings : Required heading structure : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md043.md
216
228
  "MD043": {
217
229
  // List of headings
218
230
  "headings": [],
@@ -220,7 +232,7 @@
220
232
  "match_case": false
221
233
  },
222
234
 
223
- // MD044/proper-names : Proper names should have the correct capitalization : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md044.md
235
+ // MD044/proper-names : Proper names should have the correct capitalization : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md044.md
224
236
  "MD044": {
225
237
  // List of proper names
226
238
  "names": [],
@@ -230,49 +242,55 @@
230
242
  "html_elements": true
231
243
  },
232
244
 
233
- // MD045/no-alt-text : Images should have alternate text (alt text) : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md045.md
245
+ // MD045/no-alt-text : Images should have alternate text (alt text) : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md045.md
234
246
  "MD045": true,
235
247
 
236
- // MD046/code-block-style : Code block style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md046.md
248
+ // MD046/code-block-style : Code block style : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md046.md
237
249
  "MD046": {
238
250
  // Block style
239
251
  "style": "consistent"
240
252
  },
241
253
 
242
- // MD047/single-trailing-newline : Files should end with a single newline character : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md047.md
254
+ // MD047/single-trailing-newline : Files should end with a single newline character : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md047.md
243
255
  "MD047": true,
244
256
 
245
- // MD048/code-fence-style : Code fence style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md048.md
257
+ // MD048/code-fence-style : Code fence style : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md048.md
246
258
  "MD048": {
247
259
  // Code fence style
248
260
  "style": "consistent"
249
261
  },
250
262
 
251
- // MD049/emphasis-style : Emphasis style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md049.md
263
+ // MD049/emphasis-style : Emphasis style : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md049.md
252
264
  "MD049": {
253
265
  // Emphasis style
254
266
  "style": "consistent"
255
267
  },
256
268
 
257
- // MD050/strong-style : Strong style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md050.md
269
+ // MD050/strong-style : Strong style : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md050.md
258
270
  "MD050": {
259
271
  // Strong style
260
272
  "style": "consistent"
261
273
  },
262
274
 
263
- // MD051/link-fragments : Link fragments should be valid : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md051.md
275
+ // MD051/link-fragments : Link fragments should be valid : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md051.md
264
276
  "MD051": {
265
277
  // Ignore case of fragments
266
- "ignore_case": false
278
+ "ignore_case": false,
279
+ // Pattern for ignoring additional fragments
280
+ "ignored_pattern": ""
267
281
  },
268
282
 
269
- // MD052/reference-links-images : Reference links and images should use a label that is defined : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md052.md
283
+ // MD052/reference-links-images : Reference links and images should use a label that is defined : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md052.md
270
284
  "MD052": {
285
+ // Ignored link labels
286
+ "ignored_labels": [
287
+ "x"
288
+ ],
271
289
  // Include shortcut syntax
272
290
  "shortcut_syntax": false
273
291
  },
274
292
 
275
- // MD053/link-image-reference-definitions : Link and image reference definitions should be needed : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md053.md
293
+ // MD053/link-image-reference-definitions : Link and image reference definitions should be needed : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md053.md
276
294
  "MD053": {
277
295
  // Ignored definitions
278
296
  "ignored_definitions": [
@@ -280,7 +298,7 @@
280
298
  ]
281
299
  },
282
300
 
283
- // MD054/link-image-style : Link and image style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md054.md
301
+ // MD054/link-image-style : Link and image style : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md054.md
284
302
  "MD054": {
285
303
  // Allow autolinks
286
304
  "autolink": true,
@@ -296,15 +314,32 @@
296
314
  "url_inline": true
297
315
  },
298
316
 
299
- // MD055/table-pipe-style : Table pipe style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md055.md
317
+ // MD055/table-pipe-style : Table pipe style : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md055.md
300
318
  "MD055": {
301
319
  // Table pipe style
302
320
  "style": "consistent"
303
321
  },
304
322
 
305
- // MD056/table-column-count : Table column count : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md056.md
323
+ // MD056/table-column-count : Table column count : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md056.md
306
324
  "MD056": true,
307
325
 
308
- // MD058/blanks-around-tables : Tables should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md058.md
309
- "MD058": true
326
+ // MD058/blanks-around-tables : Tables should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md058.md
327
+ "MD058": true,
328
+
329
+ // MD059/descriptive-link-text : Link text should be descriptive : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md059.md
330
+ "MD059": {
331
+ // Prohibited link texts
332
+ "prohibited_texts": [
333
+ "click here",
334
+ "here",
335
+ "link",
336
+ "more"
337
+ ]
338
+ },
339
+
340
+ // MD060/table-column-style : Table column style : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md060.md
341
+ "MD060": {
342
+ // Table column style
343
+ "style": "any"
344
+ }
310
345
  }