diff --git a/README.md b/README.md index 265dd96e..aaac5498 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,7 @@ playground for learning and exploring. - **[MD055](doc/md055.md)** *table-pipe-style* - Table pipe style - **[MD056](doc/md056.md)** *table-column-count* - Table column count - **[MD058](doc/md058.md)** *blanks-around-tables* - Tables should be surrounded by blank lines +- **[MD059](doc/md059.md)** *descriptive-link-text* - Link text should be descriptive @@ -165,7 +166,7 @@ To implement your own rules, refer to [CustomRules.md](doc/CustomRules.md). Tags group related rules and can be used to enable/disable multiple rules at once. -- **`accessibility`** - `MD045` +- **`accessibility`** - `MD045`, `MD059` - **`atx`** - `MD018`, `MD019` - **`atx_closed`** - `MD020`, `MD021` - **`blank_lines`** - `MD012`, `MD022`, `MD031`, `MD032`, `MD047` @@ -183,7 +184,7 @@ rules at once. - **`language`** - `MD040` - **`line_length`** - `MD013` - **`links`** - `MD011`, `MD034`, `MD039`, `MD042`, `MD051`, `MD052`, `MD053`, - `MD054` + `MD054`, `MD059` - **`ol`** - `MD029`, `MD030`, `MD032` - **`spaces`** - `MD018`, `MD019`, `MD020`, `MD021`, `MD023` - **`spelling`** - `MD044` diff --git a/doc-build/md059.md b/doc-build/md059.md new file mode 100644 index 00000000..90caf326 --- /dev/null +++ b/doc-build/md059.md @@ -0,0 +1,16 @@ +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. + +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 names should be descriptive and describe the purpose of the link, like: +`[Download the budget document]`, `[About markdownlint]`,`[View registration]`, +etc. + +To override the default list and configure your own list of banned accessible +names, set `link_texts` in the config. + +Note: This rule checks Markdown-style links and ignores HTML-style links. diff --git a/doc/Rules.md b/doc/Rules.md index 72c19878..8d7c5b32 100644 --- a/doc/Rules.md +++ b/doc/Rules.md @@ -2538,6 +2538,35 @@ Some text Rationale: In addition to aesthetic reasons, some parsers will incorrectly parse tables that don't have blank lines before and after them. + + +## `MD059` - Link text should be descriptive + +Tags: `accessibility`, `links` + +Aliases: `descriptive-link-text` + +Parameters: + +- `link_texts`: List of restricted link texts (`string[]`, default `[]`) + +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. + +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 names should be descriptive and describe the purpose of the link, like: +`[Download the budget document]`, `[About markdownlint]`,`[View registration]`, +etc. + +To override the default list and configure your own list of banned accessible +names, set `link_texts` in the config. + +Note: This rule checks Markdown-style links and ignores HTML-style links. + + Some documents use to link. diff --git a/test/descriptive-link-text-empty-config.md b/test/descriptive-link-text-empty-config.md new file mode 100644 index 00000000..2cfebd01 --- /dev/null +++ b/test/descriptive-link-text-empty-config.md @@ -0,0 +1,35 @@ +# 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) + +[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 + + diff --git a/test/descriptive-link-text-override.md b/test/descriptive-link-text-override.md new file mode 100644 index 00000000..0fc80a1c --- /dev/null +++ b/test/descriptive-link-text-override.md @@ -0,0 +1,23 @@ +# Descriptive link text override + +[Go here](https://example.com/javascript/about) {MD059} + +[Learn more](https://example.com/javascript/about). + +[Click here](https://example.com/javascript/about). + +To learn more, go [here!](https://example.com/site). + +To learn more, go to this [link!](https://example.com/links). + +If you need additional guidance, read [this](https://example.com/links). {MD059} + +[link][url] + +[url]: https://example.com + + diff --git a/test/descriptive-link-text.md b/test/descriptive-link-text.md new file mode 100644 index 00000000..4701f1f3 --- /dev/null +++ b/test/descriptive-link-text.md @@ -0,0 +1,32 @@ +# Descriptive link text + +[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) {MD059} + +[Learn more](https://example.com/images/about) about us. {MD059} + +[Click here](https://example.com/dir/file.txt). {MD059} + +[read more](https://example.com/guide). {MD059} + +To get more support, go [here!](https://example.com/contact). {MD059} + +Learn [more](https://example.com/contact). {MD059} + +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} + +[link][Example URL] {MD059} + +[Example URL]: https://example.com + +{MD059} [click +here](https://example.com) diff --git a/test/fixing-with-front-matter.md b/test/fixing-with-front-matter.md index 231f1b4e..25e43972 100644 --- a/test/fixing-with-front-matter.md +++ b/test/fixing-with-front-matter.md @@ -5,7 +5,7 @@ ignore: this # Fixing with Front Matter {MD022} Text text text {MD009} -Text [ link ](url) text {MD039} +Text [ link ](url) text {MD039} {MD059} ## Nested Heading {MD022} Text {MD047} \ No newline at end of file diff --git a/test/link-style-no-url-inline-not-possible.md b/test/link-style-no-url-inline-not-possible.md index d5309360..75d771f5 100644 --- a/test/link-style-no-url-inline-not-possible.md +++ b/test/link-style-no-url-inline-not-possible.md @@ -60,6 +60,7 @@ Text [email] text [email]: user@example.com diff --git a/test/long-lines-long-reference-definitions-stern.md b/test/long-lines-long-reference-definitions-stern.md index b2b2879c..c12843d7 100644 --- a/test/long-lines-long-reference-definitions-stern.md +++ b/test/long-lines-long-reference-definitions-stern.md @@ -17,6 +17,7 @@ [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long diff --git a/test/long-lines-long-reference-definitions.md b/test/long-lines-long-reference-definitions.md index 505b8cb9..d0d99988 100644 --- a/test/long-lines-long-reference-definitions.md +++ b/test/long-lines-long-reference-definitions.md @@ -15,3 +15,5 @@ [long-reference-definition-image]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/image [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long + + \ No newline at end of file diff --git a/test/markdown-in-html.md b/test/markdown-in-html.md index 4f3591d6..ad8f9ad0 100644 --- a/test/markdown-in-html.md +++ b/test/markdown-in-html.md @@ -34,4 +34,4 @@ Text

