markdownlint 0.37.3 → 0.37.4

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/lib/constants.mjs CHANGED
@@ -10,4 +10,4 @@ export const fixableRuleNames = [
10
10
  "MD058"
11
11
  ];
12
12
  export const homepage = "https://github.com/DavidAnson/markdownlint";
13
- export const version = "0.37.3";
13
+ export const version = "0.37.4";
@@ -0,0 +1,16 @@
1
+ // @ts-check
2
+
3
+ "use strict";
4
+
5
+ /**
6
+ * Calls require for markdownit.cjs. Used to synchronously defer loading because module.createRequire is buggy under webpack (https://github.com/webpack/webpack/issues/16724).
7
+ *
8
+ * @returns {any} Exported module content.
9
+ */
10
+ function requireMarkdownItCjs() {
11
+ return require("./markdownit.cjs");
12
+ }
13
+
14
+ module.exports = {
15
+ requireMarkdownItCjs
16
+ };
package/lib/exports.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ export { resolveModule } from "./resolve-module.cjs";
1
2
  export type Configuration = import("./markdownlint.mjs").Configuration;
2
3
  export type ConfigurationParser = import("./markdownlint.mjs").ConfigurationParser;
3
4
  export type ConfigurationStrict = import("./markdownlint.mjs").ConfigurationStrict;
package/lib/exports.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  // @ts-check
2
2
 
3
3
  export { applyFix, applyFixes, getVersion } from "./markdownlint.mjs";
4
+ export { resolveModule } from "./resolve-module.cjs";
4
5
 
5
6
  /** @typedef {import("./markdownlint.mjs").Configuration} Configuration */
6
7
  /** @typedef {import("./markdownlint.mjs").ConfigurationParser} ConfigurationParser */
@@ -1,10 +1,11 @@
1
1
  // @ts-check
2
2
 
3
3
  // @ts-ignore
4
- import { fs as nodeFs, module, os, path } from "#node-imports";
5
- const dynamicRequire = module.createRequire(import.meta.url);
4
+ import { fs as nodeFs, os, path } from "#node-imports";
6
5
  import { initialize as cacheInitialize } from "./cache.mjs";
7
6
  import { version } from "./constants.mjs";
7
+ import { requireMarkdownItCjs } from "./defer-require.cjs";
8
+ import { resolveModule } from "./resolve-module.cjs";
8
9
  import rules from "./rules.mjs";
9
10
  import { parse as micromarkParse } from "./micromark-parse.mjs";
10
11
  import * as helpers from "../helpers/helpers.cjs";
