diff --git a/doc-build/md059.md b/doc-build/md059.md index 90caf326..cbdd5d49 100644 --- a/doc-build/md059.md +++ b/doc-build/md059.md @@ -1,16 +1,19 @@ -This rule is triggered when a link is set with generic text like -"Click here", "here", or "learn more", giving it a generic accessible name. +This rule is triggered when a link has generic text like `[click here](...)` or +`[link](...)`. -Rationale: Screen reader users may navigate through a list of links -to quickly find content on a page. When the link name is something ambiguous -like "Learn more", there isn't sufficient context to help the user determine -whether to follow the link. +Link text should be descriptive and communicate the purpose of the link (e.g., +`[Download the budget document](...)` or `[CommonMark Specification](...)`). +This is especially important for screen readers which sometimes present links +without context. -Link names should be descriptive and describe the purpose of the link, like: -`[Download the budget document]`, `[About markdownlint]`,`[View registration]`, -etc. +By default, this rule prohibits a small number of common English words/phrases. +To customize that list of words/phrases, set the `prohibited_texts` parameter to +an `Array` of `string`s. -To override the default list and configure your own list of banned accessible -names, set `link_texts` in the config. +Note: For languages other than English, use the `prohibited_texts` parameter to +customize the list for that language. It is *not* a goal for this rule to have +translations for every language. -Note: This rule checks Markdown-style links and ignores HTML-style links. +Note: This rule checks Markdown links; HTML links are ignored. + +More information: diff --git a/doc/Rules.md b/doc/Rules.md index 8d7c5b32..bfc64bd5 100644 --- a/doc/Rules.md +++ b/doc/Rules.md @@ -2548,24 +2548,28 @@ Aliases: `descriptive-link-text` Parameters: -- `link_texts`: List of restricted link texts (`string[]`, default `[]`) +- `prohibited_texts`: Prohibited link texts (`string[]`, default `["click + here","here","link","more"]`) -This rule is triggered when a link is set with generic text like -"Click here", "here", or "learn more", giving it a generic accessible name. +This rule is triggered when a link has generic text like `[click here](...)` or +`[link](...)`. -Rationale: Screen reader users may navigate through a list of links -to quickly find content on a page. When the link name is something ambiguous -like "Learn more", there isn't sufficient context to help the user determine -whether to follow the link. +Link text should be descriptive and communicate the purpose of the link (e.g., +`[Download the budget document](...)` or `[CommonMark Specification](...)`). +This is especially important for screen readers which sometimes present links +without context. -Link names should be descriptive and describe the purpose of the link, like: -`[Download the budget document]`, `[About markdownlint]`,`[View registration]`, -etc. +By default, this rule prohibits a small number of common English words/phrases. +To customize that list of words/phrases, set the `prohibited_texts` parameter to +an `Array` of `string`s. -To override the default list and configure your own list of banned accessible -names, set `link_texts` in the config. +Note: For languages other than English, use the `prohibited_texts` parameter to +customize the list for that language. It is *not* a goal for this rule to have +translations for every language. -Note: This rule checks Markdown-style links and ignores HTML-style links. +Note: This rule checks Markdown links; HTML links are ignored. + +More information: diff --git a/test/descriptive-link-text-override.md b/test/descriptive-link-text-override.md index 0fc80a1c..f4e4a270 100644 --- a/test/descriptive-link-text-override.md +++ b/test/descriptive-link-text-override.md @@ -1,4 +1,4 @@ -# Descriptive link text override +# Descriptive Link Text Override [Go here](https://example.com/javascript/about) {MD059} @@ -18,6 +18,6 @@ If you need additional guidance, read [this](https://example.com/links). {MD059} diff --git a/test/descriptive-link-text.md b/test/descriptive-link-text.md index 4701f1f3..9230eb55 100644 --- a/test/descriptive-link-text.md +++ b/test/descriptive-link-text.md @@ -1,4 +1,4 @@ -# Descriptive link text +# Descriptive Link Text [Learn about Javascript](https://example.com/javascript/about) @@ -8,11 +8,11 @@ Learn about [our mission](https://example.com/mission). Go [here](https://example.com/descriptive-links) {MD059} -[Learn more](https://example.com/images/about) about us. {MD059} +[Learn more](https://example.com/images/about) about us. [Click here](https://example.com/dir/file.txt). {MD059} -[read more](https://example.com/guide). {MD059} +[Read more](https://example.com/guide). To get more support, go [here!](https://example.com/contact). {MD059} @@ -22,7 +22,7 @@ To learn more, [click here!!!!](https://example.com/about). {MD059} [click-here!!!!](https://example.com/first). {MD059} -Go to this [link]((https://example.com/second)). {MD059} +Go to this [link](https://example.com/second). {MD059} [link][Example URL] {MD059} @@ -30,3 +30,10 @@ Go to this [link]((https://example.com/second)). {MD059} {MD059} [click here](https://example.com) + +[link](destination) {MD059} +[*link*](destination) {MD059} +[_link_](destination) {MD049} {MD059} +[~~link~~](destination) {MD059} +[`link`](destination) +[](destination) {MD033} diff --git a/test/markdownlint-test.mjs b/test/markdownlint-test.mjs index ce09798c..2d9f09e7 100644 --- a/test/markdownlint-test.mjs +++ b/test/markdownlint-test.mjs @@ -907,7 +907,7 @@ test("readme", async(t) => { }); test("validateJsonUsingConfigSchemaStrict", async(t) => { - t.plan(187); + t.plan(186); // @ts-ignore const ajv = new Ajv(ajvOptions); const validateSchemaStrict = ajv.compile(configSchemaStrict); diff --git a/test/snapshots/markdownlint-test-repos-mdn-content.mjs.md b/test/snapshots/markdownlint-test-repos-mdn-content.mjs.md index 464ab3f1..7df0a50e 100644 --- a/test/snapshots/markdownlint-test-repos-mdn-content.mjs.md +++ b/test/snapshots/markdownlint-test-repos-mdn-content.mjs.md @@ -8,12 +8,10 @@ Generated by [AVA](https://avajs.dev). > Expected linting violations - `test-repos/mdn-content/files/en-us/glossary/media_query/index.md: 11: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`\`]"]␊ - test-repos/mdn-content/files/en-us/learn_web_development/core/css_layout/fundamental_layout_comprehension/index.md: 15: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + `test-repos/mdn-content/files/en-us/learn_web_development/core/css_layout/fundamental_layout_comprehension/index.md: 15: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/mdn-content/files/en-us/learn_web_development/core/scripting/functions/index.md: 90: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/mdn-content/files/en-us/learn_web_development/core/structuring_content/creating_links/index.md: 255: MD059/descriptive-link-text Link text should be descriptive [Context: "[Click here]"]␊ test-repos/mdn-content/files/en-us/learn_web_development/core/styling_basics/box_model/index.md: 293: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ - test-repos/mdn-content/files/en-us/learn_web_development/extensions/performance/css/index.md: 174: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`\`]"]␊ test-repos/mdn-content/files/en-us/learn_web_development/extensions/performance/multimedia/index.md: 105: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/mdn-content/files/en-us/learn_web_development/extensions/server-side/django/development_environment/index.md: 225: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/mdn-content/files/en-us/learn_web_development/extensions/server-side/django/development_environment/index.md: 464: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ @@ -33,38 +31,17 @@ Generated by [AVA](https://avajs.dev). test-repos/mdn-content/files/en-us/mozilla/firefox/releases/29/index.md: 29: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/mdn-content/files/en-us/mozilla/firefox/releases/3/updating_extensions/index.md: 162: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/mdn-content/files/en-us/mozilla/firefox/releases/44/index.md: 218: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ - test-repos/mdn-content/files/en-us/web/accessibility/aria/aria_techniques/index.md: 18: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`link\`]"]␊ - test-repos/mdn-content/files/en-us/web/accessibility/aria/attributes/aria-disabled/index.md: 115: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`link\`]"]␊ - test-repos/mdn-content/files/en-us/web/accessibility/aria/attributes/aria-expanded/index.md: 99: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`link\`]"]␊ - test-repos/mdn-content/files/en-us/web/accessibility/aria/attributes/aria-haspopup/index.md: 65: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`link\`]"]␊ - test-repos/mdn-content/files/en-us/web/accessibility/aria/roles/command_role/index.md: 17: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`link\`]"]␊ test-repos/mdn-content/files/en-us/web/accessibility/aria/roles/index.md: 88: MD059/descriptive-link-text Link text should be descriptive [Context: "[link]"]␊ test-repos/mdn-content/files/en-us/web/api/background_fetch_api/index.md: 89: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/mdn-content/files/en-us/web/api/filesystem/index.md: 12: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/mdn-content/files/en-us/web/api/html_drag_and_drop_api/index.md: 243: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ - test-repos/mdn-content/files/en-us/web/api/htmlanchorelement/index.md: 10: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`\`]"]␊ - test-repos/mdn-content/files/en-us/web/api/htmllinkelement/as/index.md: 17: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`\`]"]␊ - test-repos/mdn-content/files/en-us/web/api/htmllinkelement/index.md: 10: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`\`]"]␊ test-repos/mdn-content/files/en-us/web/api/media_source_extensions_api/transcoding_assets_for_mse/index.md: 28: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ - test-repos/mdn-content/files/en-us/web/api/stylesheet/ownernode/index.md: 16: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`\`]"]␊ - test-repos/mdn-content/files/en-us/web/api/svgaelement/target/index.md: 19: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/mdn-content/files/en-us/web/api/webglrenderingcontext/getextension/index.md: 46: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/mdn-content/files/en-us/web/api/webglrenderingcontext/getsupportedextensions/index.md: 44: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ - test-repos/mdn-content/files/en-us/web/css/_colon_any-link/index.md: 66: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`:link\`]"]␊ - test-repos/mdn-content/files/en-us/web/css/_colon_visited/index.md: 14: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`:link\`]"]␊ - test-repos/mdn-content/files/en-us/web/css/_colon_visited/index.md: 24: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`\`]"]␊ - test-repos/mdn-content/files/en-us/web/css/css_media_queries/index.md: 131: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`\`]"]␊ - test-repos/mdn-content/files/en-us/web/css/css_media_queries/index.md: 132: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`\`]"]␊ test-repos/mdn-content/files/en-us/web/css/justify-items/index.md: 18: MD059/descriptive-link-text Link text should be descriptive [Context: "[more]"]␊ test-repos/mdn-content/files/en-us/web/css/justify-items/index.md: 19: MD059/descriptive-link-text Link text should be descriptive [Context: "[more]"]␊ test-repos/mdn-content/files/en-us/web/css/justify-items/index.md: 20: MD059/descriptive-link-text Link text should be descriptive [Context: "[more]"]␊ test-repos/mdn-content/files/en-us/web/html/attributes/rel/preconnect/index.md: 22: MD059/descriptive-link-text Link text should be descriptive [Context: "[Link]"]␊ - test-repos/mdn-content/files/en-us/web/html/attributes/rel/preload/index.md: 105: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`\`]"]␊ - test-repos/mdn-content/files/en-us/web/http/headers/sec-purpose/index.md: 15: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`\`]"]␊ - test-repos/mdn-content/files/en-us/web/http/headers/sec-purpose/index.md: 16: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`\`]"]␊ - test-repos/mdn-content/files/en-us/web/http/headers/sec-purpose/index.md: 54: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`\`]"]␊ - test-repos/mdn-content/files/en-us/web/http/headers/sec-purpose/index.md: 92: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`\`]"]␊ - test-repos/mdn-content/files/en-us/web/javascript/guide/modules/index.md: 407: MD059/descriptive-link-text Link text should be descriptive [Context: "[\`\`]"]␊ test-repos/mdn-content/files/en-us/web/performance/dns-prefetch/index.md: 74: MD059/descriptive-link-text Link text should be descriptive [Context: "[\\]"]␊ test-repos/mdn-content/files/en-us/web/performance/speculative_loading/index.md: 50: MD059/descriptive-link-text Link text should be descriptive [Context: "[Link]"]␊ test-repos/mdn-content/files/en-us/web/performance/speculative_loading/index.md: 90: MD059/descriptive-link-text Link text should be descriptive [Context: "[Link]"]␊ diff --git a/test/snapshots/markdownlint-test-repos-mdn-content.mjs.snap b/test/snapshots/markdownlint-test-repos-mdn-content.mjs.snap index 2e8b4c69..2b9cc131 100644 Binary files a/test/snapshots/markdownlint-test-repos-mdn-content.mjs.snap and b/test/snapshots/markdownlint-test-repos-mdn-content.mjs.snap differ diff --git a/test/snapshots/markdownlint-test-scenarios.mjs.md b/test/snapshots/markdownlint-test-scenarios.mjs.md index 66f4b900..33c692a5 100644 --- a/test/snapshots/markdownlint-test-scenarios.mjs.md +++ b/test/snapshots/markdownlint-test-scenarios.mjs.md @@ -10901,39 +10901,17 @@ Generated by [AVA](https://avajs.dev). { errors: [], - fixed: `# Descriptive link text empty config␊ - ␊ - [Learn about Javascript](https://example.com/javascript/about)␊ - ␊ - [About Javascript](https://example.com/file.txt)␊ - ␊ - Learn about [our mission](https://example.com/mission).␊ - ␊ - Go [here](https://example.com/descriptive-links)␊ + fixed: `# Descriptive Link Text Empty Config␊ ␊ [Learn more](https://example.com/images/about) about us.␊ ␊ [Click here](https://example.com/dir/file.txt).␊ ␊ - [read more](https://example.com/guide).␊ - ␊ - To get more support, go [here!](https://example.com/contact).␊ - ␊ - Learn [more.](https://example.com/contact).␊ - ␊ - To learn about our company, [click here!!!!](https://example.com/about).␊ - ␊ - [click-here!!!!](https://example.com/first).␊ - ␊ - Go to this [link]((https://example.com/second)).␊ - ␊ - [link][url]␊ - ␊ - [url]: https://example.com␊ + Go to this [link](https://example.com/second).␊ ␊ ␊ `, @@ -10950,7 +10928,7 @@ Generated by [AVA](https://avajs.dev). errorDetail: null, errorRange: [ 2, - 9, + 7, ], fixInfo: null, lineNumber: 3, @@ -10966,7 +10944,7 @@ Generated by [AVA](https://avajs.dev). errorDetail: null, errorRange: [ 40, - 6, + 4, ], fixInfo: null, lineNumber: 13, @@ -10978,7 +10956,7 @@ Generated by [AVA](https://avajs.dev). ], }, ], - fixed: `# Descriptive link text override␊ + fixed: `# Descriptive Link Text Override␊ ␊ [Go here](https://example.com/javascript/about) {MD059}␊ ␊ @@ -10998,7 +10976,7 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ `, @@ -11010,12 +10988,68 @@ Generated by [AVA](https://avajs.dev). { errors: [ + { + errorContext: null, + errorDetail: 'Element: link', + errorRange: [ + 2, + 6, + ], + fixInfo: null, + lineNumber: 39, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 2, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 2, + insertText: '*', + }, + lineNumber: 36, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + ruleNames: [ + 'MD049', + 'emphasis-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 7, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 7, + insertText: '*', + }, + lineNumber: 36, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + ruleNames: [ + 'MD049', + 'emphasis-style', + ], + }, { errorContext: '[here]', errorDetail: null, errorRange: [ 5, - 6, + 4, ], fixInfo: null, lineNumber: 9, @@ -11026,28 +11060,12 @@ Generated by [AVA](https://avajs.dev). 'descriptive-link-text', ], }, - { - errorContext: '[Learn more]', - errorDetail: null, - errorRange: [ - 2, - 12, - ], - fixInfo: null, - lineNumber: 11, - ruleDescription: 'Link text should be descriptive', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md', - ruleNames: [ - 'MD059', - 'descriptive-link-text', - ], - }, { errorContext: '[Click here]', errorDetail: null, errorRange: [ 2, - 12, + 10, ], fixInfo: null, lineNumber: 13, @@ -11058,28 +11076,12 @@ Generated by [AVA](https://avajs.dev). 'descriptive-link-text', ], }, - { - errorContext: '[read more]', - errorDetail: null, - errorRange: [ - 2, - 11, - ], - fixInfo: null, - lineNumber: 15, - ruleDescription: 'Link text should be descriptive', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md', - ruleNames: [ - 'MD059', - 'descriptive-link-text', - ], - }, { errorContext: '[here!]', errorDetail: null, errorRange: [ 26, - 7, + 5, ], fixInfo: null, lineNumber: 17, @@ -11095,7 +11097,7 @@ Generated by [AVA](https://avajs.dev). errorDetail: null, errorRange: [ 8, - 6, + 4, ], fixInfo: null, lineNumber: 19, @@ -11111,7 +11113,7 @@ Generated by [AVA](https://avajs.dev). errorDetail: null, errorRange: [ 17, - 16, + 14, ], fixInfo: null, lineNumber: 21, @@ -11127,7 +11129,7 @@ Generated by [AVA](https://avajs.dev). errorDetail: null, errorRange: [ 2, - 16, + 14, ], fixInfo: null, lineNumber: 23, @@ -11143,7 +11145,7 @@ Generated by [AVA](https://avajs.dev). errorDetail: null, errorRange: [ 13, - 6, + 4, ], fixInfo: null, lineNumber: 25, @@ -11159,7 +11161,7 @@ Generated by [AVA](https://avajs.dev). errorDetail: null, errorRange: [ 2, - 6, + 4, ], fixInfo: null, lineNumber: 27, @@ -11184,8 +11186,72 @@ Generated by [AVA](https://avajs.dev). 'descriptive-link-text', ], }, + { + errorContext: '[link]', + errorDetail: null, + errorRange: [ + 2, + 4, + ], + fixInfo: null, + lineNumber: 34, + ruleDescription: 'Link text should be descriptive', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md', + ruleNames: [ + 'MD059', + 'descriptive-link-text', + ], + }, + { + errorContext: '[*link*]', + errorDetail: null, + errorRange: [ + 2, + 6, + ], + fixInfo: null, + lineNumber: 35, + ruleDescription: 'Link text should be descriptive', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md', + ruleNames: [ + 'MD059', + 'descriptive-link-text', + ], + }, + { + errorContext: '[_link_]', + errorDetail: null, + errorRange: [ + 2, + 6, + ], + fixInfo: null, + lineNumber: 36, + ruleDescription: 'Link text should be descriptive', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md', + ruleNames: [ + 'MD059', + 'descriptive-link-text', + ], + }, + { + errorContext: '[~~link~~]', + errorDetail: null, + errorRange: [ + 2, + 8, + ], + fixInfo: null, + lineNumber: 37, + ruleDescription: 'Link text should be descriptive', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md', + ruleNames: [ + 'MD059', + 'descriptive-link-text', + ], + }, ], - fixed: `# Descriptive link text␊ + fixed: `# Descriptive Link Text␊ ␊ [Learn about Javascript](https://example.com/javascript/about)␊ ␊ @@ -11195,11 +11261,11 @@ Generated by [AVA](https://avajs.dev). ␊ Go [here](https://example.com/descriptive-links) {MD059}␊ ␊ - [Learn more](https://example.com/images/about) about us. {MD059}␊ + [Learn more](https://example.com/images/about) about us.␊ ␊ [Click here](https://example.com/dir/file.txt). {MD059}␊ ␊ - [read more](https://example.com/guide). {MD059}␊ + [Read more](https://example.com/guide).␊ ␊ To get more support, go [here!](https://example.com/contact). {MD059}␊ ␊ @@ -11209,7 +11275,7 @@ Generated by [AVA](https://avajs.dev). ␊ [click-here!!!!](https://example.com/first). {MD059}␊ ␊ - Go to this [link]((https://example.com/second)). {MD059}␊ + Go to this [link](https://example.com/second). {MD059}␊ ␊ [link][Example URL] {MD059}␊ ␊ @@ -11217,6 +11283,13 @@ Generated by [AVA](https://avajs.dev). ␊ {MD059} [click␊ here](https://example.com)␊ + ␊ + [link](destination) {MD059}␊ + [*link*](destination) {MD059}␊ + [*link*](destination) {MD049} {MD059}␊ + [~~link~~](destination) {MD059}␊ + [\`link\`](destination)␊ + [](destination) {MD033}␊ `, } @@ -13841,7 +13914,7 @@ Generated by [AVA](https://avajs.dev). errorDetail: null, errorRange: [ 7, - 8, + 6, ], fixInfo: null, lineNumber: 8, @@ -50860,7 +50933,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 30, }, - lineNumber: 85, + lineNumber: 83, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50879,7 +50952,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 34, }, - lineNumber: 97, + lineNumber: 95, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50898,7 +50971,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 29, }, - lineNumber: 105, + lineNumber: 103, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50917,7 +50990,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 33, }, - lineNumber: 107, + lineNumber: 105, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50936,7 +51009,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 38, }, - lineNumber: 116, + lineNumber: 114, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50955,7 +51028,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 43, }, - lineNumber: 118, + lineNumber: 116, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50974,7 +51047,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 2, editColumn: 31, }, - lineNumber: 120, + lineNumber: 118, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50993,7 +51066,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 2, editColumn: 37, }, - lineNumber: 120, + lineNumber: 118, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -51012,7 +51085,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 9, }, - lineNumber: 134, + lineNumber: 132, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -51032,7 +51105,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 15, }, - lineNumber: 141, + lineNumber: 139, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -51053,7 +51126,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 4, editColumn: 1, }, - lineNumber: 155, + lineNumber: 153, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -51074,7 +51147,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 4, editColumn: 1, }, - lineNumber: 165, + lineNumber: 163, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -51090,7 +51163,7 @@ Generated by [AVA](https://avajs.dev). 18, ], fixInfo: null, - lineNumber: 83, + lineNumber: 81, ruleDescription: 'Link fragments should be valid', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ @@ -51106,7 +51179,7 @@ Generated by [AVA](https://avajs.dev). 18, ], fixInfo: null, - lineNumber: 87, + lineNumber: 85, ruleDescription: 'Link fragments should be valid', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ @@ -51122,7 +51195,7 @@ Generated by [AVA](https://avajs.dev). 23, ], fixInfo: null, - lineNumber: 89, + lineNumber: 87, ruleDescription: 'Link fragments should be valid', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ @@ -51138,7 +51211,7 @@ Generated by [AVA](https://avajs.dev). 23, ], fixInfo: null, - lineNumber: 91, + lineNumber: 89, ruleDescription: 'Link fragments should be valid', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ @@ -51154,7 +51227,7 @@ Generated by [AVA](https://avajs.dev). 23, ], fixInfo: null, - lineNumber: 93, + lineNumber: 91, ruleDescription: 'Link fragments should be valid', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ @@ -51170,7 +51243,7 @@ Generated by [AVA](https://avajs.dev). 23, ], fixInfo: null, - lineNumber: 95, + lineNumber: 93, ruleDescription: 'Link fragments should be valid', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ @@ -51251,8 +51324,6 @@ Generated by [AVA](https://avajs.dev). ␊ \`\` \` leading and trailing space allowed for backtick \` \`\` text \`code\`␊ ␊ - ␊ - ␊ Text [link](https://example.com/link\`link) text \`code\`.␊ ␊ Text [link](https://example.com/link\`\`\`link) text \`\`\`code\`\`\`.␊ @@ -51352,6 +51423,8 @@ Generated by [AVA](https://avajs.dev). Code␊ \`\`\`␊ Text␊ + ␊ + ␊ `, } @@ -51369,7 +51442,7 @@ Generated by [AVA](https://avajs.dev). 3, ], fixInfo: null, - lineNumber: 378, + lineNumber: 380, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ @@ -51385,7 +51458,7 @@ Generated by [AVA](https://avajs.dev). 3, ], fixInfo: null, - lineNumber: 380, + lineNumber: 382, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ @@ -51401,7 +51474,7 @@ Generated by [AVA](https://avajs.dev). 39, ], fixInfo: null, - lineNumber: 384, + lineNumber: 386, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ @@ -51417,7 +51490,7 @@ Generated by [AVA](https://avajs.dev). 41, ], fixInfo: null, - lineNumber: 386, + lineNumber: 388, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ @@ -51433,7 +51506,7 @@ Generated by [AVA](https://avajs.dev). 24, ], fixInfo: null, - lineNumber: 388, + lineNumber: 390, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ @@ -51452,7 +51525,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 9, }, - lineNumber: 15, + lineNumber: 17, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51471,7 +51544,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 18, }, - lineNumber: 15, + lineNumber: 17, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51490,7 +51563,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 10, }, - lineNumber: 17, + lineNumber: 19, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51509,7 +51582,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 17, }, - lineNumber: 17, + lineNumber: 19, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51528,7 +51601,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 11, }, - lineNumber: 19, + lineNumber: 21, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51547,7 +51620,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 31, }, - lineNumber: 19, + lineNumber: 21, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51566,7 +51639,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 9, }, - lineNumber: 21, + lineNumber: 23, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51585,7 +51658,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 18, }, - lineNumber: 21, + lineNumber: 23, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51604,7 +51677,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 10, }, - lineNumber: 23, + lineNumber: 25, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51623,7 +51696,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 17, }, - lineNumber: 23, + lineNumber: 25, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51642,7 +51715,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 11, }, - lineNumber: 25, + lineNumber: 27, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51661,7 +51734,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 31, }, - lineNumber: 25, + lineNumber: 27, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51680,7 +51753,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 26, }, - lineNumber: 27, + lineNumber: 29, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51699,7 +51772,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 42, }, - lineNumber: 27, + lineNumber: 29, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51718,7 +51791,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 27, }, - lineNumber: 29, + lineNumber: 31, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51737,7 +51810,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 41, }, - lineNumber: 29, + lineNumber: 31, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51756,7 +51829,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 43, }, - lineNumber: 31, + lineNumber: 33, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51775,7 +51848,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 70, }, - lineNumber: 31, + lineNumber: 33, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51794,7 +51867,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 26, }, - lineNumber: 33, + lineNumber: 35, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51813,7 +51886,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 42, }, - lineNumber: 33, + lineNumber: 35, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51832,7 +51905,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 27, }, - lineNumber: 35, + lineNumber: 37, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51851,7 +51924,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 41, }, - lineNumber: 35, + lineNumber: 37, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51870,7 +51943,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 43, }, - lineNumber: 37, + lineNumber: 39, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51889,7 +51962,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 70, }, - lineNumber: 37, + lineNumber: 39, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51908,7 +51981,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 36, }, - lineNumber: 39, + lineNumber: 41, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51927,7 +52000,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 52, }, - lineNumber: 39, + lineNumber: 41, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51946,7 +52019,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 31, }, - lineNumber: 41, + lineNumber: 43, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51965,7 +52038,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 47, }, - lineNumber: 41, + lineNumber: 43, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51984,26 +52057,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 11, }, - lineNumber: 41, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', - ruleNames: [ - 'MD037', - 'no-space-in-emphasis', - ], - }, - { - errorContext: 's *', - errorDetail: null, - errorRange: [ - 26, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 27, - }, - lineNumber: 41, + lineNumber: 43, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52030,6 +52084,25 @@ Generated by [AVA](https://avajs.dev). 'no-space-in-emphasis', ], }, + { + errorContext: 's *', + errorDetail: null, + errorRange: [ + 26, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 27, + }, + lineNumber: 45, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, { errorContext: '* b', errorDetail: null, @@ -52041,7 +52114,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 12, }, - lineNumber: 45, + lineNumber: 47, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52060,7 +52133,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 14, }, - lineNumber: 47, + lineNumber: 49, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52079,7 +52152,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 25, }, - lineNumber: 49, + lineNumber: 51, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52098,7 +52171,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 3, }, - lineNumber: 55, + lineNumber: 57, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52117,7 +52190,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 4, }, - lineNumber: 57, + lineNumber: 59, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52136,7 +52209,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 2, }, - lineNumber: 59, + lineNumber: 61, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52155,7 +52228,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 3, }, - lineNumber: 61, + lineNumber: 63, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52174,7 +52247,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 4, }, - lineNumber: 63, + lineNumber: 65, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52193,7 +52266,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 10, }, - lineNumber: 65, + lineNumber: 67, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52212,7 +52285,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 9, }, - lineNumber: 67, + lineNumber: 69, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52231,7 +52304,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 23, }, - lineNumber: 69, + lineNumber: 71, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52250,7 +52323,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 10, }, - lineNumber: 71, + lineNumber: 73, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52269,7 +52342,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 9, }, - lineNumber: 73, + lineNumber: 75, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52288,7 +52361,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 23, }, - lineNumber: 75, + lineNumber: 77, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52307,7 +52380,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 21, }, - lineNumber: 77, + lineNumber: 79, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52326,7 +52399,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 22, }, - lineNumber: 79, + lineNumber: 81, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52345,7 +52418,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 23, }, - lineNumber: 81, + lineNumber: 83, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52364,7 +52437,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 21, }, - lineNumber: 83, + lineNumber: 85, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52383,7 +52456,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 22, }, - lineNumber: 85, + lineNumber: 87, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52402,7 +52475,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 23, }, - lineNumber: 87, + lineNumber: 89, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52421,7 +52494,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 30, }, - lineNumber: 89, + lineNumber: 91, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52440,7 +52513,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 29, }, - lineNumber: 91, + lineNumber: 93, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52459,7 +52532,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 43, }, - lineNumber: 93, + lineNumber: 95, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52478,7 +52551,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 30, }, - lineNumber: 95, + lineNumber: 97, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52497,7 +52570,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 29, }, - lineNumber: 97, + lineNumber: 99, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52516,7 +52589,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 43, }, - lineNumber: 99, + lineNumber: 101, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52535,7 +52608,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 11, }, - lineNumber: 101, + lineNumber: 103, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52554,7 +52627,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 26, }, - lineNumber: 101, + lineNumber: 103, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52573,7 +52646,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 43, }, - lineNumber: 101, + lineNumber: 103, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52592,7 +52665,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 41, }, - lineNumber: 103, + lineNumber: 105, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52611,7 +52684,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 44, }, - lineNumber: 103, + lineNumber: 105, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52630,7 +52703,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 10, }, - lineNumber: 105, + lineNumber: 107, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52649,7 +52722,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 23, }, - lineNumber: 105, + lineNumber: 107, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52668,7 +52741,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 9, }, - lineNumber: 109, + lineNumber: 111, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52687,7 +52760,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 13, }, - lineNumber: 110, + lineNumber: 112, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52706,7 +52779,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 9, }, - lineNumber: 111, + lineNumber: 113, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52725,7 +52798,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 14, }, - lineNumber: 111, + lineNumber: 113, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52744,7 +52817,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 8, }, - lineNumber: 114, + lineNumber: 116, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52763,7 +52836,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 14, }, - lineNumber: 115, + lineNumber: 117, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52782,7 +52855,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 15, }, - lineNumber: 116, + lineNumber: 118, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52801,7 +52874,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 19, }, - lineNumber: 116, + lineNumber: 118, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52820,7 +52893,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 4, }, - lineNumber: 125, + lineNumber: 127, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52839,7 +52912,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 3, }, - lineNumber: 131, + lineNumber: 133, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52858,7 +52931,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 15, }, - lineNumber: 133, + lineNumber: 135, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52877,7 +52950,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 20, }, - lineNumber: 135, + lineNumber: 137, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52896,7 +52969,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 19, }, - lineNumber: 137, + lineNumber: 139, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52915,7 +52988,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 3, }, - lineNumber: 143, + lineNumber: 145, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52934,7 +53007,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 13, }, - lineNumber: 145, + lineNumber: 147, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52953,7 +53026,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 3, }, - lineNumber: 147, + lineNumber: 149, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52972,7 +53045,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 16, }, - lineNumber: 153, + lineNumber: 155, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52991,7 +53064,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 19, }, - lineNumber: 159, + lineNumber: 161, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -53010,7 +53083,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 9, }, - lineNumber: 161, + lineNumber: 163, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -53029,7 +53102,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 7, }, - lineNumber: 165, + lineNumber: 167, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -53048,7 +53121,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 11, }, - lineNumber: 167, + lineNumber: 169, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -53067,7 +53140,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 14, }, - lineNumber: 169, + lineNumber: 171, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -53086,7 +53159,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 20, }, - lineNumber: 171, + lineNumber: 173, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -53105,7 +53178,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 17, }, - lineNumber: 351, + lineNumber: 353, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -53124,7 +53197,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 21, }, - lineNumber: 352, + lineNumber: 354, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -53143,7 +53216,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 17, }, - lineNumber: 354, + lineNumber: 356, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -53162,7 +53235,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 21, }, - lineNumber: 355, + lineNumber: 357, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -53181,7 +53254,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 21, }, - lineNumber: 378, + lineNumber: 380, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -53200,7 +53273,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 26, }, - lineNumber: 378, + lineNumber: 380, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -53219,7 +53292,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 35, }, - lineNumber: 388, + lineNumber: 390, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -53238,7 +53311,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 40, }, - lineNumber: 388, + lineNumber: 390, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -53249,6 +53322,8 @@ Generated by [AVA](https://avajs.dev). ], fixed: `# Heading␊ ␊ + ␊ + ␊ Line with *Normal emphasis*␊ ␊ Line with **Normal strong**␊ @@ -53638,12 +53713,6 @@ Generated by [AVA](https://avajs.dev). ␊ Embedded underscore is okay:␊ Text _emphas_i_s_ text _emphasis_␊ - ␊ - ␊ `, } @@ -56294,7 +56363,7 @@ Generated by [AVA](https://avajs.dev). errorDetail: null, errorRange: [ 4, - 7, + 5, ], fixInfo: null, lineNumber: 12, @@ -56310,7 +56379,7 @@ Generated by [AVA](https://avajs.dev). errorDetail: null, errorRange: [ 4, - 6, + 4, ], fixInfo: null, lineNumber: 13, @@ -59217,8 +59286,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ `, } diff --git a/test/snapshots/markdownlint-test-scenarios.mjs.snap b/test/snapshots/markdownlint-test-scenarios.mjs.snap index 6ebc182a..48e9d51f 100644 Binary files a/test/snapshots/markdownlint-test-scenarios.mjs.snap and b/test/snapshots/markdownlint-test-scenarios.mjs.snap differ diff --git a/test/spaces_inside_codespan_elements.md b/test/spaces_inside_codespan_elements.md index ff6d2bc5..53830f37 100644 --- a/test/spaces_inside_codespan_elements.md +++ b/test/spaces_inside_codespan_elements.md @@ -70,8 +70,6 @@ text and ``\`code with ignored escaped \` backticks`` `` ` leading and trailing space allowed for backtick ` `` text `code` - - Text [link](https://example.com/link`link) text `code`. Text [link](https://example.com/link```link) text ```code```. @@ -171,3 +169,5 @@ Text Code ``` Text + + diff --git a/test/spaces_inside_emphasis_markers.md b/test/spaces_inside_emphasis_markers.md index f0b77194..c93471d4 100644 --- a/test/spaces_inside_emphasis_markers.md +++ b/test/spaces_inside_emphasis_markers.md @@ -1,5 +1,7 @@ # Heading + + Line with *Normal emphasis* Line with **Normal strong** @@ -389,9 +391,3 @@ Emphasis

* HTML *

{MD033} {MD037} Embedded underscore is okay: Text _emphas_i_s_ text _emphasis_ - - diff --git a/test/token-map-spans.md b/test/token-map-spans.md index cfbbb262..4de60ab3 100644 --- a/test/token-map-spans.md +++ b/test/token-map-spans.md @@ -38,6 +38,6 @@ code