- + diff --git a/test/markdownlint-test.mjs b/test/markdownlint-test.mjs index 48c9ad78..ce09798c 100644 --- a/test/markdownlint-test.mjs +++ b/test/markdownlint-test.mjs @@ -832,7 +832,7 @@ test("customFileSystemAsync", (t) => new Promise((resolve) => { })); test("readme", async(t) => { - t.plan(128); + t.plan(130); const tagToRules = {}; for (const rule of rules) { for (const tag of rule.tags) { @@ -907,7 +907,7 @@ test("readme", async(t) => { }); test("validateJsonUsingConfigSchemaStrict", async(t) => { - t.plan(182); + t.plan(187); // @ts-ignore const ajv = new Ajv(ajvOptions); const validateSchemaStrict = ajv.compile(configSchemaStrict); @@ -1029,7 +1029,7 @@ test("validateConfigExampleJson", (t) => { }); test("allBuiltInRulesHaveValidUrl", (t) => { - t.plan(153); + t.plan(156); for (const rule of rules) { // @ts-ignore t.truthy(rule.information); diff --git a/test/reversed_link.md b/test/reversed_link.md index 495ba941..dedd34b6 100644 --- a/test/reversed_link.md +++ b/test/reversed_link.md @@ -87,5 +87,6 @@ Text (text()[text] text diff --git a/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.md b/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.md index 98553d4b..5f0cc508 100644 --- a/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.md +++ b/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.md @@ -16,4 +16,33 @@ Generated by [AVA](https://avajs.dev). test-repos/dotnet-docs/SECURITY.md: 25: MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊ test-repos/dotnet-docs/SECURITY.md: 26: MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊ test-repos/dotnet-docs/SECURITY.md: 27: MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊ - test-repos/dotnet-docs/SECURITY.md: 17: MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]` + test-repos/dotnet-docs/SECURITY.md: 17: MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + test-repos/dotnet-docs/docs/architecture/blazor-for-web-forms-developers/security-authentication-authorization.md: 258: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/architecture/cloud-native/deploy-eshoponcontainers-azure.md: 60: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/core/diagnostics/built-in-metrics-aspnetcore.md: 12: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/core/testing/unit-testing-code-coverage.md: 274: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/core/testing/unit-testing-platform-architecture-extensions.md: 501: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/csharp/delegate-class.md: 41: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/csharp/whats-new/breaking-changes.md: 10: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/framework/windows-workflow-foundation/samples/sql-tracking.md: 42: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/fsharp/language-reference/computation-expressions.md: 277: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/fundamentals/code-analysis/quality-rules/ca1066.md: 28: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/fundamentals/code-analysis/quality-rules/ca1067.md: 28: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/fundamentals/networking/http/httpclient-migrate-from-httpwebrequest.md: 340: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/fundamentals/networking/http/httpclient-migrate-from-httpwebrequest.md: 580: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/orleans/deployment/consul-deployment.md: 11: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/orleans/streaming/index.md: 107: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/orleans/streaming/streams-programming-apis.md: 14: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/orleans/streaming/streams-programming-apis.md: 321: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/orleans/streaming/streams-why.md: 68: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/orleans/tutorials-and-samples/overview-helloworld.md: 17: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/docs/standard/native-interop/tutorial-comwrappers.md: 251: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/includes/core-changes/aspnetcore/3.0/authn-apis-json-types.md: 16: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/includes/core-changes/aspnetcore/3.0/authn-google-plus-authn-changes.md: 19: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/includes/core-changes/aspnetcore/3.0/kestrel-connection-adapters-removed.md: 25: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/includes/migration-guide/retargeting/networking/only-tls-10-11-12-protocols-supported-systemnetservicepointmanager.md: 11: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/includes/migration-guide/retargeting/security/cspparametersparentwindowhandle-now-expects-hwnd-value.md: 23: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/includes/migration-guide/retargeting/wf/workflow-30-types-are-obsolete.md: 9: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/includes/migration-guide/retargeting/wf/workflow-30-types-are-obsolete.md: 9: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/includes/migration-guide/runtime/runtime/improved-wcf-chain-trust-certificate-validation-for-nettcp-authentication.md: 5: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/dotnet-docs/samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithHostFxr/readme.md: 3: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]` diff --git a/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.snap b/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.snap index d9a53054..4cb8ad40 100644 Binary files a/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.snap and b/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.snap differ diff --git a/test/snapshots/markdownlint-test-repos-mdn-content.mjs.md b/test/snapshots/markdownlint-test-repos-mdn-content.mjs.md index ce511ed6..464ab3f1 100644 --- a/test/snapshots/markdownlint-test-repos-mdn-content.mjs.md +++ b/test/snapshots/markdownlint-test-repos-mdn-content.mjs.md @@ -8,4 +8,67 @@ 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/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]"]␊ + test-repos/mdn-content/files/en-us/learn_web_development/extensions/server-side/django/models/index.md: 491: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/mdn-content/files/en-us/learn_web_development/extensions/server-side/express_nodejs/deployment/index.md: 379: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/mdn-content/files/en-us/learn_web_development/howto/tools_and_setup/how_much_does_it_cost/index.md: 81: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/mdn-content/files/en-us/learn_web_development/howto/tools_and_setup/how_much_does_it_cost/index.md: 81: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/mdn-content/files/en-us/learn_web_development/howto/web_mechanics/what_is_a_domain_name/index.md: 175: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/mdn-content/files/en-us/mdn/writing_guidelines/howto/document_an_http_header/index.md: 21: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/mdn-content/files/en-us/mdn/writing_guidelines/howto/json_structured_data/index.md: 90: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/mdn-content/files/en-us/mdn/writing_guidelines/howto/json_structured_data/index.md: 123: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/mdn-content/files/en-us/mdn/writing_guidelines/howto/json_structured_data/index.md: 132: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/mdn-content/files/en-us/mdn/writing_guidelines/writing_style_guide/index.md: 458: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/mdn-content/files/en-us/mozilla/add-ons/webextensions/native_messaging/index.md: 399: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/mdn-content/files/en-us/mozilla/firefox/releases/17/index.md: 39: MD059/descriptive-link-text Link text should be descriptive [Context: "[link]"]␊ + test-repos/mdn-content/files/en-us/mozilla/firefox/releases/22/index.md: 57: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + 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]"]␊ + test-repos/mdn-content/files/en-us/web/svg/tutorial/getting_started/index.md: 29: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/mdn-content/files/en-us/web/uri/schemes/data/index.md: 27: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/mdn-content/files/en-us/web/uri/schemes/data/index.md: 27: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/mdn-content/files/en-us/web/xml/xpath/guides/introduction_to_using_xpath_in_javascript/index.md: 42: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]` diff --git a/test/snapshots/markdownlint-test-repos-mdn-content.mjs.snap b/test/snapshots/markdownlint-test-repos-mdn-content.mjs.snap index 24d00423..2e8b4c69 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-repos-small.mjs.md b/test/snapshots/markdownlint-test-repos-small.mjs.md index 7e13a991..d0d295fe 100644 --- a/test/snapshots/markdownlint-test-repos-small.mjs.md +++ b/test/snapshots/markdownlint-test-repos-small.mjs.md @@ -159,19 +159,56 @@ Generated by [AVA](https://avajs.dev). test-repos/apache-airflow/clients/python/README.md: 395: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊ test-repos/apache-airflow/clients/python/README.md: 395: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊ test-repos/apache-airflow/clients/python/README.md: 396: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊ - test-repos/apache-airflow/clients/python/README.md: 396: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]` + test-repos/apache-airflow/clients/python/README.md: 396: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊ + test-repos/apache-airflow/dev/MANUALLY_BUILDING_IMAGES.md: 49: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/apache-airflow/dev/MANUALLY_GENERATING_IMAGE_CACHE_AND_CONSTRAINTS.md: 118: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/apache-airflow/dev/PROJECT_GUIDELINES.md: 42: MD059/descriptive-link-text Link text should be descriptive [Context: "[Link]"]␊ + test-repos/apache-airflow/generated/README.md: 23: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/apache-airflow/providers/google/tests/system/google/README.md: 77: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]` ## https://github.com/electron/electron > Expected linting violations - '' + `test-repos/electron-electron/CONTRIBUTING.md: 15: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/api/app.md: 687: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/api/app.md: 689: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/api/session.md: 838: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/api/structures/printer-info.md: 10: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/api/structures/printer-info.md: 10: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/api/structures/web-preferences.md: 19: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/api/structures/web-preferences.md: 24: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/api/web-contents.md: 132: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/breaking-changes.md: 1147: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/breaking-changes.md: 1705: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/breaking-changes.md: 1726: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/breaking-changes.md: 1830: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/breaking-changes.md: 1978: MD059/descriptive-link-text Link text should be descriptive [Context: "[link]"]␊ + test-repos/electron-electron/docs/development/build-instructions-macos.md: 30: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/development/build-instructions-macos.md: 58: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/development/build-instructions-macos.md: 58: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/development/build-instructions-macos.md: 58: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/development/creating-api.md: 47: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/development/creating-api.md: 161: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/development/pull-requests.md: 183: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/tutorial/electron-timelines.md: 90: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/tutorial/fuses.md: 141: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/tutorial/launch-app-from-url-in-another-app.md: 66: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/tutorial/mac-app-store-submission-guide.md: 63: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/tutorial/snapcraft.md: 24: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/tutorial/tray.md: 67: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/tutorial/windows-store-guide.md: 104: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/tutorial/windows-store-guide.md: 107: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/electron-electron/docs/tutorial/windows-store-guide.md: 137: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]` ## https://github.com/eslint/eslint > Expected linting violations - '' + `test-repos/eslint-eslint/docs/src/extend/custom-rule-tutorial.md: 494: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/eslint-eslint/docs/src/extend/custom-rules.md: 141: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/eslint-eslint/docs/src/extend/custom-rules.md: 148: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/eslint-eslint/docs/src/integrate/integration-tutorial.md: 278: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]` ## https://github.com/mkdocs/mkdocs @@ -188,6 +225,7 @@ Generated by [AVA](https://avajs.dev). test-repos/mochajs-mocha/PROJECT_CHARTER.md: 51: MD051/link-fragments Link fragments should be valid [Context: "[§2: Scope](#%c2%a72-scope)"]␊ test-repos/mochajs-mocha/PROJECT_CHARTER.md: 56: MD051/link-fragments Link fragments should be valid [Context: "[§2: Scope](#%c2%a72-scope)"]␊ test-repos/mochajs-mocha/README.md: 39: MD045/no-alt-text Images should have alternate text (alt text)␊ + test-repos/mochajs-mocha/docs/changelogs/CHANGELOG_V3_older.md: 207: MD059/descriptive-link-text Link text should be descriptive [Context: "[more]"]␊ test-repos/mochajs-mocha/docs/index.md: 32: MD051/link-fragments Link fragments should be valid [Context: "[global variable leak detection](#-check-leaks)"]␊ test-repos/mochajs-mocha/docs/index.md: 33: MD051/link-fragments Link fragments should be valid [Context: "[optionally run tests that match a regexp](#-grep-regexp-g-regexp)"]␊ test-repos/mochajs-mocha/docs/index.md: 34: MD051/link-fragments Link fragments should be valid [Context: "[auto-exit to prevent "hanging" with an active loop](#-exit)"]␊ @@ -212,22 +250,40 @@ Generated by [AVA](https://avajs.dev). test-repos/mochajs-mocha/docs/index.md: 2112: MD051/link-fragments Link fragments should be valid [Context: "[Watch mode](#-watch-w)"]␊ test-repos/mochajs-mocha/docs/index.md: 2399: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "caniuse-notifications"] [Context: "[caniuse-notifications]: https..."]␊ test-repos/mochajs-mocha/docs/index.md: 2400: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "caniuse-promises"] [Context: "[caniuse-promises]: https://ca..."]␊ - test-repos/mochajs-mocha/docs/index.md: 2431: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "mocha-website"] [Context: "[mocha-website]: https://mocha..."]` + test-repos/mochajs-mocha/docs/index.md: 2431: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "mocha-website"] [Context: "[mocha-website]: https://mocha..."]␊ + test-repos/mochajs-mocha/docs/index.md: 2200: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/mochajs-mocha/docs/index.md: 2270: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]` ## https://github.com/pi-hole/docs > Expected linting violations - '' + `test-repos/pi-hole-docs/docs/ftldns/configfile.md: 224: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/pi-hole-docs/docs/ftldns/configfile.md: 224: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/pi-hole-docs/docs/guides/dns/upstream-dns-providers.md: 120: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/pi-hole-docs/docs/guides/misc/benchmark.md: 32: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/pi-hole-docs/docs/guides/vpn/openvpn/clients.md: 38: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/pi-hole-docs/docs/guides/vpn/openvpn/dual-operation.md: 5: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/pi-hole-docs/docs/guides/vpn/openvpn/firewall.md: 61: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/pi-hole-docs/docs/main/prerequisites.md: 15: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]` ## https://github.com/v8/v8.dev > Expected linting violations - `test-repos/v8-v8-dev/src/blog/fast-for-in.md: 271: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| Internal method | Hand..."]␊ + `test-repos/v8-v8-dev/src/blog/adaptor-frame.md: 75: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/v8-v8-dev/src/blog/adaptor-frame.md: 77: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/v8-v8-dev/src/blog/adaptor-frame.md: 89: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/v8-v8-dev/src/blog/adaptor-frame.md: 232: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/v8-v8-dev/src/blog/fast-for-in.md: 271: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| Internal method | Hand..."]␊ test-repos/v8-v8-dev/src/blog/fast-for-in.md: 277: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| \`[[OwnPropertyKeys]]\` | \`own..."]␊ test-repos/v8-v8-dev/src/blog/fast-for-in.md: 351: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| Position | Name ..."]␊ test-repos/v8-v8-dev/src/blog/fast-for-in.md: 369: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| 17 | \`ForInFilter\` ..."]␊ + test-repos/v8-v8-dev/src/blog/high-performance-cpp-gc.md: 29: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/v8-v8-dev/src/blog/jspi-ot.md: 13: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/v8-v8-dev/src/blog/jspi-ot.md: 13: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/v8-v8-dev/src/blog/jspi-ot.md: 23: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/v8-v8-dev/src/blog/jspi-ot.md: 38: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/v8-v8-dev/src/blog/lazy-unlinking.md: 183: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| Benchmark | Kind ..."]␊ test-repos/v8-v8-dev/src/blog/lazy-unlinking.md: 188: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| youtube.com | Average size ..."]␊ test-repos/v8-v8-dev/src/blog/maglev.md: 143: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| Benchmark | Energy Consump..."]␊ @@ -275,6 +331,7 @@ Generated by [AVA](https://avajs.dev). test-repos/v8-v8-dev/src/blog/oilpan-pointer-compression.md: 139: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| \`\`\` ..."]␊ test-repos/v8-v8-dev/src/blog/oilpan-pointer-compression.md: 185: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| C++ ..."]␊ test-repos/v8-v8-dev/src/blog/oilpan-pointer-compression.md: 202: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| \`\`\` ..."]␊ + test-repos/v8-v8-dev/src/blog/optimizing-v8-memory.md: 35: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/v8-v8-dev/src/blog/pointer-compression.md: 192: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊ test-repos/v8-v8-dev/src/blog/pointer-compression.md: 193: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊ test-repos/v8-v8-dev/src/blog/pointer-compression.md: 194: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊ @@ -307,20 +364,33 @@ Generated by [AVA](https://avajs.dev). test-repos/v8-v8-dev/src/blog/understanding-ecmascript-part-1.md: 191: MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "> 7. Return \`NormalCompletion(..."]␊ test-repos/v8-v8-dev/src/blog/understanding-ecmascript-part-1.md: 113: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| Name | Description ..."]␊ test-repos/v8-v8-dev/src/blog/understanding-ecmascript-part-1.md: 117: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| \`[[Target]]\` | Used for dire..."]␊ + test-repos/v8-v8-dev/src/blog/understanding-ecmascript-part-1.md: 102: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/v8-v8-dev/src/blog/v8-nodejs.md: 29: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/v8-v8-dev/src/blog/v8-release-80.md: 46: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| || Des..."]␊ test-repos/v8-v8-dev/src/blog/v8-release-80.md: 53: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| ^^ | GC | -7%..."]␊ + test-repos/v8-v8-dev/src/blog/v8-release-86.md: 16: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/v8-v8-dev/src/blog/wasm-decompile.md: 153: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/v8-v8-dev/src/blog/wasm-decompile.md: 153: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/v8-v8-dev/src/blog/wasm-decompile.md: 153: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/v8-v8-dev/src/docs/become-committer.md: 34: MD034/no-bare-urls Bare URL used [Context: "v8-committers@googlegroups.com"]␊ test-repos/v8-v8-dev/src/docs/become-committer.md: 44: MD034/no-bare-urls Bare URL used [Context: "v8-committers@googlegroups.com"]␊ + test-repos/v8-v8-dev/src/docs/blink-layout-tests.md: 11: MD059/descriptive-link-text Link text should be descriptive [Context: "[more]"]␊ + test-repos/v8-v8-dev/src/docs/contribute.md: 23: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/v8-v8-dev/src/docs/cross-compile-arm.md: 21: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/v8-v8-dev/src/docs/design-review-guidelines.md: 41: MD034/no-bare-urls Bare URL used [Context: "v8-eng-review-owners@googlegro..."]␊ test-repos/v8-v8-dev/src/docs/design-review-guidelines.md: 78: MD034/no-bare-urls Bare URL used [Context: "v8-dev@googlegroups.com"]␊ test-repos/v8-v8-dev/src/docs/design-review-guidelines.md: 80: MD034/no-bare-urls Bare URL used [Context: "v8-eng-review-owners@googlegro..."]␊ + test-repos/v8-v8-dev/src/docs/design-review-guidelines.md: 126: MD059/descriptive-link-text Link text should be descriptive [Context: "[Here]"]␊ test-repos/v8-v8-dev/src/docs/feature-launch-process.md: 7: MD034/no-bare-urls Bare URL used [Context: "syg@chromium.org"]␊ test-repos/v8-v8-dev/src/docs/feature-launch-process.md: 7: MD034/no-bare-urls Bare URL used [Context: "v8-dev@googlegroups.com"]␊ test-repos/v8-v8-dev/src/docs/feature-launch-process.md: 9: MD034/no-bare-urls Bare URL used [Context: "gdeepti@chromium.org"]␊ test-repos/v8-v8-dev/src/docs/feature-launch-process.md: 9: MD034/no-bare-urls Bare URL used [Context: "v8-dev@googlegroups.com"]␊ + test-repos/v8-v8-dev/src/docs/hidden-classes.md: 133: MD059/descriptive-link-text Link text should be descriptive [Context: "[link]"]␊ test-repos/v8-v8-dev/src/docs/official-support.md: 19: MD034/no-bare-urls Bare URL used [Context: "v8-dev@googlegroups.com"]␊ test-repos/v8-v8-dev/src/docs/respectful-code.md: 36: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| Term | Suggested altern..."]␊ test-repos/v8-v8-dev/src/docs/respectful-code.md: 45: MD058/blanks-around-tables Tables should be surrounded by blank lines [Context: "| redline | priority line, l..."]␊ + test-repos/v8-v8-dev/src/docs/torque.md: 527: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ + test-repos/v8-v8-dev/src/docs/trace.md: 5: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/v8-v8-dev/src/feature-support.md: 11: MD033/no-inline-html Inline HTML [Element: feature-support]␊ test-repos/v8-v8-dev/src/feature-support.md: 19: MD033/no-inline-html Inline HTML [Element: feature-support]␊ test-repos/v8-v8-dev/src/feature-support.md: 27: MD033/no-inline-html Inline HTML [Element: feature-support]␊ @@ -378,6 +448,7 @@ Generated by [AVA](https://avajs.dev). test-repos/v8-v8-dev/src/features/promise-finally.md: 82: MD033/no-inline-html Inline HTML [Element: feature-support]␊ test-repos/v8-v8-dev/src/features/regexp-match-indices.md: 134: MD033/no-inline-html Inline HTML [Element: feature-support]␊ test-repos/v8-v8-dev/src/features/regexp-v-flag.md: 254: MD033/no-inline-html Inline HTML [Element: feature-support]␊ + test-repos/v8-v8-dev/src/features/simd.md: 217: MD059/descriptive-link-text Link text should be descriptive [Context: "[link]"]␊ test-repos/v8-v8-dev/src/features/stable-sort.md: 76: MD033/no-inline-html Inline HTML [Element: feature-support]␊ test-repos/v8-v8-dev/src/features/stable-sort.md: 84: MD033/no-inline-html Inline HTML [Element: feature-support]␊ test-repos/v8-v8-dev/src/features/string-matchall.md: 92: MD033/no-inline-html Inline HTML [Element: feature-support]␊ @@ -426,6 +497,7 @@ Generated by [AVA](https://avajs.dev). test-repos/webhintio-hint/packages/hint/docs/user-guide/development-flow-integration/local-server.md: 63: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "webhint repo"] [Context: "[webhint repo]: https://github..."]␊ test-repos/webhintio-hint/packages/hint/docs/user-guide/development-flow-integration/local-server.md: 64: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "webhint.io"] [Context: "[webhint.io]: https://webhint...."]␊ test-repos/webhintio-hint/packages/hint/docs/user-guide/development-flow-integration/local-server.md: 65: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "webhintio repo"] [Context: "[webhintio repo]: https://gith..."]␊ + test-repos/webhintio-hint/packages/hint/docs/user-guide/development-flow-integration/travis-and-azure.md: 4: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/webhintio-hint/packages/hint/docs/user-guide/index.md: 178: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "nodejsdownloadcurrent"] [Context: "[NodejsDownloadCurrent]: https..."]␊ test-repos/webhintio-hint/packages/hint/docs/user-guide/troubleshoot/summary.md: 137: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "githubwebhintiohint308"] [Context: "[GithubWebhintioHint308]: http..."]␊ test-repos/webhintio-hint/packages/hint/docs/user-guide/troubleshoot/summary.md: 141: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "npmjspackageiltorb"] [Context: "[NpmjsPackageIltorb]: https://..."]␊ diff --git a/test/snapshots/markdownlint-test-repos-small.mjs.snap b/test/snapshots/markdownlint-test-repos-small.mjs.snap index 29708951..1ae052e8 100644 Binary files a/test/snapshots/markdownlint-test-repos-small.mjs.snap and b/test/snapshots/markdownlint-test-repos-small.mjs.snap differ diff --git a/test/snapshots/markdownlint-test-scenarios.mjs.md b/test/snapshots/markdownlint-test-scenarios.mjs.md index d7f72192..66f4b900 100644 --- a/test/snapshots/markdownlint-test-scenarios.mjs.md +++ b/test/snapshots/markdownlint-test-scenarios.mjs.md @@ -3601,7 +3601,7 @@ Generated by [AVA](https://avajs.dev). ␊ The site () is down. {MD034}␊ ␊ - ␊ + ␊ ␊ Some documents use to link.␊ ␊ @@ -10895,6 +10895,331 @@ Generated by [AVA](https://avajs.dev). `, } +## descriptive-link-text-empty-config.md + +> Snapshot 1 + + { + 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)␊ + ␊ + [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␊ + ␊ + ␊ + `, + } + +## descriptive-link-text-override.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: '[Go here]', + errorDetail: null, + errorRange: [ + 2, + 9, + ], + fixInfo: null, + lineNumber: 3, + 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: '[this]', + errorDetail: null, + errorRange: [ + 40, + 6, + ], + fixInfo: null, + lineNumber: 13, + 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 override␊ + ␊ + [Go here](https://example.com/javascript/about) {MD059}␊ + ␊ + [Learn more](https://example.com/javascript/about).␊ + ␊ + [Click here](https://example.com/javascript/about).␊ + ␊ + To learn more, go [here!](https://example.com/site).␊ + ␊ + To learn more, go to this [link!](https://example.com/links).␊ + ␊ + If you need additional guidance, read [this](https://example.com/links). {MD059}␊ + ␊ + [link][url]␊ + ␊ + [url]: https://example.com␊ + ␊ + ␊ + `, + } + +## descriptive-link-text.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: '[here]', + errorDetail: null, + errorRange: [ + 5, + 6, + ], + fixInfo: null, + lineNumber: 9, + 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: '[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, + ], + fixInfo: null, + lineNumber: 13, + 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: '[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, + ], + fixInfo: null, + lineNumber: 17, + 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: '[more]', + errorDetail: null, + errorRange: [ + 8, + 6, + ], + fixInfo: null, + lineNumber: 19, + 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: [ + 17, + 16, + ], + fixInfo: null, + lineNumber: 21, + 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, + 16, + ], + fixInfo: null, + lineNumber: 23, + 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: [ + 13, + 6, + ], + fixInfo: null, + lineNumber: 25, + 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: 27, + 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: null, + fixInfo: null, + lineNumber: 31, + 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␊ + ␊ + [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) {MD059}␊ + ␊ + [Learn more](https://example.com/images/about) about us. {MD059}␊ + ␊ + [Click here](https://example.com/dir/file.txt). {MD059}␊ + ␊ + [read more](https://example.com/guide). {MD059}␊ + ␊ + To get more support, go [here!](https://example.com/contact). {MD059}␊ + ␊ + Learn [more](https://example.com/contact). {MD059}␊ + ␊ + 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}␊ + ␊ + [link][Example URL] {MD059}␊ + ␊ + [Example URL]: https://example.com␊ + ␊ + {MD059} [click␊ + here](https://example.com)␊ + `, + } + ## emoji-headings.md > Snapshot 1 @@ -13511,6 +13836,22 @@ Generated by [AVA](https://avajs.dev). 'single-trailing-newline', ], }, + { + errorContext: '[ link ]', + errorDetail: null, + errorRange: [ + 7, + 8, + ], + fixInfo: null, + lineNumber: 8, + 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: `---␊ front: matter␊ @@ -13520,7 +13861,7 @@ Generated by [AVA](https://avajs.dev). ␊ Text text text {MD009}␊ ␊ - Text [link](url) text {MD039}␊ + Text [link](url) text {MD039} {MD059}␊ ␊ ## Nested Heading {MD022}␊ ␊ @@ -28861,6 +29202,7 @@ Generated by [AVA](https://avajs.dev). [email]: user@example.com␊ ␊ ␊ `, } @@ -37891,6 +38235,7 @@ Generated by [AVA](https://avajs.dev). [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ ␊ ␊ `, } @@ -37953,7 +38299,8 @@ Generated by [AVA](https://avajs.dev). [long-reference-definition-image]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/image␊ ␊ [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ - `, + ␊ + `, } ## long-lines-short-code.md @@ -39861,7 +40208,7 @@ Generated by [AVA](https://avajs.dev). ␊

␊ ␊ - ␊ + ␊ `, } @@ -48520,7 +48867,8 @@ Generated by [AVA](https://avajs.dev). ␊ `, } @@ -49981,7 +50329,10 @@ Generated by [AVA](https://avajs.dev). [link \`link\`](https://example.com/) {MD039}␊ ␊ [*link* link](https://example.com/) {MD039}␊ - `, + ␊ + `, } ## spaces_after_list_marker.md @@ -50509,7 +50860,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 30, }, - lineNumber: 83, + lineNumber: 85, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50528,7 +50879,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 34, }, - lineNumber: 95, + lineNumber: 97, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50547,7 +50898,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 29, }, - lineNumber: 103, + lineNumber: 105, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50566,7 +50917,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 33, }, - lineNumber: 105, + lineNumber: 107, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50585,7 +50936,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 38, }, - lineNumber: 114, + lineNumber: 116, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50604,7 +50955,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 43, }, - lineNumber: 116, + lineNumber: 118, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50623,7 +50974,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 2, editColumn: 31, }, - lineNumber: 118, + lineNumber: 120, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50642,7 +50993,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 2, editColumn: 37, }, - lineNumber: 118, + lineNumber: 120, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50661,7 +51012,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 9, }, - lineNumber: 132, + lineNumber: 134, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50681,7 +51032,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 15, }, - lineNumber: 139, + lineNumber: 141, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50702,7 +51053,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 4, editColumn: 1, }, - lineNumber: 153, + lineNumber: 155, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50723,7 +51074,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 4, editColumn: 1, }, - lineNumber: 163, + lineNumber: 165, ruleDescription: 'Spaces inside code span elements', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ @@ -50739,7 +51090,7 @@ Generated by [AVA](https://avajs.dev). 18, ], fixInfo: null, - lineNumber: 81, + lineNumber: 83, ruleDescription: 'Link fragments should be valid', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ @@ -50755,7 +51106,7 @@ Generated by [AVA](https://avajs.dev). 18, ], fixInfo: null, - lineNumber: 85, + lineNumber: 87, ruleDescription: 'Link fragments should be valid', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ @@ -50771,7 +51122,7 @@ Generated by [AVA](https://avajs.dev). 23, ], fixInfo: null, - lineNumber: 87, + lineNumber: 89, ruleDescription: 'Link fragments should be valid', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ @@ -50787,7 +51138,7 @@ Generated by [AVA](https://avajs.dev). 23, ], fixInfo: null, - lineNumber: 89, + lineNumber: 91, ruleDescription: 'Link fragments should be valid', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ @@ -50803,7 +51154,7 @@ Generated by [AVA](https://avajs.dev). 23, ], fixInfo: null, - lineNumber: 91, + lineNumber: 93, ruleDescription: 'Link fragments should be valid', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ @@ -50819,7 +51170,7 @@ Generated by [AVA](https://avajs.dev). 23, ], fixInfo: null, - lineNumber: 93, + lineNumber: 95, ruleDescription: 'Link fragments should be valid', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ @@ -50900,6 +51251,8 @@ 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\`\`\`.␊ @@ -51016,7 +51369,7 @@ Generated by [AVA](https://avajs.dev). 3, ], fixInfo: null, - lineNumber: 380, + lineNumber: 378, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ @@ -51032,7 +51385,7 @@ Generated by [AVA](https://avajs.dev). 3, ], fixInfo: null, - lineNumber: 382, + lineNumber: 380, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ @@ -51048,7 +51401,7 @@ Generated by [AVA](https://avajs.dev). 39, ], fixInfo: null, - lineNumber: 386, + lineNumber: 384, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ @@ -51064,7 +51417,7 @@ Generated by [AVA](https://avajs.dev). 41, ], fixInfo: null, - lineNumber: 388, + lineNumber: 386, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ @@ -51080,7 +51433,7 @@ Generated by [AVA](https://avajs.dev). 24, ], fixInfo: null, - lineNumber: 390, + lineNumber: 388, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ @@ -51099,7 +51452,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 9, }, - lineNumber: 17, + lineNumber: 15, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51118,7 +51471,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 18, }, - lineNumber: 17, + lineNumber: 15, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51137,7 +51490,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 10, }, - lineNumber: 19, + lineNumber: 17, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51156,7 +51509,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 17, }, - lineNumber: 19, + lineNumber: 17, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51175,7 +51528,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 11, }, - lineNumber: 21, + lineNumber: 19, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51194,7 +51547,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 31, }, - lineNumber: 21, + lineNumber: 19, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51213,7 +51566,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 9, }, - lineNumber: 23, + lineNumber: 21, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51232,7 +51585,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 18, }, - lineNumber: 23, + lineNumber: 21, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51251,7 +51604,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 10, }, - lineNumber: 25, + lineNumber: 23, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51270,7 +51623,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 17, }, - lineNumber: 25, + lineNumber: 23, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51289,7 +51642,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 11, }, - lineNumber: 27, + lineNumber: 25, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51308,7 +51661,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 31, }, - lineNumber: 27, + lineNumber: 25, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51327,7 +51680,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 26, }, - lineNumber: 29, + lineNumber: 27, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51346,7 +51699,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 42, }, - lineNumber: 29, + lineNumber: 27, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51365,7 +51718,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 27, }, - lineNumber: 31, + lineNumber: 29, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51384,7 +51737,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 41, }, - lineNumber: 31, + lineNumber: 29, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51403,7 +51756,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 43, }, - lineNumber: 33, + lineNumber: 31, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51422,7 +51775,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 70, }, - lineNumber: 33, + lineNumber: 31, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51441,7 +51794,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 26, }, - lineNumber: 35, + lineNumber: 33, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51460,7 +51813,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 42, }, - lineNumber: 35, + lineNumber: 33, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51479,7 +51832,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 27, }, - lineNumber: 37, + lineNumber: 35, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51498,7 +51851,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 41, }, - lineNumber: 37, + lineNumber: 35, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51517,7 +51870,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 43, }, - lineNumber: 39, + lineNumber: 37, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51536,7 +51889,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 70, }, - lineNumber: 39, + lineNumber: 37, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51555,7 +51908,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 36, }, - lineNumber: 41, + lineNumber: 39, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51574,7 +51927,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 52, }, - lineNumber: 41, + lineNumber: 39, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51593,7 +51946,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 31, }, - lineNumber: 43, + lineNumber: 41, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51612,7 +51965,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 47, }, - lineNumber: 43, + lineNumber: 41, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51631,7 +51984,26 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 11, }, - lineNumber: 43, + 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, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51658,25 +52030,6 @@ 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, @@ -51688,7 +52041,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 12, }, - lineNumber: 47, + lineNumber: 45, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51707,7 +52060,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 14, }, - lineNumber: 49, + lineNumber: 47, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51726,7 +52079,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 25, }, - lineNumber: 51, + lineNumber: 49, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51745,7 +52098,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 3, }, - lineNumber: 57, + lineNumber: 55, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51764,7 +52117,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 4, }, - lineNumber: 59, + lineNumber: 57, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51783,7 +52136,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 2, }, - lineNumber: 61, + lineNumber: 59, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51802,7 +52155,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 3, }, - lineNumber: 63, + lineNumber: 61, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51821,7 +52174,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 4, }, - lineNumber: 65, + lineNumber: 63, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51840,7 +52193,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 10, }, - lineNumber: 67, + lineNumber: 65, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51859,7 +52212,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 9, }, - lineNumber: 69, + lineNumber: 67, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51878,7 +52231,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 23, }, - lineNumber: 71, + lineNumber: 69, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51897,7 +52250,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 10, }, - lineNumber: 73, + lineNumber: 71, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51916,7 +52269,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 9, }, - lineNumber: 75, + lineNumber: 73, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51935,7 +52288,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 23, }, - lineNumber: 77, + lineNumber: 75, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51954,7 +52307,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 21, }, - lineNumber: 79, + lineNumber: 77, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51973,7 +52326,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 22, }, - lineNumber: 81, + lineNumber: 79, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -51992,7 +52345,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 23, }, - lineNumber: 83, + lineNumber: 81, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52011,7 +52364,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 21, }, - lineNumber: 85, + lineNumber: 83, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52030,7 +52383,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 22, }, - lineNumber: 87, + lineNumber: 85, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52049,7 +52402,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 23, }, - lineNumber: 89, + lineNumber: 87, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52068,7 +52421,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 30, }, - lineNumber: 91, + lineNumber: 89, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52087,7 +52440,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 29, }, - lineNumber: 93, + lineNumber: 91, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52106,7 +52459,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 43, }, - lineNumber: 95, + lineNumber: 93, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52125,7 +52478,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 30, }, - lineNumber: 97, + lineNumber: 95, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52144,7 +52497,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 29, }, - lineNumber: 99, + lineNumber: 97, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52163,7 +52516,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 43, }, - lineNumber: 101, + lineNumber: 99, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52182,7 +52535,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 11, }, - lineNumber: 103, + lineNumber: 101, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52201,7 +52554,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 26, }, - lineNumber: 103, + lineNumber: 101, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52220,7 +52573,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 43, }, - lineNumber: 103, + lineNumber: 101, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52239,7 +52592,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 41, }, - lineNumber: 105, + lineNumber: 103, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52258,7 +52611,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 44, }, - lineNumber: 105, + lineNumber: 103, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52277,7 +52630,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 10, }, - lineNumber: 107, + lineNumber: 105, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52296,7 +52649,45 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 23, }, - lineNumber: 107, + lineNumber: 105, + 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: '* i', + errorDetail: null, + errorRange: [ + 8, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 9, + }, + lineNumber: 109, + 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: 'm *', + errorDetail: null, + errorRange: [ + 12, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 13, + }, + lineNumber: 110, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52323,44 +52714,6 @@ Generated by [AVA](https://avajs.dev). 'no-space-in-emphasis', ], }, - { - errorContext: 'm *', - errorDetail: null, - errorRange: [ - 12, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 13, - }, - lineNumber: 112, - 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: '* i', - errorDetail: null, - errorRange: [ - 8, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 9, - }, - lineNumber: 113, - 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: 'm *', errorDetail: null, @@ -52372,7 +52725,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 14, }, - lineNumber: 113, + lineNumber: 111, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52391,7 +52744,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 8, }, - lineNumber: 116, + lineNumber: 114, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52410,7 +52763,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 14, }, - lineNumber: 117, + lineNumber: 115, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52429,7 +52782,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 15, }, - lineNumber: 118, + lineNumber: 116, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52448,7 +52801,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 19, }, - lineNumber: 118, + lineNumber: 116, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52467,7 +52820,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 4, }, - lineNumber: 127, + lineNumber: 125, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52486,7 +52839,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 3, }, - lineNumber: 133, + lineNumber: 131, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52505,7 +52858,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 15, }, - lineNumber: 135, + lineNumber: 133, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52524,7 +52877,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 20, }, - lineNumber: 137, + lineNumber: 135, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52543,7 +52896,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 19, }, - lineNumber: 139, + lineNumber: 137, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52562,7 +52915,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 3, }, - lineNumber: 145, + lineNumber: 143, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52581,7 +52934,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 13, }, - lineNumber: 147, + lineNumber: 145, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52600,7 +52953,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 3, }, - lineNumber: 149, + lineNumber: 147, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52619,7 +52972,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 16, }, - lineNumber: 155, + lineNumber: 153, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52638,7 +52991,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 19, }, - lineNumber: 161, + lineNumber: 159, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52657,7 +53010,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 9, }, - lineNumber: 163, + lineNumber: 161, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52676,7 +53029,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 7, }, - lineNumber: 167, + lineNumber: 165, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52695,7 +53048,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 11, }, - lineNumber: 169, + lineNumber: 167, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52714,7 +53067,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 14, }, - lineNumber: 171, + lineNumber: 169, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52733,7 +53086,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 20, }, - lineNumber: 173, + lineNumber: 171, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52752,7 +53105,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 17, }, - lineNumber: 353, + lineNumber: 351, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52771,7 +53124,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 21, }, - lineNumber: 354, + lineNumber: 352, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52790,7 +53143,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 17, }, - lineNumber: 356, + lineNumber: 354, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52809,7 +53162,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 21, }, - lineNumber: 357, + lineNumber: 355, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52828,7 +53181,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 21, }, - lineNumber: 380, + lineNumber: 378, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52847,7 +53200,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 26, }, - lineNumber: 380, + lineNumber: 378, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52866,7 +53219,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 35, }, - lineNumber: 390, + lineNumber: 388, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52885,7 +53238,7 @@ Generated by [AVA](https://avajs.dev). deleteCount: 1, editColumn: 40, }, - lineNumber: 390, + lineNumber: 388, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -52896,8 +53249,6 @@ Generated by [AVA](https://avajs.dev). ], fixed: `# Heading␊ ␊ - ␊ - ␊ Line with *Normal emphasis*␊ ␊ Line with **Normal strong**␊ @@ -53287,6 +53638,12 @@ Generated by [AVA](https://avajs.dev). ␊ Embedded underscore is okay:␊ Text _emphas_i_s_ text _emphasis_␊ + ␊ + ␊ `, } @@ -54254,7 +54611,10 @@ Generated by [AVA](https://avajs.dev). Not a link, just [ text in ] brackets␊ ␊ Images are ![ not links ](image.jpg)␊ - `, + ␊ + `, } ## strong_style_asterisk.md @@ -55929,20 +56289,52 @@ Generated by [AVA](https://avajs.dev). 'no-empty-links', ], }, + { + errorContext: '[link ]', + errorDetail: null, + errorRange: [ + 4, + 7, + ], + fixInfo: null, + lineNumber: 12, + 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: [ + 4, + 6, + ], + fixInfo: null, + lineNumber: 13, + 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: `# Table Content With Issues␊ ␊ - | Content | Issue |␊ - |------------------------------|---------|␊ - | Text | N/A |␊ - | [link](https://example.com) | {MD011} |␊ - |
| {MD033} |␊ - | | {MD034} |␊ - | *emphasis* | {MD037} |␊ - | __strong__ | {MD037} |␊ - | \`code\` | {MD038} |␊ - | [link](https://example.com) | {MD039} |␊ - | [link]() | {MD042} |␊ + | Content | Issue |␊ + |------------------------------|-----------------|␊ + | Text | N/A |␊ + | [link](https://example.com) | {MD011} |␊ + |
| {MD033} |␊ + | | {MD034} |␊ + | *emphasis* | {MD037} |␊ + | __strong__ | {MD037} |␊ + | \`code\` | {MD038} |␊ + | [link](https://example.com) | {MD039} {MD059} |␊ + | [link]() | {MD042} {MD059} |␊ `, } @@ -58825,7 +59217,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 edcdcdb6..6ebc182a 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-link-text.md b/test/spaces-inside-link-text.md index 27027ca7..aba63ed7 100644 --- a/test/spaces-inside-link-text.md +++ b/test/spaces-inside-link-text.md @@ -15,3 +15,7 @@ [ link `link` ](https://example.com/) {MD039} [ *link* link ](https://example.com/) {MD039} + + \ No newline at end of file diff --git a/test/spaces_inside_codespan_elements.md b/test/spaces_inside_codespan_elements.md index 7375b91f..ff6d2bc5 100644 --- a/test/spaces_inside_codespan_elements.md +++ b/test/spaces_inside_codespan_elements.md @@ -70,6 +70,8 @@ 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```. diff --git a/test/spaces_inside_emphasis_markers.md b/test/spaces_inside_emphasis_markers.md index 30539707..f0b77194 100644 --- a/test/spaces_inside_emphasis_markers.md +++ b/test/spaces_inside_emphasis_markers.md @@ -1,7 +1,5 @@ # Heading - - Line with *Normal emphasis* Line with **Normal strong** @@ -391,3 +389,9 @@ Emphasis

* HTML *

{MD033} {MD037} Embedded underscore is okay: Text _emphas_i_s_ text _emphasis_ + + diff --git a/test/spaces_inside_link_text.md b/test/spaces_inside_link_text.md index 0d7e7aac..41932da0 100644 --- a/test/spaces_inside_link_text.md +++ b/test/spaces_inside_link_text.md @@ -105,3 +105,7 @@ Wrapped [ Not a link, just [ text in ] brackets Images are ![ not links ](image.jpg) + + \ No newline at end of file diff --git a/test/table-content-with-issues.md b/test/table-content-with-issues.md index c1fbf0af..ee2229eb 100644 --- a/test/table-content-with-issues.md +++ b/test/table-content-with-issues.md @@ -1,13 +1,13 @@ # Table Content With Issues -| Content | Issue | -|------------------------------|---------| -| Text | N/A | -| (link)[https://example.com] | {MD011} | -|
| {MD033} | -| https://example.com | {MD034} | -| * emphasis* | {MD037} | -| __strong __ | {MD037} | -| ` code` | {MD038} | -| [link ](https://example.com) | {MD039} | -| [link]() | {MD042} | +| Content | Issue | +|------------------------------|-----------------| +| Text | N/A | +| (link)[https://example.com] | {MD011} | +|
| {MD033} | +| https://example.com | {MD034} | +| * emphasis* | {MD037} | +| __strong __ | {MD037} | +| ` code` | {MD038} | +| [link ](https://example.com) | {MD039} {MD059} | +| [link]() | {MD042} {MD059} | diff --git a/test/token-map-spans.md b/test/token-map-spans.md index f54fac0e..cfbbb262 100644 --- a/test/token-map-spans.md +++ b/test/token-map-spans.md @@ -38,5 +38,6 @@ code