@@ -501,7 +502,7 @@ function lintContent(
501
502
  // Parse content into lines and get markdown-it tokens
502
503
  const lines = content.split(helpers.newLineRe);
503
504
  const markdownitTokens = needMarkdownItTokens ?
504
- dynamicRequire("./markdownit.cjs").getMarkdownItTokens(markdownItPlugins, preClearedContent, lines) :
505
+ requireMarkdownItCjs().getMarkdownItTokens(markdownItPlugins, preClearedContent, lines) :
505
506
  [];
506
507
  // Create (frozen) parameters for rules
507
508
  /** @type {MarkdownParsers} */
@@ -1010,10 +1011,10 @@ function resolveConfigExtends(configFile, referenceId, fs, callback) {
1010
1011
  if (err) {
1011
1012
  // Not a file, try require.resolve
1012
1013
  try {
1013
- return callback(null, dynamicRequire.resolve(
1014
- referenceId,
1015
- { "paths": [ configFileDirname ] }
1016
- ));
1014
+ return callback(
1015
+ null,
1016
+ resolveModule(referenceId, [ configFileDirname ])
1017
+ );
1017
1018
  } catch {
1018
1019
  // Unable to resolve, use resolvedExtendsFile
1019
1020
  }
@@ -1041,10 +1042,7 @@ function resolveConfigExtendsSync(configFile, referenceId, fs) {
1041
1042
  // Not a file, try require.resolve
1042
1043
  }
1043
1044
  try {
1044
- return dynamicRequire.resolve(
1045
- referenceId,
1046
- { "paths": [ configFileDirname ] }
1047
- );
1045
+ return resolveModule(referenceId, [ configFileDirname ]);
1048
1046
  } catch {
1049
1047
  // Unable to resolve, return resolvedExtendsFile
1050
1048
  }
package/lib/md039.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  // @ts-check
2
2
 
3
3
  import { addErrorContext } from "../helpers/helpers.cjs";
4
- import { getReferenceLinkImageData, filterByTypesCached } from "./cache.mjs";
4
+ import { filterByTypesCached } from "./cache.mjs";
5
5
 
6
6
  /**
7
7
  * Adds an error for a label space issue.
@@ -35,18 +35,6 @@ function addLabelSpaceError(onError, label, labelText, isStart) {
35
35
  );
36
36
  }
37
37
 
38
- /**
39
- * Determines if a link is a valid link (and not a fake shortcut link due to parser tricks).
40
- *
41
- * @param {import("markdownlint").MicromarkToken} label Label token.
42
- * @param {import("markdownlint").MicromarkToken} labelText LabelText token.
43
- * @param {Map<string, any>} definitions Map of link definitions.
44
- * @returns {boolean} True iff the link is valid.
45
- */
46
- function validLink(label, labelText, definitions) {
47
- return (label.parent?.children.length !== 1) || definitions.has(labelText.text.trim());
48
- }
49
-
50
38
  /** @type {import("markdownlint").Rule} */
51
39
  export default {
52
40
  "names": [ "MD039", "no-space-in-links" ],
@@ -54,22 +42,15 @@ export default {
54
42
  "tags": [ "whitespace", "links" ],
55
43
  "parser": "micromark",
56
44
  "function": function MD039(params, onError) {
57
- const { definitions } = getReferenceLinkImageData();
58
45
  const labels = filterByTypesCached([ "label" ])
59
46
  .filter((label) => label.parent?.type === "link");
60
47
  for (const label of labels) {
61
48
  const labelTexts = label.children.filter((child) => child.type === "labelText");
62
49
  for (const labelText of labelTexts) {
63
- if (
64
- (labelText.text.trimStart().length !== labelText.text.length) &&
65
- validLink(label, labelText, definitions)
66
- ) {
50
+ if (labelText.text.trimStart().length !== labelText.text.length) {
67
51
  addLabelSpaceError(onError, label, labelText, true);
68
52
  }
69
- if (
70
- (labelText.text.trimEnd().length !== labelText.text.length) &&
71
- validLink(label, labelText, definitions)
72
- ) {
53
+ if (labelText.text.trimEnd().length !== labelText.text.length) {
73
54
  addLabelSpaceError(onError, label, labelText, false);
74
55
  }
75
56
  }
@@ -12,8 +12,6 @@ export const fs = {
12
12
  "readFileSync": throwForSync
13
13
  };
14
14
 
15
- export { default as module } from "./node-imports-browser-module.cjs";
16
-
17
15
  export const os = {};
18
16
 
19
17
  export const path = {
@@ -3,9 +3,6 @@
3
3
  import { access, accessSync, readFile, readFileSync } from "node:fs";
4
4
  export const fs = { access, accessSync, readFile, readFileSync };
5
5
 
6
- import { createRequire } from "node:module";
7
- export const module = { createRequire };
8
-
9
6
  import { EOL, homedir } from "node:os";
10
7
  export const os = { EOL, homedir };
11
8
 
@@ -0,0 +1,52 @@
1
+ // @ts-check
2
+
3
+ "use strict";
4
+
5
+ // @ts-ignore
6
+ // eslint-disable-next-line camelcase, no-inline-comments, no-undef
7
+ const nativeRequire = (typeof __non_webpack_require__ === "undefined") ? require : /* c8 ignore next */ __non_webpack_require__;
8
+ // Captures the native require implementation (even under webpack).
9
+
10
+ /**
11
+ * @typedef RequireResolveOptions
12
+ * @property {string[]} [paths] Additional paths to resolve from.
13
+ */
14
+
15
+ /**
16
+ * @callback RequireResolve
17
+ * @param {string} id Module name or path.
18
+ * @param {RequireResolveOptions} options Options to apply.
19
+ * @returns {string} Resolved module path.
20
+ */
21
+
22
+ /**
23
+ * Resolves modules according to Node's resolution rules.
24
+ *
25
+ * @param {RequireResolve} resolve Node-like require.resolve implementation.
26
+ * @param {string} id Module name or path.
27
+ * @param {string[]} [paths] Additional paths to resolve from.
28
+ * @returns {string} Resolved module path.
29
+ */
30
+ const resolveModuleCustomResolve = (resolve, id, paths = []) => {
31
+ // resolve.paths is sometimes not present under webpack or VS Code
32
+ // @ts-ignore
33
+ const resolvePaths = resolve.paths?.("") || [];
34
+ const allPaths = [ ...paths, ...resolvePaths ];
35
+ return resolve(id, { "paths": allPaths });
36
+ };
37
+
38
+ /**
39
+ * Resolves modules according to Node's resolution rules.
40
+ *
41
+ * @param {string} id Module name or path.
42
+ * @param {string[]} [paths] Additional paths to resolve from.
43
+ * @returns {string} Resolved module path.
44
+ */
45
+ const resolveModule = (id, paths) => (
46
+ resolveModuleCustomResolve(nativeRequire.resolve, id, paths)
47
+ );
48
+
49
+ module.exports = {
50
+ resolveModule,
51
+ resolveModuleCustomResolve
52
+ };
@@ -0,0 +1,34 @@
1
+ export type RequireResolveOptions = {
2
+ /**
3
+ * Additional paths to resolve from.
4
+ */
5
+ paths?: string[];
6
+ };
7
+ export type RequireResolve = (id: string, options: RequireResolveOptions) => string;
8
+ /**
9
+ * Resolves modules according to Node's resolution rules.
10
+ *
11
+ * @param {string} id Module name or path.
12
+ * @param {string[]} [paths] Additional paths to resolve from.
13
+ * @returns {string} Resolved module path.
14
+ */
15
+ export function resolveModule(id: string, paths?: string[]): string;
16
+ /**
17
+ * @typedef RequireResolveOptions
18
+ * @property {string[]} [paths] Additional paths to resolve from.
19
+ */
20
+ /**
21
+ * @callback RequireResolve
22
+ * @param {string} id Module name or path.
23
+ * @param {RequireResolveOptions} options Options to apply.
24
+ * @returns {string} Resolved module path.
25
+ */
26
+ /**
27
+ * Resolves modules according to Node's resolution rules.
28
+ *
29
+ * @param {RequireResolve} resolve Node-like require.resolve implementation.
30
+ * @param {string} id Module name or path.
31
+ * @param {string[]} [paths] Additional paths to resolve from.
32
+ * @returns {string} Resolved module path.
33
+ */
34
+ export function resolveModuleCustomResolve(resolve: RequireResolve, id: string, paths?: string[]): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markdownlint",
3
- "version": "0.37.3",
3
+ "version": "0.37.4",
4
4
  "description": "A Node.js style checker and lint tool for Markdown/CommonMark files.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -36,7 +36,7 @@
36
36
  "build-config": "npm run build-config-schema && npm run build-config-example",
37
37
  "build-config-example": "node schema/build-config-example.mjs",
38
38
  "build-config-schema": "node schema/build-config-schema.mjs",
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 && 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 remove dts",
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
42
  "build-example": "npm install --no-save --ignore-scripts grunt grunt-cli gulp through2",
@@ -59,7 +59,7 @@
59
59
  "lint-test-repos": "ava --timeout=10m test/markdownlint-test-repos-*.mjs",
60
60
  "serial-config-docs": "npm run build-config && npm run build-docs",
61
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 helpers/test.cjs",
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",
63
63
  "test-cover": "c8 --100 npm test",
64
64
  "test-declaration": "cd example/typescript && tsc --module commonjs && tsc --module nodenext && node type-check.js",
65
65
  "test-extra": "ava --timeout=10m test/markdownlint-test-extra-parse.mjs test/markdownlint-test-extra-type.mjs",
@@ -82,13 +82,13 @@
82
82
  "micromark-util-types": "2.0.1"
83
83
  },
84
84
  "devDependencies": {
85
- "@eslint/js": "9.17.0",
86
- "@stylistic/eslint-plugin": "2.12.1",
85
+ "@eslint/js": "9.18.0",
86
+ "@stylistic/eslint-plugin": "2.13.0",
87
87
  "ajv": "8.17.1",
88
88
  "ava": "6.2.0",
89
89
  "c8": "10.1.3",
90
90
  "character-entities": "2.0.2",
91
- "eslint": "9.17.0",
91
+ "eslint": "9.18.0",
92
92
  "eslint-plugin-jsdoc": "50.6.1",
93
93
  "eslint-plugin-n": "17.15.1",
94
94
  "eslint-plugin-regexp": "2.7.0",
@@ -96,7 +96,7 @@
96
96
  "gemoji": "8.1.0",
97
97
  "globby": "14.0.2",
98
98
  "js-yaml": "4.1.0",
99
- "json-schema-to-typescript": "15.0.3",
99
+ "json-schema-to-typescript": "15.0.4",
100
100
  "jsonc-parser": "3.3.1",
101
101
  "markdown-it-for-inline": "2.0.1",
102
102
  "markdown-it-sub": "2.0.0",
@@ -106,7 +106,7 @@
106
106
  "npm-run-all": "4.1.5",
107
107
  "terser-webpack-plugin": "5.3.11",
108
108
  "toml": "3.0.0",
109
- "typescript": "5.7.2",
109
+ "typescript": "5.7.3",
110
110
  "webpack": "5.97.1",
111
111
  "webpack-cli": "6.0.1"
112
112
  },
@@ -7,25 +7,25 @@
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.3/doc/md001.md
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
11
  "MD001": true,
12
12
 
13
- // MD003/heading-style : Heading style : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md003.md
13
+ // MD003/heading-style : Heading style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md003.md
14
14
  "MD003": {
15
15
  // Heading style
16
16
  "style": "consistent"
17
17
  },
18
18
 
19
- // MD004/ul-style : Unordered list style : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md004.md
19
+ // MD004/ul-style : Unordered list style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md004.md
20
20
  "MD004": {
21
21
  // List style
22
22
  "style": "consistent"
23
23
  },
24
24
 
25
- // MD005/list-indent : Inconsistent indentation for list items at the same level : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md005.md
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
26
26
  "MD005": true,
27
27
 
28
- // MD007/ul-indent : Unordered list indentation : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md007.md
28
+ // MD007/ul-indent : Unordered list indentation : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md007.md
29
29
  "MD007": {
30
30
  // Spaces for indent
31
31
  "indent": 2,
@@ -35,7 +35,7 @@
35
35
  "start_indent": 2
36
36
  },
37
37
 
38
- // MD009/no-trailing-spaces : Trailing spaces : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md009.md
38
+ // MD009/no-trailing-spaces : Trailing spaces : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md009.md
39
39
  "MD009": {
40
40
  // Spaces for line break
41
41
  "br_spaces": 2,
@@ -45,7 +45,7 @@
45
45
  "strict": false
46
46
  },
47
47
 
48
- // MD010/no-hard-tabs : Hard tabs : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md010.md
48
+ // MD010/no-hard-tabs : Hard tabs : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md010.md
49
49
  "MD010": {
50
50
  // Include code blocks
51
51
  "code_blocks": true,
@@ -55,16 +55,16 @@
55
55
  "spaces_per_tab": 1
56
56
  },
57
57
 
58
- // MD011/no-reversed-links : Reversed link syntax : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md011.md
58
+ // MD011/no-reversed-links : Reversed link syntax : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md011.md
59
59
  "MD011": true,
60
60
 
61
- // MD012/no-multiple-blanks : Multiple consecutive blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md012.md
61
+ // MD012/no-multiple-blanks : Multiple consecutive blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md012.md
62
62
  "MD012": {
63
63
  // Consecutive blank lines
64
64
  "maximum": 1
65
65
  },
66
66
 
67
- // MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md013.md
67
+ // MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md013.md
68
68
  "MD013": {
69
69
  // Number of characters
70
70
  "line_length": 80,
@@ -84,22 +84,22 @@
84
84
  "stern": false
85
85
  },
86
86
 
87
- // MD014/commands-show-output : Dollar signs used before commands without showing output : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md014.md
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
88
88
  "MD014": true,
89
89
 
90
- // MD018/no-missing-space-atx : No space after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md018.md
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
91
91
  "MD018": true,
92
92
 
93
- // MD019/no-multiple-space-atx : Multiple spaces after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md019.md
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
94
94
  "MD019": true,
95
95
 
96
- // MD020/no-missing-space-closed-atx : No space inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md020.md
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
97
97
  "MD020": true,
98
98
 
99
- // MD021/no-multiple-space-closed-atx : Multiple spaces inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md021.md
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
100
100
  "MD021": true,
101
101
 
102
- // MD022/blanks-around-headings : Headings should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md022.md
102
+ // MD022/blanks-around-headings : Headings should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md022.md
103
103
  "MD022": {
104
104
  // Blank lines above heading
105
105
  "lines_above": 1,
@@ -107,16 +107,16 @@
107
107
  "lines_below": 1
108
108
  },
109
109
 
110
- // MD023/heading-start-left : Headings must start at the beginning of the line : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md023.md
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
111
111
  "MD023": true,
112
112
 
113
- // MD024/no-duplicate-heading : Multiple headings with the same content : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md024.md
113
+ // MD024/no-duplicate-heading : Multiple headings with the same content : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md024.md
114
114
  "MD024": {
115
115
  // Only check sibling headings
116
116
  "siblings_only": false
117
117
  },
118
118
 
119
- // MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md025.md
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
120
120
  "MD025": {
121
121
  // Heading level
122
122
  "level": 1,
@@ -124,25 +124,25 @@
124
124
  "front_matter_title": "^\\s*title\\s*[:=]"
125
125
  },
126
126
 
127
- // MD026/no-trailing-punctuation : Trailing punctuation in heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md026.md
127
+ // MD026/no-trailing-punctuation : Trailing punctuation in heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md026.md
128
128
  "MD026": {
129
129
  // Punctuation characters
130
130
  "punctuation": ".,;:!。,;:!"
131
131
  },
132
132
 
133
- // MD027/no-multiple-space-blockquote : Multiple spaces after blockquote symbol : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md027.md
133
+ // MD027/no-multiple-space-blockquote : Multiple spaces after blockquote symbol : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md027.md
134
134
  "MD027": true,
135
135
 
136
- // MD028/no-blanks-blockquote : Blank line inside blockquote : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md028.md
136
+ // MD028/no-blanks-blockquote : Blank line inside blockquote : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md028.md
137
137
  "MD028": true,
138
138
 
139
- // MD029/ol-prefix : Ordered list item prefix : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md029.md
139
+ // MD029/ol-prefix : Ordered list item prefix : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md029.md
140
140
  "MD029": {
141
141
  // List style
142
142
  "style": "one_or_ordered"
143
143
  },
144
144
 
145
- // MD030/list-marker-space : Spaces after list markers : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md030.md
145
+ // MD030/list-marker-space : Spaces after list markers : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md030.md
146
146
  "MD030": {
147
147
  // Spaces for single-line unordered list items
148
148
  "ul_single": 1,
@@ -154,46 +154,46 @@
154
154
  "ol_multi": 1
155
155
  },
156
156
 
157
- // MD031/blanks-around-fences : Fenced code blocks should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md031.md
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
158
158
  "MD031": {
159
159
  // Include list items
160
160
  "list_items": true
161
161
  },
162
162
 
163
- // MD032/blanks-around-lists : Lists should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md032.md
163
+ // MD032/blanks-around-lists : Lists should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md032.md
164
164
  "MD032": true,
165
165
 
166
- // MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md033.md
166
+ // MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md033.md
167
167
  "MD033": {
168
168
  // Allowed elements
169
169
  "allowed_elements": []
170
170
  },
171
171
 
172
- // MD034/no-bare-urls : Bare URL used : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md034.md
172
+ // MD034/no-bare-urls : Bare URL used : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md034.md
173
173
  "MD034": true,
174
174
 
175
- // MD035/hr-style : Horizontal rule style : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md035.md
175
+ // MD035/hr-style : Horizontal rule style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md035.md
176
176
  "MD035": {
177
177
  // Horizontal rule style
178
178
  "style": "consistent"
179
179
  },
180
180
 
181
- // MD036/no-emphasis-as-heading : Emphasis used instead of a heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md036.md
181
+ // MD036/no-emphasis-as-heading : Emphasis used instead of a heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md036.md
182
182
  "MD036": {
183
183
  // Punctuation characters
184
184
  "punctuation": ".,;:!?。,;:!?"
185
185
  },
186
186
 
187
- // MD037/no-space-in-emphasis : Spaces inside emphasis markers : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md037.md
187
+ // MD037/no-space-in-emphasis : Spaces inside emphasis markers : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md037.md
188
188
  "MD037": true,
189
189
 
190
- // MD038/no-space-in-code : Spaces inside code span elements : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md038.md
190
+ // MD038/no-space-in-code : Spaces inside code span elements : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md038.md
191
191
  "MD038": true,
192
192
 
193
- // MD039/no-space-in-links : Spaces inside link text : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md039.md
193
+ // MD039/no-space-in-links : Spaces inside link text : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md039.md
194
194
  "MD039": true,
195
195
 
196
- // MD040/fenced-code-language : Fenced code blocks should have a language specified : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md040.md
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
197
197
  "MD040": {
198
198
  // List of languages
199
199
  "allowed_languages": [],
@@ -201,7 +201,7 @@
201
201
  "language_only": false
202
202
  },
203
203
 
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.3/doc/md041.md
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
205
205
  "MD041": {
206
206
  // Heading level
207
207
  "level": 1,
@@ -209,10 +209,10 @@
209
209
  "front_matter_title": "^\\s*title\\s*[:=]"
210
210
  },
211
211
 
212
- // MD042/no-empty-links : No empty links : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md042.md
212
+ // MD042/no-empty-links : No empty links : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md042.md
213
213
  "MD042": true,
214
214
 
215
- // MD043/required-headings : Required heading structure : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md043.md
215
+ // MD043/required-headings : Required heading structure : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md043.md
216
216
  "MD043": {
217
217
  // List of headings
218
218
  "headings": [],
@@ -220,7 +220,7 @@
220
220
  "match_case": false
221
221
  },
222
222
 
223
- // MD044/proper-names : Proper names should have the correct capitalization : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md044.md
223
+ // MD044/proper-names : Proper names should have the correct capitalization : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md044.md
224
224
  "MD044": {
225
225
  // List of proper names
226
226
  "names": [],
@@ -230,49 +230,49 @@
230
230
  "html_elements": true
231
231
  },
232
232
 
233
- // MD045/no-alt-text : Images should have alternate text (alt text) : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md045.md
233
+ // MD045/no-alt-text : Images should have alternate text (alt text) : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md045.md
234
234
  "MD045": true,
235
235
 
236
- // MD046/code-block-style : Code block style : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md046.md
236
+ // MD046/code-block-style : Code block style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md046.md
237
237
  "MD046": {
238
238
  // Block style
239
239
  "style": "consistent"
240
240
  },
241
241
 
242
- // MD047/single-trailing-newline : Files should end with a single newline character : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md047.md
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
243
243
  "MD047": true,
244
244
 
245
- // MD048/code-fence-style : Code fence style : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md048.md
245
+ // MD048/code-fence-style : Code fence style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md048.md
246
246
  "MD048": {
247
247
  // Code fence style
248
248
  "style": "consistent"
249
249
  },
250
250
 
251
- // MD049/emphasis-style : Emphasis style : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md049.md
251
+ // MD049/emphasis-style : Emphasis style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md049.md
252
252
  "MD049": {
253
253
  // Emphasis style
254
254
  "style": "consistent"
255
255
  },
256
256
 
257
- // MD050/strong-style : Strong style : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md050.md
257
+ // MD050/strong-style : Strong style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md050.md
258
258
  "MD050": {
259
259
  // Strong style
260
260
  "style": "consistent"
261
261
  },
262
262
 
263
- // MD051/link-fragments : Link fragments should be valid : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md051.md
263
+ // MD051/link-fragments : Link fragments should be valid : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md051.md
264
264
  "MD051": {
265
265
  // Ignore case of fragments
266
266
  "ignore_case": false
267
267
  },
268
268
 
269
- // MD052/reference-links-images : Reference links and images should use a label that is defined : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md052.md
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
270
270
  "MD052": {
271
271
  // Include shortcut syntax
272
272
  "shortcut_syntax": false
273
273
  },
274
274
 
275
- // MD053/link-image-reference-definitions : Link and image reference definitions should be needed : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md053.md
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
276
276
  "MD053": {
277
277
  // Ignored definitions
278
278
  "ignored_definitions": [
@@ -280,7 +280,7 @@
280
280
  ]
281
281
  },
282
282
 
283
- // MD054/link-image-style : Link and image style : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md054.md
283
+ // MD054/link-image-style : Link and image style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md054.md
284
284
  "MD054": {
285
285
  // Allow autolinks
286
286
  "autolink": true,
@@ -296,15 +296,15 @@
296
296
  "url_inline": true
297
297
  },
298
298
 
299
- // MD055/table-pipe-style : Table pipe style : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md055.md
299
+ // MD055/table-pipe-style : Table pipe style : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md055.md
300
300
  "MD055": {
301
301
  // Table pipe style
302
302
  "style": "consistent"
303
303
  },
304
304
 
305
- // MD056/table-column-count : Table column count : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md056.md
305
+ // MD056/table-column-count : Table column count : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md056.md
306
306
  "MD056": true,
307
307
 
308
- // MD058/blanks-around-tables : Tables should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.37.3/doc/md058.md
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
309
  "MD058": true
310
310
  }