diff --git a/test/detailed-results-4-tabs-MD010.json b/test/4-tabs-MD010.json similarity index 100% rename from test/detailed-results-4-tabs-MD010.json rename to test/4-tabs-MD010.json diff --git a/test/detailed-results-4-tabs-MD010.md b/test/4-tabs-MD010.md similarity index 100% rename from test/detailed-results-4-tabs-MD010.md rename to test/4-tabs-MD010.md diff --git a/test/detailed-results-MD001-MD010.json b/test/MD001-MD010.json similarity index 100% rename from test/detailed-results-MD001-MD010.json rename to test/MD001-MD010.json diff --git a/test/detailed-results-MD001-MD010.md b/test/MD001-MD010.md similarity index 100% rename from test/detailed-results-MD001-MD010.md rename to test/MD001-MD010.md diff --git a/test/detailed-results-MD011-MD021.json b/test/MD011-MD021.json similarity index 100% rename from test/detailed-results-MD011-MD021.json rename to test/MD011-MD021.json diff --git a/test/detailed-results-MD011-MD021.md b/test/MD011-MD021.md similarity index 100% rename from test/detailed-results-MD011-MD021.md rename to test/MD011-MD021.md diff --git a/test/detailed-results-MD022-MD030.md b/test/MD022-MD030.md similarity index 100% rename from test/detailed-results-MD022-MD030.md rename to test/MD022-MD030.md diff --git a/test/detailed-results-MD030-warning-message.md b/test/MD030-warning-message.md similarity index 100% rename from test/detailed-results-MD030-warning-message.md rename to test/MD030-warning-message.md diff --git a/test/detailed-results-MD031-MD040.json b/test/MD031-MD040.json similarity index 100% rename from test/detailed-results-MD031-MD040.json rename to test/MD031-MD040.json diff --git a/test/detailed-results-MD031-MD040.md b/test/MD031-MD040.md similarity index 100% rename from test/detailed-results-MD031-MD040.md rename to test/MD031-MD040.md diff --git a/test/detailed-results-MD041-MD050.json b/test/MD041-MD050.json similarity index 100% rename from test/detailed-results-MD041-MD050.json rename to test/MD041-MD050.json diff --git a/test/detailed-results-MD041-MD050.md b/test/MD041-MD050.md similarity index 100% rename from test/detailed-results-MD041-MD050.md rename to test/MD041-MD050.md diff --git a/test/detailed-results-MD051-MD060.md b/test/MD051-MD060.md similarity index 100% rename from test/detailed-results-MD051-MD060.md rename to test/MD051-MD060.md diff --git a/test/detailed-results-bare-urls.md b/test/bare-urls.md similarity index 100% rename from test/detailed-results-bare-urls.md rename to test/bare-urls.md diff --git a/test/detailed-results-blanks-around-headings-0-2.json b/test/blanks-around-headings-0-2.json similarity index 100% rename from test/detailed-results-blanks-around-headings-0-2.json rename to test/blanks-around-headings-0-2.json diff --git a/test/detailed-results-blanks-around-headings-0-2.md b/test/blanks-around-headings-0-2.md similarity index 100% rename from test/detailed-results-blanks-around-headings-0-2.md rename to test/blanks-around-headings-0-2.md diff --git a/test/detailed-results-blanks-around-headings-3-0.json b/test/blanks-around-headings-3-0.json similarity index 100% rename from test/detailed-results-blanks-around-headings-3-0.json rename to test/blanks-around-headings-3-0.json diff --git a/test/detailed-results-blanks-around-headings-3-0.md b/test/blanks-around-headings-3-0.md similarity index 100% rename from test/detailed-results-blanks-around-headings-3-0.md rename to test/blanks-around-headings-3-0.md diff --git a/test/detailed-results-blanks-around-headings.json b/test/blanks-around-headings.json similarity index 100% rename from test/detailed-results-blanks-around-headings.json rename to test/blanks-around-headings.json diff --git a/test/detailed-results-blanks-around-headings.md b/test/blanks-around-headings.md similarity index 100% rename from test/detailed-results-blanks-around-headings.md rename to test/blanks-around-headings.md diff --git a/test/detailed-results-code-fences-in-blockquotes.md b/test/code-fences-in-blockquotes.md similarity index 100% rename from test/detailed-results-code-fences-in-blockquotes.md rename to test/code-fences-in-blockquotes.md diff --git a/test/detailed-results-default-spaces-MD010.json b/test/default-spaces-MD010.json similarity index 100% rename from test/detailed-results-default-spaces-MD010.json rename to test/default-spaces-MD010.json diff --git a/test/detailed-results-default-spaces-MD010.md b/test/default-spaces-MD010.md similarity index 100% rename from test/detailed-results-default-spaces-MD010.md rename to test/default-spaces-MD010.md diff --git a/test/detailed-results-fixing-with-front-matter.md b/test/fixing-with-front-matter.md similarity index 100% rename from test/detailed-results-fixing-with-front-matter.md rename to test/fixing-with-front-matter.md diff --git a/test/detailed-results-front-matter.json b/test/front-matter-alternate.json similarity index 100% rename from test/detailed-results-front-matter.json rename to test/front-matter-alternate.json diff --git a/test/detailed-results-front-matter.md b/test/front-matter-alternate.md similarity index 100% rename from test/detailed-results-front-matter.md rename to test/front-matter-alternate.md diff --git a/test/detailed-results-html-tags.json b/test/html-tags.json similarity index 100% rename from test/detailed-results-html-tags.json rename to test/html-tags.json diff --git a/test/detailed-results-html-tags.md b/test/html-tags.md similarity index 100% rename from test/detailed-results-html-tags.md rename to test/html-tags.md diff --git a/test/detailed-results-links.json b/test/links-alternate.json similarity index 100% rename from test/detailed-results-links.json rename to test/links-alternate.json diff --git a/test/detailed-results-links.md b/test/links-alternate.md similarity index 100% rename from test/detailed-results-links.md rename to test/links-alternate.md diff --git a/test/detailed-results-no-tabs-edge-case-MD010.json b/test/no-tabs-edge-case-MD010.json similarity index 100% rename from test/detailed-results-no-tabs-edge-case-MD010.json rename to test/no-tabs-edge-case-MD010.json diff --git a/test/detailed-results-no-tabs-edge-case-MD010.md b/test/no-tabs-edge-case-MD010.md similarity index 100% rename from test/detailed-results-no-tabs-edge-case-MD010.md rename to test/no-tabs-edge-case-MD010.md diff --git a/test/detailed-results-ordered-list-item-prefix-single.md b/test/ordered-list-item-prefix-single-alternate.md similarity index 100% rename from test/detailed-results-ordered-list-item-prefix-single.md rename to test/ordered-list-item-prefix-single-alternate.md diff --git a/test/detailed-results-ordered-list-item-prefix-zero.json b/test/ordered-list-item-prefix-zero-alternate.json similarity index 100% rename from test/detailed-results-ordered-list-item-prefix-zero.json rename to test/ordered-list-item-prefix-zero-alternate.json diff --git a/test/detailed-results-ordered-list-item-prefix-zero.md b/test/ordered-list-item-prefix-zero-alternate.md similarity index 100% rename from test/detailed-results-ordered-list-item-prefix-zero.md rename to test/ordered-list-item-prefix-zero-alternate.md diff --git a/test/detailed-results-proper-names.json b/test/proper-names-alternate.json similarity index 100% rename from test/detailed-results-proper-names.json rename to test/proper-names-alternate.json diff --git a/test/detailed-results-proper-names.md b/test/proper-names-alternate.md similarity index 100% rename from test/detailed-results-proper-names.md rename to test/proper-names-alternate.md diff --git a/test/snapshots/markdownlint-test-scenarios.js.md b/test/snapshots/markdownlint-test-scenarios.js.md index 4624d985..3deb92ed 100644 --- a/test/snapshots/markdownlint-test-scenarios.js.md +++ b/test/snapshots/markdownlint-test-scenarios.js.md @@ -4,6 +4,2168 @@ The actual snapshot is saved in `markdownlint-test-scenarios.js.snap`. Generated by [AVA](https://avajs.dev). +## 4-tabs-MD010.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 13, + ], + fixInfo: { + deleteCount: 13, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 1, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 2, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 27', + errorRange: [ + 27, + 3, + ], + fixInfo: { + deleteCount: 3, + editColumn: 27, + insertText: ' ', + }, + lineNumber: 3, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + ], + fixed: ` text␊ + text and text 2␊ + texts with trailing spaces ␊ + `, + } + +## MD001-MD010.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Expected: h3; Actual: h4', + errorRange: null, + fixInfo: null, + lineNumber: 3, + ruleDescription: 'Heading levels should only increment by one level at a time', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md001', + ruleNames: [ + 'MD001', + 'heading-increment', + 'header-increment', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: h1; Actual: h2', + errorRange: null, + fixInfo: null, + lineNumber: 1, + ruleDescription: 'First heading should be a top-level heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md002', + ruleNames: [ + 'MD002', + 'first-heading-h1', + 'first-header-h1', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: atx; Actual: atx_closed', + errorRange: null, + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Heading style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md003', + ruleNames: [ + 'MD003', + 'heading-style', + 'header-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: dash', + errorRange: [ + 1, + 2, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '*', + }, + lineNumber: 10, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md004', + ruleNames: [ + 'MD004', + 'ul-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1', + errorRange: [ + 1, + 3, + ], + fixInfo: null, + lineNumber: 8, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md005', + ruleNames: [ + 'MD005', + 'list-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 1; Actual: 0', + errorRange: [ + 1, + 3, + ], + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 23, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md005', + ruleNames: [ + 'MD005', + 'list-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: (3); Actual: (4)', + errorRange: [ + 1, + 5, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '', + }, + lineNumber: 29, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md005', + ruleNames: [ + 'MD005', + 'list-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1', + errorRange: [ + 1, + 3, + ], + fixInfo: { + deleteCount: 1, + }, + lineNumber: 12, + ruleDescription: 'Consider starting bulleted lists at the beginning of the line', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md006', + ruleNames: [ + 'MD006', + 'ul-start-left', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1', + errorRange: [ + 1, + 3, + ], + fixInfo: { + deleteCount: 1, + }, + lineNumber: 13, + ruleDescription: 'Consider starting bulleted lists at the beginning of the line', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md006', + ruleNames: [ + 'MD006', + 'ul-start-left', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1', + errorRange: [ + 1, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '', + }, + lineNumber: 8, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md007', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1', + errorRange: [ + 1, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '', + }, + lineNumber: 12, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md007', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1', + errorRange: [ + 1, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '', + }, + lineNumber: 13, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md007', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 1', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + }, + lineNumber: 15, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md009', + ruleNames: [ + 'MD009', + 'no-trailing-spaces', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 17, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + ], + fixed: `## One␊ + ␊ + #### Two␊ + ␊ + ### Three ###␊ + ␊ + * Alpha␊ + * Bravo␊ + ␊ + * Charlie␊ + ␊ + * Delta␊ + * Echo␊ + ␊ + Text␊ + ␊ + Text text␊ + ␊ + 1. One␊ + 2. Two␊ + 3. Three␊ + 4. Four␊ + 5. Five␊ + 6. Six␊ + 7. Seven␊ + 8. Eight␊ + 9. Nine␊ + 10. Ten␊ + 11. Eleven␊ + 12. Twelve␊ + `, + } + +## MD011-MD021.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: '(reversed)[link]', + errorRange: [ + 3, + 16, + ], + fixInfo: { + deleteCount: 16, + editColumn: 3, + insertText: '[reversed](link)', + }, + lineNumber: 5, + ruleDescription: 'Reversed link syntax', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md011', + ruleNames: [ + 'MD011', + 'no-reversed-links', + ], + }, + { + errorContext: null, + errorDetail: '(reversed)[link]', + errorRange: [ + 11, + 16, + ], + fixInfo: { + deleteCount: 16, + editColumn: 11, + insertText: '[reversed](link)', + }, + lineNumber: 26, + ruleDescription: 'Reversed link syntax', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md011', + ruleNames: [ + 'MD011', + 'no-reversed-links', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 1; Actual: 2', + errorRange: null, + fixInfo: { + deleteCount: -1, + }, + lineNumber: 7, + ruleDescription: 'Multiple consecutive blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md012', + ruleNames: [ + 'MD012', + 'no-multiple-blanks', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 80; Actual: 99', + errorRange: [ + 81, + 19, + ], + fixInfo: null, + lineNumber: 8, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md013', + ruleNames: [ + 'MD013', + 'line-length', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 40; Actual: 62', + errorRange: [ + 41, + 22, + ], + fixInfo: null, + lineNumber: 10, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md013', + ruleNames: [ + 'MD013', + 'line-length', + ], + }, + { + errorContext: '$ command with no output', + errorDetail: null, + errorRange: [ + 5, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 5, + }, + lineNumber: 12, + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md014', + ruleNames: [ + 'MD014', + 'commands-show-output', + ], + }, + { + errorContext: '##No space A', + errorDetail: null, + errorRange: [ + 1, + 3, + ], + fixInfo: { + editColumn: 3, + insertText: ' ', + }, + lineNumber: 14, + ruleDescription: 'No space after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md018', + ruleNames: [ + 'MD018', + 'no-missing-space-atx', + ], + }, + { + errorContext: '## Multiple spaces B', + errorDetail: null, + errorRange: [ + 1, + 5, + ], + fixInfo: { + deleteCount: 1, + editColumn: 3, + }, + lineNumber: 16, + ruleDescription: 'Multiple spaces after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md019', + ruleNames: [ + 'MD019', + 'no-multiple-space-atx', + ], + }, + { + errorContext: '##No space C ##', + errorDetail: null, + errorRange: [ + 1, + 3, + ], + fixInfo: { + deleteCount: 15, + editColumn: 1, + insertText: '## No space C ##', + }, + lineNumber: 18, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md020', + ruleNames: [ + 'MD020', + 'no-missing-space-closed-atx', + ], + }, + { + errorContext: '## No space D##', + errorDetail: null, + errorRange: [ + 13, + 3, + ], + fixInfo: { + deleteCount: 15, + editColumn: 1, + insertText: '## No space D ##', + }, + lineNumber: 20, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md020', + ruleNames: [ + 'MD020', + 'no-missing-space-closed-atx', + ], + }, + { + errorContext: '## Multiple spaces E ##', + errorDetail: null, + errorRange: [ + 1, + 5, + ], + fixInfo: { + deleteCount: 24, + editColumn: 1, + insertText: '## Multiple spaces E ##', + }, + lineNumber: 22, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md021', + ruleNames: [ + 'MD021', + 'no-multiple-space-closed-atx', + ], + }, + { + errorContext: '## Multiple spaces F ##', + errorDetail: null, + errorRange: [ + 20, + 5, + ], + fixInfo: { + deleteCount: 24, + editColumn: 1, + insertText: '## Multiple spaces F ##', + }, + lineNumber: 24, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md021', + ruleNames: [ + 'MD021', + 'no-multiple-space-closed-atx', + ], + }, + ], + fixed: `# Top level heading␊ + ␊ + ␊ + ␊ + A [reversed](link) example.␊ + ␊ + 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789␊ + ␊ + ## 123456789 123456789 123456789 123456789 123456789 123456789␊ + ␊ + command with no output␊ + ␊ + ## No space A␊ + ␊ + ## Multiple spaces B␊ + ␊ + ## No space C ##␊ + ␊ + ## No space D ##␊ + ␊ + ## Multiple spaces E ##␊ + ␊ + ## Multiple spaces F ##␊ + ␊ + *Another* [reversed](link) example.␊ + `, + } + +## MD022-MD030.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: '# Heading', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 2, + }, + lineNumber: 1, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', + ruleNames: [ + 'MD022', + 'blanks-around-headings', + 'blanks-around-headers', + ], + }, + { + errorContext: ' # Heading', + errorDetail: null, + errorRange: [ + 1, + 2, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + }, + lineNumber: 1, + ruleDescription: 'Headings must start at the beginning of the line', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md023', + ruleNames: [ + 'MD023', + 'heading-start-left', + 'header-start-left', + ], + }, + { + errorContext: '# Heading', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 4, + ruleDescription: 'Multiple headings with the same content', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md024', + ruleNames: [ + 'MD024', + 'no-duplicate-heading', + 'no-duplicate-header', + ], + }, + { + errorContext: '# Heading', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 4, + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md025', + ruleNames: [ + 'MD025', + 'single-title', + 'single-h1', + ], + }, + { + errorContext: null, + errorDetail: 'Punctuation: \'.\'', + errorRange: [ + 19, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 19, + }, + lineNumber: 6, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md026', + ruleNames: [ + 'MD026', + 'no-trailing-punctuation', + ], + }, + { + errorContext: '> Multiple spaces', + errorDetail: null, + errorRange: [ + 1, + 4, + ], + fixInfo: { + deleteCount: 1, + editColumn: 2, + }, + lineNumber: 8, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md027', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: '> > Multiple spaces, multiple...', + errorDetail: null, + errorRange: [ + 1, + 6, + ], + fixInfo: { + deleteCount: 1, + editColumn: 4, + }, + lineNumber: 15, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md027', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: '> > > Multiple spaces, multip...', + errorDetail: null, + errorRange: [ + 1, + 8, + ], + fixInfo: { + deleteCount: 1, + editColumn: 6, + }, + lineNumber: 17, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md027', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: '> > > Multiple spaces, multip...', + errorDetail: null, + errorRange: [ + 1, + 4, + ], + fixInfo: { + deleteCount: 1, + editColumn: 2, + }, + lineNumber: 19, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md027', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: null, + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 9, + ruleDescription: 'Blank line inside blockquote', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md028', + ruleNames: [ + 'MD028', + 'no-blanks-blockquote', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 2; Actual: 3; Style: 1/2/3', + errorRange: [ + 1, + 4, + ], + fixInfo: null, + lineNumber: 13, + ruleDescription: 'Ordered list item prefix', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', + ruleNames: [ + 'MD029', + 'ol-prefix', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 1; Actual: 2', + errorRange: [ + 1, + 4, + ], + fixInfo: { + deleteCount: 2, + editColumn: 3, + insertText: ' ', + }, + lineNumber: 13, + ruleDescription: 'Spaces after list markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md030', + ruleNames: [ + 'MD030', + 'list-marker-space', + ], + }, + ], + fixed: `# Heading␊ + ␊ + Text␊ + ␊ + # Heading␊ + ␊ + ## Another heading␊ + ␊ + > Multiple spaces␊ + ␊ + > Blank line above␊ + ␊ + 1. Alpha␊ + 3. Beta␊ + ␊ + > > Multiple spaces, multiple blockquotes␊ + > >␊ + > > > Multiple spaces, multiple blockquotes␊ + > > >␊ + > > > Multiple spaces, multiple blockquotes␊ + `, + } + +## MD030-warning-message.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Expected: 1; Actual: 2', + errorRange: [ + 1, + 3, + ], + fixInfo: { + deleteCount: 2, + editColumn: 2, + insertText: ' ', + }, + lineNumber: 19, + ruleDescription: 'Spaces after list markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md030', + ruleNames: [ + 'MD030', + 'list-marker-space', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 1; Actual: 2', + errorRange: [ + 1, + 4, + ], + fixInfo: { + deleteCount: 2, + editColumn: 3, + insertText: ' ', + }, + lineNumber: 21, + ruleDescription: 'Spaces after list markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md030', + ruleNames: [ + 'MD030', + 'list-marker-space', + ], + }, + ], + fixed: `#␊ + ␊ + -␊ + (bare list item marker)␊ + ␊ + 1.␊ + (bare list item marker)␊ + ␊ + -a␊ + (not a list item)␊ + ␊ + 1.a␊ + (not a list item)␊ + ␊ + - a␊ + ␊ + 1. a␊ + ␊ + - a␊ + ␊ + 1. a␊ + `, + } + +## MD031-MD040.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: '```', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 4, + }, + lineNumber: 3, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md031', + ruleNames: [ + 'MD031', + 'blanks-around-fences', + ], + }, + { + errorContext: '* List', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `␊ + `, + }, + lineNumber: 4, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md032', + ruleNames: [ + 'MD032', + 'blanks-around-lists', + ], + }, + { + errorContext: '* List', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 48, + }, + lineNumber: 47, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md032', + ruleNames: [ + 'MD032', + 'blanks-around-lists', + ], + }, + { + errorContext: null, + errorDetail: 'Element: hr', + errorRange: [ + 7, + 5, + ], + fixInfo: null, + lineNumber: 6, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: 'https://example.com', + errorDetail: null, + errorRange: [ + 6, + 19, + ], + fixInfo: { + deleteCount: 19, + editColumn: 6, + insertText: '', + }, + lineNumber: 8, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: ---; Actual: ***', + errorRange: null, + fixInfo: null, + lineNumber: 11, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md035', + ruleNames: [ + 'MD035', + 'hr-style', + ], + }, + { + errorContext: 'Emphasis', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 13, + ruleDescription: 'Emphasis used instead of a heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md036', + ruleNames: [ + 'MD036', + 'no-emphasis-as-heading', + 'no-emphasis-as-header', + ], + }, + { + errorContext: '* inside *', + errorDetail: null, + errorRange: [ + 7, + 10, + ], + fixInfo: { + deleteCount: 10, + editColumn: 7, + insertText: '*inside*', + }, + lineNumber: 15, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: '* some*', + errorDetail: null, + errorRange: [ + 17, + 7, + ], + fixInfo: { + deleteCount: 7, + editColumn: 17, + insertText: '*some*', + }, + lineNumber: 31, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: '*some *', + errorDetail: null, + errorRange: [ + 17, + 7, + ], + fixInfo: { + deleteCount: 7, + editColumn: 17, + insertText: '*some*', + }, + lineNumber: 32, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: '**some **', + errorDetail: null, + errorRange: [ + 17, + 9, + ], + fixInfo: { + deleteCount: 9, + editColumn: 17, + insertText: '**some**', + }, + lineNumber: 33, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: '_ some_', + errorDetail: null, + errorRange: [ + 17, + 7, + ], + fixInfo: { + deleteCount: 7, + editColumn: 17, + insertText: '_some_', + }, + lineNumber: 34, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: '__ some __', + errorDetail: null, + errorRange: [ + 19, + 10, + ], + fixInfo: { + deleteCount: 10, + editColumn: 19, + insertText: '__some__', + }, + lineNumber: 35, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: '* inside', + errorDetail: null, + errorRange: [ + 7, + 8, + ], + fixInfo: { + deleteCount: 8, + editColumn: 7, + insertText: '*inside', + }, + lineNumber: 62, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'multi-line *', + errorDetail: null, + errorRange: [ + 1, + 12, + ], + fixInfo: { + deleteCount: 12, + editColumn: 1, + insertText: 'multi-line*', + }, + lineNumber: 63, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: '` inside`', + errorDetail: null, + errorRange: [ + 7, + 9, + ], + fixInfo: { + deleteCount: 7, + editColumn: 8, + insertText: 'inside', + }, + lineNumber: 17, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`` inside``', + errorDetail: null, + errorRange: [ + 7, + 11, + ], + fixInfo: { + deleteCount: 7, + editColumn: 9, + insertText: 'inside', + }, + lineNumber: 24, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '` code`', + errorDetail: null, + errorRange: [ + 19, + 7, + ], + fixInfo: { + deleteCount: 5, + editColumn: 20, + insertText: 'code', + }, + lineNumber: 25, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '` elements`', + errorDetail: null, + errorRange: [ + 26, + 11, + ], + fixInfo: { + deleteCount: 9, + editColumn: 27, + insertText: 'elements', + }, + lineNumber: 26, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`` code``', + errorDetail: null, + errorRange: [ + 21, + 9, + ], + fixInfo: { + deleteCount: 5, + editColumn: 23, + insertText: 'code', + }, + lineNumber: 27, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`` ` embedded backtick``', + errorDetail: null, + errorRange: [ + 1, + 25, + ], + fixInfo: { + deleteCount: 21, + editColumn: 3, + insertText: ' ` embedded backtick', + }, + lineNumber: 28, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '``embedded backtick` ``', + errorDetail: null, + errorRange: [ + 1, + 24, + ], + fixInfo: { + deleteCount: 20, + editColumn: 3, + insertText: 'embedded backtick` ', + }, + lineNumber: 29, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '` code', + errorDetail: null, + errorRange: [ + 6, + 6, + ], + fixInfo: { + deleteCount: 5, + editColumn: 7, + insertText: 'code', + }, + lineNumber: 38, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: 'span `', + errorDetail: null, + errorRange: [ + 1, + 7, + ], + fixInfo: { + deleteCount: 6, + editColumn: 1, + insertText: 'span', + }, + lineNumber: 44, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: 'span code ```', + errorDetail: null, + errorRange: [ + 1, + 13, + ], + fixInfo: { + deleteCount: 10, + editColumn: 1, + insertText: 'span code', + }, + lineNumber: 53, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '```` code', + errorDetail: null, + errorRange: [ + 11, + 9, + ], + fixInfo: { + deleteCount: 5, + editColumn: 15, + insertText: 'code', + }, + lineNumber: 55, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '[ inside ]', + errorDetail: null, + errorRange: [ + 7, + 10, + ], + fixInfo: { + deleteCount: 8, + editColumn: 8, + insertText: 'inside', + }, + lineNumber: 19, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '[ space]', + errorDetail: null, + errorRange: [ + 6, + 8, + ], + fixInfo: { + deleteCount: 6, + editColumn: 7, + insertText: 'space', + }, + lineNumber: 60, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '[space ]', + errorDetail: null, + errorRange: [ + 26, + 8, + ], + fixInfo: { + deleteCount: 6, + editColumn: 27, + insertText: 'space', + }, + lineNumber: 60, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '[ space ]', + errorDetail: null, + errorRange: [ + 46, + 9, + ], + fixInfo: { + deleteCount: 7, + editColumn: 47, + insertText: 'space', + }, + lineNumber: 60, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '```', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 21, + ruleDescription: 'Fenced code blocks should have a language specified', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md040', + ruleNames: [ + 'MD040', + 'fenced-code-language', + ], + }, + ], + fixed: `\`\`\`js␊ + debugger;␊ + \`\`\`␊ + ␊ + * List␊ + ␊ + Inline
HTML␊ + ␊ + Bare link␊ + ␊ + ---␊ + ***␊ + ␊ + *Emphasis*␊ + ␊ + Space *inside* emphasis␊ + ␊ + Space \`inside\` code span␊ + ␊ + Space [inside](link) text␊ + ␊ + \`\`\`␊ + \`\`\`␊ + ␊ + space \`\`inside\`\` code␊ + space \`inside\` of \`code\` elements␊ + \`space\` inside \`of\` code \`elements\`␊ + space \`\`inside\`\` of \`\`code\`\` elements␊ + \`\` \` embedded backtick\`\`␊ + \`\`embedded backtick\` \`\`␊ + ␊ + some *space* in *some* emphasis␊ + some *space* in *some* emphasis␊ + some *space* in **some** emphasis␊ + some _space_ in _some_ emphasis␊ + some __space__ in __some__ emphasis␊ + ␊ + Text␊ + text \`code␊ + span\` text␊ + text.␊ + ␊ + Text␊ + text \`code␊ + span\` text␊ + text.␊ + ␊ + * List␊ + ␊ + ---␊ + ␊ + Text␊ + text \`\`\`code␊ + span code␊ + span code\`\`\` text␊ + text␊ + text text \`\`\`\`code␊ + span code␊ + span\`\`\`\` text␊ + text.␊ + ␊ + Text [space](link) text [space](link) text [space](link) text.␊ + ␊ + Space *inside␊ + multi-line* emphasis.␊ + `, + } + +## MD041-MD050.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: 'Not a heading', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 1, + ruleDescription: 'First line in a file should be a top-level heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md041', + ruleNames: [ + 'MD041', + 'first-line-heading', + 'first-line-h1', + ], + }, + { + errorContext: '[empty]()', + errorDetail: null, + errorRange: [ + 4, + 9, + ], + fixInfo: null, + lineNumber: 3, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md042', + ruleNames: [ + 'MD042', + 'no-empty-links', + ], + }, + { + errorContext: '[empty](#)', + errorDetail: null, + errorRange: [ + 4, + 10, + ], + fixInfo: null, + lineNumber: 5, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md042', + ruleNames: [ + 'MD042', + 'no-empty-links', + ], + }, + { + errorContext: '[empty](<>)', + errorDetail: null, + errorRange: [ + 4, + 11, + ], + fixInfo: null, + lineNumber: 7, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md042', + ruleNames: [ + 'MD042', + 'no-empty-links', + ], + }, + { + errorContext: '[empty one]()', + errorDetail: null, + errorRange: [ + 25, + 13, + ], + fixInfo: null, + lineNumber: 17, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md042', + ruleNames: [ + 'MD042', + 'no-empty-links', + ], + }, + { + errorContext: '# Heading', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 49, + ruleDescription: 'Required heading structure', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md043', + ruleNames: [ + 'MD043', + 'required-headings', + 'required-headers', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: markdownlint; Actual: MARKDOWNLINT', + errorRange: [ + 29, + 12, + ], + fixInfo: { + deleteCount: 12, + editColumn: 29, + insertText: 'markdownlint', + }, + lineNumber: 9, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: markdownlint; Actual: Markdownlint', + errorRange: [ + 7, + 12, + ], + fixInfo: { + deleteCount: 12, + editColumn: 7, + insertText: 'markdownlint', + }, + lineNumber: 12, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: markdownlint; Actual: MarkDownLint', + errorRange: [ + 1, + 12, + ], + fixInfo: { + deleteCount: 12, + editColumn: 1, + insertText: 'markdownlint', + }, + lineNumber: 15, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 19, + ruleDescription: 'Images should have alternate text (alt text)', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md045', + ruleNames: [ + 'MD045', + 'no-alt-text', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: fenced; Actual: indented', + errorRange: null, + fixInfo: null, + lineNumber: 25, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md046', + ruleNames: [ + 'MD046', + 'code-block-style', + ], + }, + { + errorContext: null, + errorDetail: null, + errorRange: [ + 25, + 1, + ], + fixInfo: { + editColumn: 26, + insertText: `␊ + `, + }, + lineNumber: 49, + ruleDescription: 'Files should end with a single newline character', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md047', + ruleNames: [ + 'MD047', + 'single-trailing-newline', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: backtick; Actual: tilde', + errorRange: null, + fixInfo: null, + lineNumber: 27, + ruleDescription: 'Code fence style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md048', + ruleNames: [ + 'MD048', + 'code-fence-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 21, + 6, + ], + fixInfo: { + deleteCount: 6, + editColumn: 21, + insertText: '*this*', + }, + lineNumber: 31, + ruleDescription: 'Emphasis style should be consistent', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md049', + ruleNames: [ + 'MD049', + 'emphasis-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 49, + 8, + ], + fixInfo: { + deleteCount: 8, + editColumn: 49, + insertText: '*issues*', + }, + lineNumber: 31, + ruleDescription: 'Emphasis style should be consistent', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md049', + ruleNames: [ + 'MD049', + 'emphasis-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: null, + fixInfo: null, + lineNumber: 36, + ruleDescription: 'Emphasis style should be consistent', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md049', + ruleNames: [ + 'MD049', + 'emphasis-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 14, + 8, + ], + fixInfo: { + deleteCount: 8, + editColumn: 14, + insertText: '*double*', + }, + lineNumber: 45, + ruleDescription: 'Emphasis style should be consistent', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md049', + ruleNames: [ + 'MD049', + 'emphasis-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 28, + 13, + ], + fixInfo: { + deleteCount: 13, + editColumn: 28, + insertText: '*interleaved*', + }, + lineNumber: 45, + ruleDescription: 'Emphasis style should be consistent', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md049', + ruleNames: [ + 'MD049', + 'emphasis-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 47, + 8, + ], + fixInfo: { + deleteCount: 8, + editColumn: 47, + insertText: '*double*', + }, + lineNumber: 45, + ruleDescription: 'Emphasis style should be consistent', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md049', + ruleNames: [ + 'MD049', + 'emphasis-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 56, + 13, + ], + fixInfo: { + deleteCount: 13, + editColumn: 56, + insertText: '*interleaved*', + }, + lineNumber: 45, + ruleDescription: 'Emphasis style should be consistent', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md049', + ruleNames: [ + 'MD049', + 'emphasis-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 30, + 8, + ], + fixInfo: { + deleteCount: 8, + editColumn: 30, + insertText: '__this__', + }, + lineNumber: 33, + ruleDescription: 'Strong style should be consistent', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md050', + ruleNames: [ + 'MD050', + 'strong-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 62, + 10, + ], + fixInfo: { + deleteCount: 10, + editColumn: 62, + insertText: '__issues__', + }, + lineNumber: 33, + ruleDescription: 'Strong style should be consistent', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md050', + ruleNames: [ + 'MD050', + 'strong-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: null, + fixInfo: null, + lineNumber: 41, + ruleDescription: 'Strong style should be consistent', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md050', + ruleNames: [ + 'MD050', + 'strong-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 14, + 10, + ], + fixInfo: { + deleteCount: 10, + editColumn: 14, + insertText: '__double__', + }, + lineNumber: 47, + ruleDescription: 'Strong style should be consistent', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md050', + ruleNames: [ + 'MD050', + 'strong-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 30, + 15, + ], + fixInfo: { + deleteCount: 15, + editColumn: 30, + insertText: '__interleaved__', + }, + lineNumber: 47, + ruleDescription: 'Strong style should be consistent', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md050', + ruleNames: [ + 'MD050', + 'strong-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 51, + 10, + ], + fixInfo: { + deleteCount: 10, + editColumn: 51, + insertText: '__double__', + }, + lineNumber: 47, + ruleDescription: 'Strong style should be consistent', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md050', + ruleNames: [ + 'MD050', + 'strong-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 62, + 15, + ], + fixInfo: { + deleteCount: 15, + editColumn: 62, + insertText: '__interleaved__', + }, + lineNumber: 47, + ruleDescription: 'Strong style should be consistent', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md050', + ruleNames: [ + 'MD050', + 'strong-style', + ], + }, + ], + fixed: `Not a heading␊ + ␊ + An [empty]() link␊ + ␊ + An [empty](#) link with fragment␊ + ␊ + An [empty](<>) link with angle brackets␊ + ␊ + This is a test file for the markdownlint package.␊ + ␊ + This is a paragraph␊ + about markdownlint␊ + that capitalizes the␊ + name wrong twice:␊ + markdownlint.␊ + ␊ + A [normal](link) and an [empty one]() and a [fragment](#one).␊ + ␊ + An image without alternate text ![](image.jpg)␊ + ␊ + \`\`\`text␊ + Fenced code␊ + \`\`\`␊ + ␊ + Indented code␊ + ␊ + ~~~text␊ + Fenced code␊ + ~~~␊ + ␊ + Mixed *emphasis* on *this* line *with* multiple *issues*␊ + ␊ + Mixed __strong emphasis__ on __this__ line __with__ multiple __issues__␊ + ␊ + Inconsistent␊ + emphasis _text␊ + spanning_ many␊ + lines␊ + ␊ + Inconsistent␊ + strong **emphasis␊ + spanning** many␊ + lines␊ + ␊ + Inconsistent *double* text *interleaved* text *double* *interleaved* emphasis.␊ + ␊ + Inconsistent __double__ text __interleaved__ text __double__ __interleaved__ strong emphasis.␊ + ␊ + Missing newline character␊ + `, + } + +## MD051-MD060.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: '[link with a missing](#fragment)', + errorDetail: null, + errorRange: [ + 3, + 32, + ], + fixInfo: null, + lineNumber: 3, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md051', + ruleNames: [ + 'MD051', + 'link-fragments', + ], + }, + ], + fixed: `# detailed-results-MD051-MD060␊ + ␊ + A [link with a missing](#fragment)␊ + `, + } + ## alternate_top_level_heading.md > Snapshot 1 @@ -556,6 +2718,405 @@ Generated by [AVA](https://avajs.dev). `, } +## bare-urls.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: 'https://example.com', + errorDetail: null, + errorRange: [ + 15, + 19, + ], + fixInfo: { + deleteCount: 19, + editColumn: 15, + insertText: '', + }, + lineNumber: 3, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com/', + errorDetail: null, + errorRange: [ + 15, + 20, + ], + fixInfo: { + deleteCount: 20, + editColumn: 15, + insertText: '', + }, + lineNumber: 5, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com/?query=str...', + errorDetail: null, + errorRange: [ + 15, + 38, + ], + fixInfo: { + deleteCount: 38, + editColumn: 15, + insertText: '', + }, + lineNumber: 7, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com/info.htm', + errorDetail: null, + errorRange: [ + 15, + 28, + ], + fixInfo: { + deleteCount: 28, + editColumn: 15, + insertText: '', + }, + lineNumber: 9, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com', + errorDetail: null, + errorRange: [ + 7, + 19, + ], + fixInfo: { + deleteCount: 19, + editColumn: 7, + insertText: '', + }, + lineNumber: 11, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com', + errorDetail: null, + errorRange: [ + 11, + 19, + ], + fixInfo: { + deleteCount: 19, + editColumn: 11, + insertText: '', + }, + lineNumber: 13, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + ], + fixed: `# Detailed Results Bare URLs␊ + ␊ + For more, see .␊ + ␊ + For more, see .␊ + ␊ + For more, see .␊ + ␊ + For more, see .␊ + ␊ + Visit , then refresh.␊ + ␊ + The site () is down.␊ + `, + } + +## blanks-around-headings-0-2.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: '## Banana', + errorDetail: 'Expected: 2; Actual: 1; Below', + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 9, + }, + lineNumber: 8, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', + ruleNames: [ + 'MD022', + 'blanks-around-headings', + 'blanks-around-headers', + ], + }, + { + errorContext: 'Elderberry', + errorDetail: 'Expected: 2; Actual: 0; Below', + errorRange: null, + fixInfo: { + insertText: `␊ + ␊ + `, + lineNumber: 23, + }, + lineNumber: 21, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', + ruleNames: [ + 'MD022', + 'blanks-around-headings', + 'blanks-around-headers', + ], + }, + ], + fixed: `# Blanks Around Headings␊ + ␊ + ␊ + ## Apple␊ + ␊ + ␊ + Text␊ + ## Banana␊ + ␊ + ␊ + Text␊ + ## Cherry␊ + ␊ + ␊ + Text␊ + ## Durian ##␊ + ␊ + ␊ + Text␊ + ␊ + ---␊ + Elderberry␊ + ----------␊ + ␊ + ␊ + Text␊ + ## Fig␊ + `, + } + +## blanks-around-headings-3-0.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: '## Durian ##', + errorDetail: 'Expected: 3; Actual: 2; Above', + errorRange: null, + fixInfo: { + insertText: `␊ + `, + }, + lineNumber: 19, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', + ruleNames: [ + 'MD022', + 'blanks-around-headings', + 'blanks-around-headers', + ], + }, + { + errorContext: 'Elderberry', + errorDetail: 'Expected: 3; Actual: 1; Above', + errorRange: null, + fixInfo: { + insertText: `␊ + ␊ + `, + }, + lineNumber: 22, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', + ruleNames: [ + 'MD022', + 'blanks-around-headings', + 'blanks-around-headers', + ], + }, + ], + fixed: `# Blanks Around Headings␊ + ␊ + ␊ + ␊ + ## Apple␊ + Text␊ + ␊ + ␊ + ␊ + ## Banana␊ + Text␊ + ␊ + ␊ + ␊ + ## Cherry␊ + Text␊ + ␊ + ␊ + ␊ + ## Durian ##␊ + Text␊ + ␊ + ␊ + ␊ + Elderberry␊ + ----------␊ + Text␊ + ␊ + ␊ + ␊ + ## Fig␊ + `, + } + +## blanks-around-headings.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: '## Banana', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 8, + }, + lineNumber: 7, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', + ruleNames: [ + 'MD022', + 'blanks-around-headings', + 'blanks-around-headers', + ], + }, + { + errorContext: '## Durian ##', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, + fixInfo: { + insertText: `␊ + `, + }, + lineNumber: 13, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', + ruleNames: [ + 'MD022', + 'blanks-around-headings', + 'blanks-around-headers', + ], + }, + { + errorContext: 'Elderberry', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, + fixInfo: { + insertText: `␊ + `, + }, + lineNumber: 18, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', + ruleNames: [ + 'MD022', + 'blanks-around-headings', + 'blanks-around-headers', + ], + }, + { + errorContext: 'Elderberry', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 20, + }, + lineNumber: 18, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', + ruleNames: [ + 'MD022', + 'blanks-around-headings', + 'blanks-around-headers', + ], + }, + ], + fixed: `# Blanks Around Headings␊ + ␊ + ## Apple␊ + ␊ + Text␊ + ␊ + ## Banana␊ + ␊ + Text␊ + ␊ + ## Cherry␊ + ␊ + Text␊ + ␊ + ## Durian ##␊ + ␊ + Text␊ + ␊ + ---␊ + ␊ + Elderberry␊ + ----------␊ + ␊ + Text␊ + ␊ + ## Fig␊ + `, + } + ## blanks-around.md > Snapshot 1 @@ -4516,6 +7077,142 @@ Generated by [AVA](https://avajs.dev). `, } +## code-fences-in-blockquotes.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: '```markdown', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 4, + }, + lineNumber: 4, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md031', + ruleNames: [ + 'MD031', + 'blanks-around-fences', + ], + }, + { + errorContext: '```', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 7, + }, + lineNumber: 6, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md031', + ruleNames: [ + 'MD031', + 'blanks-around-fences', + ], + }, + { + errorContext: '> ```markdown', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `>␊ + `, + lineNumber: 10, + }, + lineNumber: 10, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md031', + ruleNames: [ + 'MD031', + 'blanks-around-fences', + ], + }, + { + errorContext: '> ```', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `>␊ + `, + lineNumber: 13, + }, + lineNumber: 12, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md031', + ruleNames: [ + 'MD031', + 'blanks-around-fences', + ], + }, + { + errorContext: '> > ```markdown', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `> >␊ + `, + lineNumber: 15, + }, + lineNumber: 15, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md031', + ruleNames: [ + 'MD031', + 'blanks-around-fences', + ], + }, + { + errorContext: '> > ```', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `> >␊ + `, + lineNumber: 18, + }, + lineNumber: 17, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md031', + ruleNames: [ + 'MD031', + 'blanks-around-fences', + ], + }, + ], + fixed: `# Detailed Results Code Fences in Blockquotes␊ + ␊ + Text␊ + ␊ + \`\`\`markdown␊ + Text␊ + \`\`\`␊ + ␊ + Text␊ + ␊ + > Text␊ + >␊ + > \`\`\`markdown␊ + > Text␊ + > \`\`\`␊ + >␊ + > Text␊ + > > Text␊ + > >␊ + > > \`\`\`markdown␊ + > > Text␊ + > > \`\`\`␊ + > >␊ + > > Text␊ + `, + } + ## code-with-tabs-allowed.md > Snapshot 1 @@ -5615,2704 +8312,7 @@ Generated by [AVA](https://avajs.dev). `, } -## detailed-results-4-tabs-MD010.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 13, - ], - fixInfo: { - deleteCount: 13, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 1, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010', - ruleNames: [ - 'MD010', - 'no-hard-tabs', - ], - }, - { - errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 2, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010', - ruleNames: [ - 'MD010', - 'no-hard-tabs', - ], - }, - { - errorContext: null, - errorDetail: 'Column: 27', - errorRange: [ - 27, - 3, - ], - fixInfo: { - deleteCount: 3, - editColumn: 27, - insertText: ' ', - }, - lineNumber: 3, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010', - ruleNames: [ - 'MD010', - 'no-hard-tabs', - ], - }, - ], - fixed: ` text␊ - text and text 2␊ - texts with trailing spaces ␊ - `, - } - -## detailed-results-MD001-MD010.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Expected: h3; Actual: h4', - errorRange: null, - fixInfo: null, - lineNumber: 3, - ruleDescription: 'Heading levels should only increment by one level at a time', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md001', - ruleNames: [ - 'MD001', - 'heading-increment', - 'header-increment', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: h1; Actual: h2', - errorRange: null, - fixInfo: null, - lineNumber: 1, - ruleDescription: 'First heading should be a top-level heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md002', - ruleNames: [ - 'MD002', - 'first-heading-h1', - 'first-header-h1', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: atx; Actual: atx_closed', - errorRange: null, - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Heading style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md003', - ruleNames: [ - 'MD003', - 'heading-style', - 'header-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: dash', - errorRange: [ - 1, - 2, - ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '*', - }, - lineNumber: 10, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md004', - ruleNames: [ - 'MD004', - 'ul-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', - errorRange: [ - 1, - 3, - ], - fixInfo: null, - lineNumber: 8, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md005', - ruleNames: [ - 'MD005', - 'list-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 0', - errorRange: [ - 1, - 3, - ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 23, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md005', - ruleNames: [ - 'MD005', - 'list-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: (3); Actual: (4)', - errorRange: [ - 1, - 5, - ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', - }, - lineNumber: 29, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md005', - ruleNames: [ - 'MD005', - 'list-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', - errorRange: [ - 1, - 3, - ], - fixInfo: { - deleteCount: 1, - }, - lineNumber: 12, - ruleDescription: 'Consider starting bulleted lists at the beginning of the line', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md006', - ruleNames: [ - 'MD006', - 'ul-start-left', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', - errorRange: [ - 1, - 3, - ], - fixInfo: { - deleteCount: 1, - }, - lineNumber: 13, - ruleDescription: 'Consider starting bulleted lists at the beginning of the line', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md006', - ruleNames: [ - 'MD006', - 'ul-start-left', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', - errorRange: [ - 1, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', - }, - lineNumber: 8, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md007', - ruleNames: [ - 'MD007', - 'ul-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', - errorRange: [ - 1, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', - }, - lineNumber: 12, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md007', - ruleNames: [ - 'MD007', - 'ul-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', - errorRange: [ - 1, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', - }, - lineNumber: 13, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md007', - ruleNames: [ - 'MD007', - 'ul-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 1', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - }, - lineNumber: 15, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md009', - ruleNames: [ - 'MD009', - 'no-trailing-spaces', - ], - }, - { - errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 17, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010', - ruleNames: [ - 'MD010', - 'no-hard-tabs', - ], - }, - ], - fixed: `## One␊ - ␊ - #### Two␊ - ␊ - ### Three ###␊ - ␊ - * Alpha␊ - * Bravo␊ - ␊ - * Charlie␊ - ␊ - * Delta␊ - * Echo␊ - ␊ - Text␊ - ␊ - Text text␊ - ␊ - 1. One␊ - 2. Two␊ - 3. Three␊ - 4. Four␊ - 5. Five␊ - 6. Six␊ - 7. Seven␊ - 8. Eight␊ - 9. Nine␊ - 10. Ten␊ - 11. Eleven␊ - 12. Twelve␊ - `, - } - -## detailed-results-MD011-MD021.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: '(reversed)[link]', - errorRange: [ - 3, - 16, - ], - fixInfo: { - deleteCount: 16, - editColumn: 3, - insertText: '[reversed](link)', - }, - lineNumber: 5, - ruleDescription: 'Reversed link syntax', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md011', - ruleNames: [ - 'MD011', - 'no-reversed-links', - ], - }, - { - errorContext: null, - errorDetail: '(reversed)[link]', - errorRange: [ - 11, - 16, - ], - fixInfo: { - deleteCount: 16, - editColumn: 11, - insertText: '[reversed](link)', - }, - lineNumber: 26, - ruleDescription: 'Reversed link syntax', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md011', - ruleNames: [ - 'MD011', - 'no-reversed-links', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', - errorRange: null, - fixInfo: { - deleteCount: -1, - }, - lineNumber: 7, - ruleDescription: 'Multiple consecutive blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md012', - ruleNames: [ - 'MD012', - 'no-multiple-blanks', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 80; Actual: 99', - errorRange: [ - 81, - 19, - ], - fixInfo: null, - lineNumber: 8, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md013', - ruleNames: [ - 'MD013', - 'line-length', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 40; Actual: 62', - errorRange: [ - 41, - 22, - ], - fixInfo: null, - lineNumber: 10, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md013', - ruleNames: [ - 'MD013', - 'line-length', - ], - }, - { - errorContext: '$ command with no output', - errorDetail: null, - errorRange: [ - 5, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 5, - }, - lineNumber: 12, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md014', - ruleNames: [ - 'MD014', - 'commands-show-output', - ], - }, - { - errorContext: '##No space A', - errorDetail: null, - errorRange: [ - 1, - 3, - ], - fixInfo: { - editColumn: 3, - insertText: ' ', - }, - lineNumber: 14, - ruleDescription: 'No space after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md018', - ruleNames: [ - 'MD018', - 'no-missing-space-atx', - ], - }, - { - errorContext: '## Multiple spaces B', - errorDetail: null, - errorRange: [ - 1, - 5, - ], - fixInfo: { - deleteCount: 1, - editColumn: 3, - }, - lineNumber: 16, - ruleDescription: 'Multiple spaces after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md019', - ruleNames: [ - 'MD019', - 'no-multiple-space-atx', - ], - }, - { - errorContext: '##No space C ##', - errorDetail: null, - errorRange: [ - 1, - 3, - ], - fixInfo: { - deleteCount: 15, - editColumn: 1, - insertText: '## No space C ##', - }, - lineNumber: 18, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md020', - ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', - ], - }, - { - errorContext: '## No space D##', - errorDetail: null, - errorRange: [ - 13, - 3, - ], - fixInfo: { - deleteCount: 15, - editColumn: 1, - insertText: '## No space D ##', - }, - lineNumber: 20, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md020', - ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', - ], - }, - { - errorContext: '## Multiple spaces E ##', - errorDetail: null, - errorRange: [ - 1, - 5, - ], - fixInfo: { - deleteCount: 24, - editColumn: 1, - insertText: '## Multiple spaces E ##', - }, - lineNumber: 22, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md021', - ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', - ], - }, - { - errorContext: '## Multiple spaces F ##', - errorDetail: null, - errorRange: [ - 20, - 5, - ], - fixInfo: { - deleteCount: 24, - editColumn: 1, - insertText: '## Multiple spaces F ##', - }, - lineNumber: 24, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md021', - ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', - ], - }, - ], - fixed: `# Top level heading␊ - ␊ - ␊ - ␊ - A [reversed](link) example.␊ - ␊ - 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789␊ - ␊ - ## 123456789 123456789 123456789 123456789 123456789 123456789␊ - ␊ - command with no output␊ - ␊ - ## No space A␊ - ␊ - ## Multiple spaces B␊ - ␊ - ## No space C ##␊ - ␊ - ## No space D ##␊ - ␊ - ## Multiple spaces E ##␊ - ␊ - ## Multiple spaces F ##␊ - ␊ - *Another* [reversed](link) example.␊ - `, - } - -## detailed-results-MD022-MD030.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: '# Heading', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 2, - }, - lineNumber: 1, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - 'blanks-around-headers', - ], - }, - { - errorContext: ' # Heading', - errorDetail: null, - errorRange: [ - 1, - 2, - ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - }, - lineNumber: 1, - ruleDescription: 'Headings must start at the beginning of the line', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md023', - ruleNames: [ - 'MD023', - 'heading-start-left', - 'header-start-left', - ], - }, - { - errorContext: '# Heading', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 4, - ruleDescription: 'Multiple headings with the same content', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md024', - ruleNames: [ - 'MD024', - 'no-duplicate-heading', - 'no-duplicate-header', - ], - }, - { - errorContext: '# Heading', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 4, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md025', - ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', - ], - }, - { - errorContext: null, - errorDetail: 'Punctuation: \'.\'', - errorRange: [ - 19, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 19, - }, - lineNumber: 6, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md026', - ruleNames: [ - 'MD026', - 'no-trailing-punctuation', - ], - }, - { - errorContext: '> Multiple spaces', - errorDetail: null, - errorRange: [ - 1, - 4, - ], - fixInfo: { - deleteCount: 1, - editColumn: 2, - }, - lineNumber: 8, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md027', - ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', - ], - }, - { - errorContext: '> > Multiple spaces, multiple...', - errorDetail: null, - errorRange: [ - 1, - 6, - ], - fixInfo: { - deleteCount: 1, - editColumn: 4, - }, - lineNumber: 15, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md027', - ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', - ], - }, - { - errorContext: '> > > Multiple spaces, multip...', - errorDetail: null, - errorRange: [ - 1, - 8, - ], - fixInfo: { - deleteCount: 1, - editColumn: 6, - }, - lineNumber: 17, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md027', - ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', - ], - }, - { - errorContext: '> > > Multiple spaces, multip...', - errorDetail: null, - errorRange: [ - 1, - 4, - ], - fixInfo: { - deleteCount: 1, - editColumn: 2, - }, - lineNumber: 19, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md027', - ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', - ], - }, - { - errorContext: null, - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 9, - ruleDescription: 'Blank line inside blockquote', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md028', - ruleNames: [ - 'MD028', - 'no-blanks-blockquote', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 3; Style: 1/2/3', - errorRange: [ - 1, - 4, - ], - fixInfo: null, - lineNumber: 13, - ruleDescription: 'Ordered list item prefix', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', - ruleNames: [ - 'MD029', - 'ol-prefix', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', - errorRange: [ - 1, - 4, - ], - fixInfo: { - deleteCount: 2, - editColumn: 3, - insertText: ' ', - }, - lineNumber: 13, - ruleDescription: 'Spaces after list markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md030', - ruleNames: [ - 'MD030', - 'list-marker-space', - ], - }, - ], - fixed: `# Heading␊ - ␊ - Text␊ - ␊ - # Heading␊ - ␊ - ## Another heading␊ - ␊ - > Multiple spaces␊ - ␊ - > Blank line above␊ - ␊ - 1. Alpha␊ - 3. Beta␊ - ␊ - > > Multiple spaces, multiple blockquotes␊ - > >␊ - > > > Multiple spaces, multiple blockquotes␊ - > > >␊ - > > > Multiple spaces, multiple blockquotes␊ - `, - } - -## detailed-results-MD030-warning-message.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', - errorRange: [ - 1, - 3, - ], - fixInfo: { - deleteCount: 2, - editColumn: 2, - insertText: ' ', - }, - lineNumber: 19, - ruleDescription: 'Spaces after list markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md030', - ruleNames: [ - 'MD030', - 'list-marker-space', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', - errorRange: [ - 1, - 4, - ], - fixInfo: { - deleteCount: 2, - editColumn: 3, - insertText: ' ', - }, - lineNumber: 21, - ruleDescription: 'Spaces after list markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md030', - ruleNames: [ - 'MD030', - 'list-marker-space', - ], - }, - ], - fixed: `#␊ - ␊ - -␊ - (bare list item marker)␊ - ␊ - 1.␊ - (bare list item marker)␊ - ␊ - -a␊ - (not a list item)␊ - ␊ - 1.a␊ - (not a list item)␊ - ␊ - - a␊ - ␊ - 1. a␊ - ␊ - - a␊ - ␊ - 1. a␊ - `, - } - -## detailed-results-MD031-MD040.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: '```', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 4, - }, - lineNumber: 3, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md031', - ruleNames: [ - 'MD031', - 'blanks-around-fences', - ], - }, - { - errorContext: '* List', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 4, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md032', - ruleNames: [ - 'MD032', - 'blanks-around-lists', - ], - }, - { - errorContext: '* List', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 48, - }, - lineNumber: 47, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md032', - ruleNames: [ - 'MD032', - 'blanks-around-lists', - ], - }, - { - errorContext: null, - errorDetail: 'Element: hr', - errorRange: [ - 7, - 5, - ], - fixInfo: null, - lineNumber: 6, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: 'https://example.com', - errorDetail: null, - errorRange: [ - 6, - 19, - ], - fixInfo: { - deleteCount: 19, - editColumn: 6, - insertText: '', - }, - lineNumber: 8, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ***', - errorRange: null, - fixInfo: null, - lineNumber: 11, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md035', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: 'Emphasis', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 13, - ruleDescription: 'Emphasis used instead of a heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md036', - ruleNames: [ - 'MD036', - 'no-emphasis-as-heading', - 'no-emphasis-as-header', - ], - }, - { - errorContext: '* inside *', - errorDetail: null, - errorRange: [ - 7, - 10, - ], - fixInfo: { - deleteCount: 10, - editColumn: 7, - insertText: '*inside*', - }, - lineNumber: 15, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', - ruleNames: [ - 'MD037', - 'no-space-in-emphasis', - ], - }, - { - errorContext: '* some*', - errorDetail: null, - errorRange: [ - 17, - 7, - ], - fixInfo: { - deleteCount: 7, - editColumn: 17, - insertText: '*some*', - }, - lineNumber: 31, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', - ruleNames: [ - 'MD037', - 'no-space-in-emphasis', - ], - }, - { - errorContext: '*some *', - errorDetail: null, - errorRange: [ - 17, - 7, - ], - fixInfo: { - deleteCount: 7, - editColumn: 17, - insertText: '*some*', - }, - lineNumber: 32, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', - ruleNames: [ - 'MD037', - 'no-space-in-emphasis', - ], - }, - { - errorContext: '**some **', - errorDetail: null, - errorRange: [ - 17, - 9, - ], - fixInfo: { - deleteCount: 9, - editColumn: 17, - insertText: '**some**', - }, - lineNumber: 33, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', - ruleNames: [ - 'MD037', - 'no-space-in-emphasis', - ], - }, - { - errorContext: '_ some_', - errorDetail: null, - errorRange: [ - 17, - 7, - ], - fixInfo: { - deleteCount: 7, - editColumn: 17, - insertText: '_some_', - }, - lineNumber: 34, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', - ruleNames: [ - 'MD037', - 'no-space-in-emphasis', - ], - }, - { - errorContext: '__ some __', - errorDetail: null, - errorRange: [ - 19, - 10, - ], - fixInfo: { - deleteCount: 10, - editColumn: 19, - insertText: '__some__', - }, - lineNumber: 35, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', - ruleNames: [ - 'MD037', - 'no-space-in-emphasis', - ], - }, - { - errorContext: '* inside', - errorDetail: null, - errorRange: [ - 7, - 8, - ], - fixInfo: { - deleteCount: 8, - editColumn: 7, - insertText: '*inside', - }, - lineNumber: 62, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', - ruleNames: [ - 'MD037', - 'no-space-in-emphasis', - ], - }, - { - errorContext: 'multi-line *', - errorDetail: null, - errorRange: [ - 1, - 12, - ], - fixInfo: { - deleteCount: 12, - editColumn: 1, - insertText: 'multi-line*', - }, - lineNumber: 63, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md037', - ruleNames: [ - 'MD037', - 'no-space-in-emphasis', - ], - }, - { - errorContext: '` inside`', - errorDetail: null, - errorRange: [ - 7, - 9, - ], - fixInfo: { - deleteCount: 7, - editColumn: 8, - insertText: 'inside', - }, - lineNumber: 17, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', - ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - { - errorContext: '`` inside``', - errorDetail: null, - errorRange: [ - 7, - 11, - ], - fixInfo: { - deleteCount: 7, - editColumn: 9, - insertText: 'inside', - }, - lineNumber: 24, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', - ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - { - errorContext: '` code`', - errorDetail: null, - errorRange: [ - 19, - 7, - ], - fixInfo: { - deleteCount: 5, - editColumn: 20, - insertText: 'code', - }, - lineNumber: 25, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', - ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - { - errorContext: '` elements`', - errorDetail: null, - errorRange: [ - 26, - 11, - ], - fixInfo: { - deleteCount: 9, - editColumn: 27, - insertText: 'elements', - }, - lineNumber: 26, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', - ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - { - errorContext: '`` code``', - errorDetail: null, - errorRange: [ - 21, - 9, - ], - fixInfo: { - deleteCount: 5, - editColumn: 23, - insertText: 'code', - }, - lineNumber: 27, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', - ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - { - errorContext: '`` ` embedded backtick``', - errorDetail: null, - errorRange: [ - 1, - 25, - ], - fixInfo: { - deleteCount: 21, - editColumn: 3, - insertText: ' ` embedded backtick', - }, - lineNumber: 28, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', - ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - { - errorContext: '``embedded backtick` ``', - errorDetail: null, - errorRange: [ - 1, - 24, - ], - fixInfo: { - deleteCount: 20, - editColumn: 3, - insertText: 'embedded backtick` ', - }, - lineNumber: 29, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', - ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - { - errorContext: '` code', - errorDetail: null, - errorRange: [ - 6, - 6, - ], - fixInfo: { - deleteCount: 5, - editColumn: 7, - insertText: 'code', - }, - lineNumber: 38, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', - ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - { - errorContext: 'span `', - errorDetail: null, - errorRange: [ - 1, - 7, - ], - fixInfo: { - deleteCount: 6, - editColumn: 1, - insertText: 'span', - }, - lineNumber: 44, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', - ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - { - errorContext: 'span code ```', - errorDetail: null, - errorRange: [ - 1, - 13, - ], - fixInfo: { - deleteCount: 10, - editColumn: 1, - insertText: 'span code', - }, - lineNumber: 53, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', - ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - { - errorContext: '```` code', - errorDetail: null, - errorRange: [ - 11, - 9, - ], - fixInfo: { - deleteCount: 5, - editColumn: 15, - insertText: 'code', - }, - lineNumber: 55, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md038', - ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - { - errorContext: '[ inside ]', - errorDetail: null, - errorRange: [ - 7, - 10, - ], - fixInfo: { - deleteCount: 8, - editColumn: 8, - insertText: 'inside', - }, - lineNumber: 19, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '[ space]', - errorDetail: null, - errorRange: [ - 6, - 8, - ], - fixInfo: { - deleteCount: 6, - editColumn: 7, - insertText: 'space', - }, - lineNumber: 60, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '[space ]', - errorDetail: null, - errorRange: [ - 26, - 8, - ], - fixInfo: { - deleteCount: 6, - editColumn: 27, - insertText: 'space', - }, - lineNumber: 60, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '[ space ]', - errorDetail: null, - errorRange: [ - 46, - 9, - ], - fixInfo: { - deleteCount: 7, - editColumn: 47, - insertText: 'space', - }, - lineNumber: 60, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '```', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 21, - ruleDescription: 'Fenced code blocks should have a language specified', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md040', - ruleNames: [ - 'MD040', - 'fenced-code-language', - ], - }, - ], - fixed: `\`\`\`js␊ - debugger;␊ - \`\`\`␊ - ␊ - * List␊ - ␊ - Inline
HTML␊ - ␊ - Bare link␊ - ␊ - ---␊ - ***␊ - ␊ - *Emphasis*␊ - ␊ - Space *inside* emphasis␊ - ␊ - Space \`inside\` code span␊ - ␊ - Space [inside](link) text␊ - ␊ - \`\`\`␊ - \`\`\`␊ - ␊ - space \`\`inside\`\` code␊ - space \`inside\` of \`code\` elements␊ - \`space\` inside \`of\` code \`elements\`␊ - space \`\`inside\`\` of \`\`code\`\` elements␊ - \`\` \` embedded backtick\`\`␊ - \`\`embedded backtick\` \`\`␊ - ␊ - some *space* in *some* emphasis␊ - some *space* in *some* emphasis␊ - some *space* in **some** emphasis␊ - some _space_ in _some_ emphasis␊ - some __space__ in __some__ emphasis␊ - ␊ - Text␊ - text \`code␊ - span\` text␊ - text.␊ - ␊ - Text␊ - text \`code␊ - span\` text␊ - text.␊ - ␊ - * List␊ - ␊ - ---␊ - ␊ - Text␊ - text \`\`\`code␊ - span code␊ - span code\`\`\` text␊ - text␊ - text text \`\`\`\`code␊ - span code␊ - span\`\`\`\` text␊ - text.␊ - ␊ - Text [space](link) text [space](link) text [space](link) text.␊ - ␊ - Space *inside␊ - multi-line* emphasis.␊ - `, - } - -## detailed-results-MD041-MD050.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: 'Not a heading', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 1, - ruleDescription: 'First line in a file should be a top-level heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md041', - ruleNames: [ - 'MD041', - 'first-line-heading', - 'first-line-h1', - ], - }, - { - errorContext: '[empty]()', - errorDetail: null, - errorRange: [ - 4, - 9, - ], - fixInfo: null, - lineNumber: 3, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md042', - ruleNames: [ - 'MD042', - 'no-empty-links', - ], - }, - { - errorContext: '[empty](#)', - errorDetail: null, - errorRange: [ - 4, - 10, - ], - fixInfo: null, - lineNumber: 5, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md042', - ruleNames: [ - 'MD042', - 'no-empty-links', - ], - }, - { - errorContext: '[empty](<>)', - errorDetail: null, - errorRange: [ - 4, - 11, - ], - fixInfo: null, - lineNumber: 7, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md042', - ruleNames: [ - 'MD042', - 'no-empty-links', - ], - }, - { - errorContext: '[empty one]()', - errorDetail: null, - errorRange: [ - 25, - 13, - ], - fixInfo: null, - lineNumber: 17, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md042', - ruleNames: [ - 'MD042', - 'no-empty-links', - ], - }, - { - errorContext: '# Heading', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 49, - ruleDescription: 'Required heading structure', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md043', - ruleNames: [ - 'MD043', - 'required-headings', - 'required-headers', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: markdownlint; Actual: MARKDOWNLINT', - errorRange: [ - 29, - 12, - ], - fixInfo: { - deleteCount: 12, - editColumn: 29, - insertText: 'markdownlint', - }, - lineNumber: 9, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: markdownlint; Actual: Markdownlint', - errorRange: [ - 7, - 12, - ], - fixInfo: { - deleteCount: 12, - editColumn: 7, - insertText: 'markdownlint', - }, - lineNumber: 12, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: markdownlint; Actual: MarkDownLint', - errorRange: [ - 1, - 12, - ], - fixInfo: { - deleteCount: 12, - editColumn: 1, - insertText: 'markdownlint', - }, - lineNumber: 15, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 19, - ruleDescription: 'Images should have alternate text (alt text)', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md045', - ruleNames: [ - 'MD045', - 'no-alt-text', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: fenced; Actual: indented', - errorRange: null, - fixInfo: null, - lineNumber: 25, - ruleDescription: 'Code block style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md046', - ruleNames: [ - 'MD046', - 'code-block-style', - ], - }, - { - errorContext: null, - errorDetail: null, - errorRange: [ - 25, - 1, - ], - fixInfo: { - editColumn: 26, - insertText: `␊ - `, - }, - lineNumber: 49, - ruleDescription: 'Files should end with a single newline character', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md047', - ruleNames: [ - 'MD047', - 'single-trailing-newline', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: backtick; Actual: tilde', - errorRange: null, - fixInfo: null, - lineNumber: 27, - ruleDescription: 'Code fence style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md048', - ruleNames: [ - 'MD048', - 'code-fence-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 21, - 6, - ], - fixInfo: { - deleteCount: 6, - editColumn: 21, - insertText: '*this*', - }, - lineNumber: 31, - ruleDescription: 'Emphasis style should be consistent', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md049', - ruleNames: [ - 'MD049', - 'emphasis-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 49, - 8, - ], - fixInfo: { - deleteCount: 8, - editColumn: 49, - insertText: '*issues*', - }, - lineNumber: 31, - ruleDescription: 'Emphasis style should be consistent', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md049', - ruleNames: [ - 'MD049', - 'emphasis-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: null, - fixInfo: null, - lineNumber: 36, - ruleDescription: 'Emphasis style should be consistent', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md049', - ruleNames: [ - 'MD049', - 'emphasis-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 14, - 8, - ], - fixInfo: { - deleteCount: 8, - editColumn: 14, - insertText: '*double*', - }, - lineNumber: 45, - ruleDescription: 'Emphasis style should be consistent', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md049', - ruleNames: [ - 'MD049', - 'emphasis-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 28, - 13, - ], - fixInfo: { - deleteCount: 13, - editColumn: 28, - insertText: '*interleaved*', - }, - lineNumber: 45, - ruleDescription: 'Emphasis style should be consistent', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md049', - ruleNames: [ - 'MD049', - 'emphasis-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 47, - 8, - ], - fixInfo: { - deleteCount: 8, - editColumn: 47, - insertText: '*double*', - }, - lineNumber: 45, - ruleDescription: 'Emphasis style should be consistent', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md049', - ruleNames: [ - 'MD049', - 'emphasis-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 56, - 13, - ], - fixInfo: { - deleteCount: 13, - editColumn: 56, - insertText: '*interleaved*', - }, - lineNumber: 45, - ruleDescription: 'Emphasis style should be consistent', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md049', - ruleNames: [ - 'MD049', - 'emphasis-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 30, - 8, - ], - fixInfo: { - deleteCount: 8, - editColumn: 30, - insertText: '__this__', - }, - lineNumber: 33, - ruleDescription: 'Strong style should be consistent', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md050', - ruleNames: [ - 'MD050', - 'strong-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 62, - 10, - ], - fixInfo: { - deleteCount: 10, - editColumn: 62, - insertText: '__issues__', - }, - lineNumber: 33, - ruleDescription: 'Strong style should be consistent', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md050', - ruleNames: [ - 'MD050', - 'strong-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: null, - fixInfo: null, - lineNumber: 41, - ruleDescription: 'Strong style should be consistent', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md050', - ruleNames: [ - 'MD050', - 'strong-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 14, - 10, - ], - fixInfo: { - deleteCount: 10, - editColumn: 14, - insertText: '__double__', - }, - lineNumber: 47, - ruleDescription: 'Strong style should be consistent', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md050', - ruleNames: [ - 'MD050', - 'strong-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 30, - 15, - ], - fixInfo: { - deleteCount: 15, - editColumn: 30, - insertText: '__interleaved__', - }, - lineNumber: 47, - ruleDescription: 'Strong style should be consistent', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md050', - ruleNames: [ - 'MD050', - 'strong-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 51, - 10, - ], - fixInfo: { - deleteCount: 10, - editColumn: 51, - insertText: '__double__', - }, - lineNumber: 47, - ruleDescription: 'Strong style should be consistent', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md050', - ruleNames: [ - 'MD050', - 'strong-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 62, - 15, - ], - fixInfo: { - deleteCount: 15, - editColumn: 62, - insertText: '__interleaved__', - }, - lineNumber: 47, - ruleDescription: 'Strong style should be consistent', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md050', - ruleNames: [ - 'MD050', - 'strong-style', - ], - }, - ], - fixed: `Not a heading␊ - ␊ - An [empty]() link␊ - ␊ - An [empty](#) link with fragment␊ - ␊ - An [empty](<>) link with angle brackets␊ - ␊ - This is a test file for the markdownlint package.␊ - ␊ - This is a paragraph␊ - about markdownlint␊ - that capitalizes the␊ - name wrong twice:␊ - markdownlint.␊ - ␊ - A [normal](link) and an [empty one]() and a [fragment](#one).␊ - ␊ - An image without alternate text ![](image.jpg)␊ - ␊ - \`\`\`text␊ - Fenced code␊ - \`\`\`␊ - ␊ - Indented code␊ - ␊ - ~~~text␊ - Fenced code␊ - ~~~␊ - ␊ - Mixed *emphasis* on *this* line *with* multiple *issues*␊ - ␊ - Mixed __strong emphasis__ on __this__ line __with__ multiple __issues__␊ - ␊ - Inconsistent␊ - emphasis _text␊ - spanning_ many␊ - lines␊ - ␊ - Inconsistent␊ - strong **emphasis␊ - spanning** many␊ - lines␊ - ␊ - Inconsistent *double* text *interleaved* text *double* *interleaved* emphasis.␊ - ␊ - Inconsistent __double__ text __interleaved__ text __double__ __interleaved__ strong emphasis.␊ - ␊ - Missing newline character␊ - `, - } - -## detailed-results-MD051-MD060.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: '[link with a missing](#fragment)', - errorDetail: null, - errorRange: [ - 3, - 32, - ], - fixInfo: null, - lineNumber: 3, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md051', - ruleNames: [ - 'MD051', - 'link-fragments', - ], - }, - ], - fixed: `# detailed-results-MD051-MD060␊ - ␊ - A [link with a missing](#fragment)␊ - `, - } - -## detailed-results-bare-urls.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: 'https://example.com', - errorDetail: null, - errorRange: [ - 15, - 19, - ], - fixInfo: { - deleteCount: 19, - editColumn: 15, - insertText: '', - }, - lineNumber: 3, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com/', - errorDetail: null, - errorRange: [ - 15, - 20, - ], - fixInfo: { - deleteCount: 20, - editColumn: 15, - insertText: '', - }, - lineNumber: 5, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com/?query=str...', - errorDetail: null, - errorRange: [ - 15, - 38, - ], - fixInfo: { - deleteCount: 38, - editColumn: 15, - insertText: '', - }, - lineNumber: 7, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com/info.htm', - errorDetail: null, - errorRange: [ - 15, - 28, - ], - fixInfo: { - deleteCount: 28, - editColumn: 15, - insertText: '', - }, - lineNumber: 9, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com', - errorDetail: null, - errorRange: [ - 7, - 19, - ], - fixInfo: { - deleteCount: 19, - editColumn: 7, - insertText: '', - }, - lineNumber: 11, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com', - errorDetail: null, - errorRange: [ - 11, - 19, - ], - fixInfo: { - deleteCount: 19, - editColumn: 11, - insertText: '', - }, - lineNumber: 13, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - ], - fixed: `# Detailed Results Bare URLs␊ - ␊ - For more, see .␊ - ␊ - For more, see .␊ - ␊ - For more, see .␊ - ␊ - For more, see .␊ - ␊ - Visit , then refresh.␊ - ␊ - The site () is down.␊ - `, - } - -## detailed-results-blanks-around-headings-0-2.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: '## Banana', - errorDetail: 'Expected: 2; Actual: 1; Below', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 9, - }, - lineNumber: 8, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - 'blanks-around-headers', - ], - }, - { - errorContext: 'Elderberry', - errorDetail: 'Expected: 2; Actual: 0; Below', - errorRange: null, - fixInfo: { - insertText: `␊ - ␊ - `, - lineNumber: 23, - }, - lineNumber: 21, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - 'blanks-around-headers', - ], - }, - ], - fixed: `# Blanks Around Headings␊ - ␊ - ␊ - ## Apple␊ - ␊ - ␊ - Text␊ - ## Banana␊ - ␊ - ␊ - Text␊ - ## Cherry␊ - ␊ - ␊ - Text␊ - ## Durian ##␊ - ␊ - ␊ - Text␊ - ␊ - ---␊ - Elderberry␊ - ----------␊ - ␊ - ␊ - Text␊ - ## Fig␊ - `, - } - -## detailed-results-blanks-around-headings-3-0.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: '## Durian ##', - errorDetail: 'Expected: 3; Actual: 2; Above', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 19, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - 'blanks-around-headers', - ], - }, - { - errorContext: 'Elderberry', - errorDetail: 'Expected: 3; Actual: 1; Above', - errorRange: null, - fixInfo: { - insertText: `␊ - ␊ - `, - }, - lineNumber: 22, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - 'blanks-around-headers', - ], - }, - ], - fixed: `# Blanks Around Headings␊ - ␊ - ␊ - ␊ - ## Apple␊ - Text␊ - ␊ - ␊ - ␊ - ## Banana␊ - Text␊ - ␊ - ␊ - ␊ - ## Cherry␊ - Text␊ - ␊ - ␊ - ␊ - ## Durian ##␊ - Text␊ - ␊ - ␊ - ␊ - Elderberry␊ - ----------␊ - Text␊ - ␊ - ␊ - ␊ - ## Fig␊ - `, - } - -## detailed-results-blanks-around-headings.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: '## Banana', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 8, - }, - lineNumber: 7, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - 'blanks-around-headers', - ], - }, - { - errorContext: '## Durian ##', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 13, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - 'blanks-around-headers', - ], - }, - { - errorContext: 'Elderberry', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 18, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - 'blanks-around-headers', - ], - }, - { - errorContext: 'Elderberry', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 20, - }, - lineNumber: 18, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - 'blanks-around-headers', - ], - }, - ], - fixed: `# Blanks Around Headings␊ - ␊ - ## Apple␊ - ␊ - Text␊ - ␊ - ## Banana␊ - ␊ - Text␊ - ␊ - ## Cherry␊ - ␊ - Text␊ - ␊ - ## Durian ##␊ - ␊ - Text␊ - ␊ - ---␊ - ␊ - Elderberry␊ - ----------␊ - ␊ - Text␊ - ␊ - ## Fig␊ - `, - } - -## detailed-results-code-fences-in-blockquotes.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: '```markdown', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 4, - }, - lineNumber: 4, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md031', - ruleNames: [ - 'MD031', - 'blanks-around-fences', - ], - }, - { - errorContext: '```', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 7, - }, - lineNumber: 6, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md031', - ruleNames: [ - 'MD031', - 'blanks-around-fences', - ], - }, - { - errorContext: '> ```markdown', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `>␊ - `, - lineNumber: 10, - }, - lineNumber: 10, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md031', - ruleNames: [ - 'MD031', - 'blanks-around-fences', - ], - }, - { - errorContext: '> ```', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `>␊ - `, - lineNumber: 13, - }, - lineNumber: 12, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md031', - ruleNames: [ - 'MD031', - 'blanks-around-fences', - ], - }, - { - errorContext: '> > ```markdown', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `> >␊ - `, - lineNumber: 15, - }, - lineNumber: 15, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md031', - ruleNames: [ - 'MD031', - 'blanks-around-fences', - ], - }, - { - errorContext: '> > ```', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `> >␊ - `, - lineNumber: 18, - }, - lineNumber: 17, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md031', - ruleNames: [ - 'MD031', - 'blanks-around-fences', - ], - }, - ], - fixed: `# Detailed Results Code Fences in Blockquotes␊ - ␊ - Text␊ - ␊ - \`\`\`markdown␊ - Text␊ - \`\`\`␊ - ␊ - Text␊ - ␊ - > Text␊ - >␊ - > \`\`\`markdown␊ - > Text␊ - > \`\`\`␊ - >␊ - > Text␊ - > > Text␊ - > >␊ - > > \`\`\`markdown␊ - > > Text␊ - > > \`\`\`␊ - > >␊ - > > Text␊ - `, - } - -## detailed-results-default-spaces-MD010.md +## default-spaces-MD010.md > Snapshot 1 @@ -8385,1833 +8385,6 @@ Generated by [AVA](https://avajs.dev). `, } -## detailed-results-fixing-with-front-matter.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 3', - errorRange: [ - 15, - 3, - ], - fixInfo: { - deleteCount: 3, - editColumn: 15, - }, - lineNumber: 6, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md009', - ruleNames: [ - 'MD009', - 'no-trailing-spaces', - ], - }, - { - errorContext: '# Fixing with Front Matter', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 6, - }, - lineNumber: 5, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - 'blanks-around-headers', - ], - }, - { - errorContext: '## Nested Heading', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 9, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - 'blanks-around-headers', - ], - }, - { - errorContext: '[ link ]', - errorDetail: null, - errorRange: [ - 6, - 8, - ], - fixInfo: { - deleteCount: 6, - editColumn: 7, - insertText: 'link', - }, - lineNumber: 8, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: null, - errorDetail: null, - errorRange: [ - 4, - 1, - ], - fixInfo: { - editColumn: 5, - insertText: `␊ - `, - }, - lineNumber: 11, - ruleDescription: 'Files should end with a single newline character', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md047', - ruleNames: [ - 'MD047', - 'single-trailing-newline', - ], - }, - ], - fixed: `---␊ - front: matter␊ - ignore: this␊ - ---␊ - # Fixing with Front Matter␊ - ␊ - Text text text␊ - ␊ - Text [link](url) text␊ - ␊ - ## Nested Heading␊ - ␊ - Text␊ - `, - } - -## detailed-results-front-matter.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - }, - lineNumber: 6, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md009', - ruleNames: [ - 'MD009', - 'no-trailing-spaces', - ], - }, - { - errorContext: 'Text', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 4, - ruleDescription: 'First line in a file should be a top-level heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md041', - ruleNames: [ - 'MD041', - 'first-line-heading', - 'first-line-h1', - ], - }, - ], - fixed: `---␊ - front: matter␊ - ---␊ - Text␊ - ␊ - Text␊ - `, - } - -## detailed-results-html-tags.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 1, - 4, - ], - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 6, - 4, - ], - fixInfo: null, - lineNumber: 7, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: p', - errorRange: [ - 1, - 3, - ], - fixInfo: null, - lineNumber: 17, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 7, - 4, - ], - fixInfo: null, - lineNumber: 19, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 7, - 4, - ], - fixInfo: null, - lineNumber: 23, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 36, - 4, - ], - fixInfo: null, - lineNumber: 24, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 9, - 4, - ], - fixInfo: null, - lineNumber: 29, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 14, - 4, - ], - fixInfo: null, - lineNumber: 31, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 1, - 4, - ], - fixInfo: null, - lineNumber: 35, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 6, - 4, - ], - fixInfo: null, - lineNumber: 37, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 6, - 4, - ], - fixInfo: null, - lineNumber: 41, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 56, - 4, - ], - fixInfo: null, - lineNumber: 41, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 35, - 4, - ], - fixInfo: null, - lineNumber: 43, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: problem', - errorRange: [ - 3, - 9, - ], - fixInfo: null, - lineNumber: 49, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: problem', - errorRange: [ - 8, - 9, - ], - fixInfo: null, - lineNumber: 55, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 8, - 4, - ], - fixInfo: null, - lineNumber: 61, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 18, - 4, - ], - fixInfo: null, - lineNumber: 84, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: a', - errorRange: [ - 6, - 18, - ], - fixInfo: null, - lineNumber: 90, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: img', - errorRange: [ - 6, - 20, - ], - fixInfo: null, - lineNumber: 91, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: foo-bar-baz', - errorRange: [ - 1, - 13, - ], - fixInfo: null, - lineNumber: 101, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - ], - fixed: `# Detailed HTML Results␊ - ␊ - Text␊ - ␊ - Block block␊ - ␊ - Text inline inline text␊ - ␊ - Text␊ - ␊ - Block block␊ - ␊ - Text inline inline text␊ - ␊ - Text␊ - ␊ -

␊ - Block␊ - block block block␊ - block␊ - block block block␊ - block␊ - block block block block block␊ - block block block block block␊ -

␊ - ␊ - Text␊ - ␊ - Block block␊ - ␊ - Text inline inline text␊ - ␊ - Text␊ - ␊ - Block block␊ - ␊ - Text inline inline text␊ - ␊ - Text␊ - ␊ - Text inline text inline text inline text␊ - ␊ - Text inline text inline text inline text␊ - ␊ - Text␊ - ␊ - \\Block block\\␊ - ␊ - \\\\Block block\\\\␊ - ␊ - Block block␊ - ␊ - Text \\inline inline\\ text␊ - ␊ - Text \\\\inline inline\\\\ text␊ - ␊ - Text inline inline text␊ - ␊ - Text␊ - ␊ - > Text inline inline text␊ - > text inline inline text␊ - ␊ - Text␊ - ␊ - Text inline inline text␊ - text inline inline text␊ - ␊ - Text␊ - ␊ - \`\`\`html␊ - Text inline inline text␊ - text inline inline text␊ - \`\`\`␊ - ␊ - Text␊ - ␊ - \`\`␊ - ␊ - Text \`\`\`\` text␊ - ␊ - Text \`\` text \`\`\`\` text \`\`\`\`\`\` text␊ - ␊ - Text \`\` text inline text␊ - ␊ - Text \`\`text text\`\` text␊ - ␊ - Text␊ - ␊ - Text inline text␊ - text text␊ - ␊ - Text␊ - ␊ - is an email autolink.␊ - ␊ - Another email autolink: .␊ - ␊ - Text␊ - ␊ - is an HTML element.␊ - ␊ - But is not an autolink or HTML element.␊ - And neither is .␊ - Nor <123abc>.␊ - ␊ - Text␊ - `, - } - -## detailed-results-links.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: '(Incorrect link syntax)[https://www.example.com/]', - errorRange: [ - 1, - 49, - ], - fixInfo: { - deleteCount: 49, - editColumn: 1, - insertText: '[Incorrect link syntax](https://www.example.com/)', - }, - lineNumber: 30, - ruleDescription: 'Reversed link syntax', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md011', - ruleNames: [ - 'MD011', - 'no-reversed-links', - ], - }, - { - errorContext: 'https://example.com/', - errorDetail: null, - errorRange: [ - 6, - 20, - ], - fixInfo: { - deleteCount: 20, - editColumn: 6, - insertText: '', - }, - lineNumber: 3, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com/bare', - errorDetail: null, - errorRange: [ - 42, - 24, - ], - fixInfo: { - deleteCount: 24, - editColumn: 42, - insertText: '', - }, - lineNumber: 5, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com/bare', - errorDetail: null, - errorRange: [ - 6, - 24, - ], - fixInfo: { - deleteCount: 24, - editColumn: 6, - insertText: '', - }, - lineNumber: 7, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com/', - errorDetail: null, - errorRange: [ - 48, - 20, - ], - fixInfo: { - deleteCount: 20, - editColumn: 48, - insertText: '', - }, - lineNumber: 9, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com/bare', - errorDetail: null, - errorRange: [ - 44, - 24, - ], - fixInfo: { - deleteCount: 24, - editColumn: 44, - insertText: '', - }, - lineNumber: 11, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com/dir', - errorDetail: null, - errorRange: [ - 6, - 23, - ], - fixInfo: { - deleteCount: 23, - editColumn: 6, - insertText: '', - }, - lineNumber: 13, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com/file.txt', - errorDetail: null, - errorRange: [ - 6, - 28, - ], - fixInfo: { - deleteCount: 28, - editColumn: 6, - insertText: '', - }, - lineNumber: 14, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com/dir/dir/fi...', - errorDetail: null, - errorRange: [ - 6, - 44, - ], - fixInfo: { - deleteCount: 44, - editColumn: 6, - insertText: '', - }, - lineNumber: 16, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com/same', - errorDetail: null, - errorRange: [ - 43, - 24, - ], - fixInfo: { - deleteCount: 24, - editColumn: 43, - insertText: '', - }, - lineNumber: 24, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com/same', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 26, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com/first', - errorDetail: null, - errorRange: [ - 6, - 25, - ], - fixInfo: { - deleteCount: 25, - editColumn: 6, - insertText: '', - }, - lineNumber: 28, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com/second', - errorDetail: null, - errorRange: [ - 42, - 26, - ], - fixInfo: { - deleteCount: 26, - editColumn: 42, - insertText: '', - }, - lineNumber: 28, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: 'https://example.com/third', - errorDetail: null, - errorRange: [ - 85, - 25, - ], - fixInfo: { - deleteCount: 25, - editColumn: 85, - insertText: '', - }, - lineNumber: 28, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', - ruleNames: [ - 'MD034', - 'no-bare-urls', - ], - }, - { - errorContext: '[link ]', - errorDetail: null, - errorRange: [ - 6, - 7, - ], - fixInfo: { - deleteCount: 5, - editColumn: 7, - insertText: 'link', - }, - lineNumber: 32, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '[ link]', - errorDetail: null, - errorRange: [ - 6, - 7, - ], - fixInfo: { - deleteCount: 5, - editColumn: 7, - insertText: 'link', - }, - lineNumber: 34, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '[ link ]', - errorDetail: null, - errorRange: [ - 6, - 8, - ], - fixInfo: { - deleteCount: 6, - editColumn: 7, - insertText: 'link', - }, - lineNumber: 36, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '[link ]', - errorDetail: null, - errorRange: [ - 6, - 7, - ], - fixInfo: { - deleteCount: 5, - editColumn: 7, - insertText: 'link', - }, - lineNumber: 38, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '[ link]', - errorDetail: null, - errorRange: [ - 6, - 7, - ], - fixInfo: { - deleteCount: 5, - editColumn: 7, - insertText: 'link', - }, - lineNumber: 40, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '[ link ]', - errorDetail: null, - errorRange: [ - 6, - 8, - ], - fixInfo: { - deleteCount: 6, - editColumn: 7, - insertText: 'link', - }, - lineNumber: 42, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - ], - fixed: `# Detailed Link Results␊ - ␊ - Text text␊ - ␊ - Text text text␊ - ␊ - Text text text␊ - ␊ - Text \`code https://example.com/code code\` text text␊ - ␊ - > Text text text␊ - ␊ - Text ␊ - text ␊ - text ␊ - text ␊ - ␊ - \`\`\`text␊ - Code https://example.com/code?type=fence code␊ - \`\`\`␊ - ␊ - Code https://example.com/code?type=indent code␊ - ␊ - Text more text still more text done␊ - ␊ - Text more \\* text https://example.com/same more \\[ text done␊ - ␊ - Text more text still more text done␊ - ␊ - [Incorrect link syntax](https://www.example.com/)␊ - ␊ - Text [link](https://example.com/) text.␊ - ␊ - Text [link](https://example.com/) text.␊ - ␊ - Text [link](https://example.com/) text.␊ - ␊ - Text [link][reference] text.␊ - ␊ - Text [link][reference] text.␊ - ␊ - Text [link][reference] text.␊ - ␊ - [reference]: https://example.com/␊ - `, - } - -## detailed-results-no-tabs-edge-case-MD010.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 13, - ], - fixInfo: { - deleteCount: 13, - editColumn: 1, - insertText: '', - }, - lineNumber: 1, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010', - ruleNames: [ - 'MD010', - 'no-hard-tabs', - ], - }, - { - errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 5, - insertText: '', - }, - lineNumber: 2, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010', - ruleNames: [ - 'MD010', - 'no-hard-tabs', - ], - }, - { - errorContext: null, - errorDetail: 'Column: 27', - errorRange: [ - 27, - 3, - ], - fixInfo: { - deleteCount: 3, - editColumn: 27, - insertText: '', - }, - lineNumber: 3, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010', - ruleNames: [ - 'MD010', - 'no-hard-tabs', - ], - }, - ], - fixed: `text␊ - text and text 2␊ - texts with trailing spaces␊ - `, - } - -## detailed-results-ordered-list-item-prefix-single.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 9; Style: 1/1/1', - errorRange: [ - 1, - 3, - ], - fixInfo: null, - lineNumber: 3, - ruleDescription: 'Ordered list item prefix', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', - ruleNames: [ - 'MD029', - 'ol-prefix', - ], - }, - ], - fixed: `# Ordered list examples␊ - ␊ - 9. Item␊ - `, - } - -## detailed-results-ordered-list-item-prefix-zero.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1; Style: 0/0/0', - errorRange: [ - 1, - 3, - ], - fixInfo: null, - lineNumber: 11, - ruleDescription: 'Ordered list item prefix', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', - ruleNames: [ - 'MD029', - 'ol-prefix', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1; Style: 0/0/0', - errorRange: [ - 1, - 3, - ], - fixInfo: null, - lineNumber: 12, - ruleDescription: 'Ordered list item prefix', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', - ruleNames: [ - 'MD029', - 'ol-prefix', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1; Style: 0/0/0', - errorRange: [ - 1, - 3, - ], - fixInfo: null, - lineNumber: 13, - ruleDescription: 'Ordered list item prefix', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', - ruleNames: [ - 'MD029', - 'ol-prefix', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1; Style: 0/0/0', - errorRange: [ - 1, - 3, - ], - fixInfo: null, - lineNumber: 17, - ruleDescription: 'Ordered list item prefix', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', - ruleNames: [ - 'MD029', - 'ol-prefix', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 2; Style: 0/0/0', - errorRange: [ - 1, - 3, - ], - fixInfo: null, - lineNumber: 18, - ruleDescription: 'Ordered list item prefix', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', - ruleNames: [ - 'MD029', - 'ol-prefix', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 3; Style: 0/0/0', - errorRange: [ - 1, - 3, - ], - fixInfo: null, - lineNumber: 19, - ruleDescription: 'Ordered list item prefix', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', - ruleNames: [ - 'MD029', - 'ol-prefix', - ], - }, - ], - fixed: `# Ordered list examples␊ - ␊ - text␊ - ␊ - 0. Item␊ - 0. Item␊ - 0. Item␊ - ␊ - text␊ - ␊ - 1. Item␊ - 1. Item␊ - 1. Item␊ - ␊ - text␊ - ␊ - 1. Item␊ - 2. Item␊ - 3. Item␊ - `, - } - -## detailed-results-proper-names.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Expected: markdownlint; Actual: Markdownlint', - errorRange: [ - 6, - 12, - ], - fixInfo: { - deleteCount: 12, - editColumn: 6, - insertText: 'markdownlint', - }, - lineNumber: 3, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: Node.js; Actual: node.JS', - errorRange: [ - 6, - 7, - ], - fixInfo: { - deleteCount: 7, - editColumn: 6, - insertText: 'Node.js', - }, - lineNumber: 5, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: .NET; Actual: .net', - errorRange: [ - 6, - 4, - ], - fixInfo: { - deleteCount: 4, - editColumn: 6, - insertText: '.NET', - }, - lineNumber: 7, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: .NET; Actual: .net', - errorRange: [ - 13, - 4, - ], - fixInfo: { - deleteCount: 4, - editColumn: 13, - insertText: '.NET', - }, - lineNumber: 9, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: markdownlint; Actual: Markdownlint', - errorRange: [ - 7, - 12, - ], - fixInfo: { - deleteCount: 12, - editColumn: 7, - insertText: 'markdownlint', - }, - lineNumber: 11, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: Node.js; Actual: node.JS', - errorRange: [ - 7, - 7, - ], - fixInfo: { - deleteCount: 7, - editColumn: 7, - insertText: 'Node.js', - }, - lineNumber: 13, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: .NET; Actual: .net', - errorRange: [ - 7, - 4, - ], - fixInfo: { - deleteCount: 4, - editColumn: 7, - insertText: '.NET', - }, - lineNumber: 15, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: .NET; Actual: .net', - errorRange: [ - 14, - 4, - ], - fixInfo: { - deleteCount: 4, - editColumn: 14, - insertText: '.NET', - }, - lineNumber: 17, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: markdownlint; Actual: Markdownlint', - errorRange: [ - 8, - 12, - ], - fixInfo: { - deleteCount: 12, - editColumn: 8, - insertText: 'markdownlint', - }, - lineNumber: 19, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: Node.js; Actual: node.JS', - errorRange: [ - 8, - 7, - ], - fixInfo: { - deleteCount: 7, - editColumn: 8, - insertText: 'Node.js', - }, - lineNumber: 21, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: .NET; Actual: .net', - errorRange: [ - 8, - 4, - ], - fixInfo: { - deleteCount: 4, - editColumn: 8, - insertText: '.NET', - }, - lineNumber: 23, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: .NET; Actual: .net', - errorRange: [ - 15, - 4, - ], - fixInfo: { - deleteCount: 4, - editColumn: 15, - insertText: '.NET', - }, - lineNumber: 25, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: markdownlint; Actual: Markdownlint', - errorRange: [ - 1, - 12, - ], - fixInfo: { - deleteCount: 12, - editColumn: 1, - insertText: 'markdownlint', - }, - lineNumber: 27, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: Node.js; Actual: node.JS', - errorRange: [ - 1, - 7, - ], - fixInfo: { - deleteCount: 7, - editColumn: 1, - insertText: 'Node.js', - }, - lineNumber: 29, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: .NET; Actual: .net', - errorRange: [ - 1, - 4, - ], - fixInfo: { - deleteCount: 4, - editColumn: 1, - insertText: '.NET', - }, - lineNumber: 31, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: .NET; Actual: .net', - errorRange: [ - 8, - 4, - ], - fixInfo: { - deleteCount: 4, - editColumn: 8, - insertText: '.NET', - }, - lineNumber: 33, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - ], - fixed: `# Detailed Results Proper Names␊ - ␊ - Text markdownlint text.␊ - ␊ - Text Node.js text.␊ - ␊ - Text .NET text.␊ - ␊ - Text example.NET text.␊ - ␊ - Text "markdownlint" text.␊ - ␊ - Text "Node.js" text.␊ - ␊ - Text ".NET" text.␊ - ␊ - Text "example.NET" text.␊ - ␊ - Text **markdownlint** text.␊ - ␊ - Text **Node.js** text.␊ - ␊ - Text **.NET** text.␊ - ␊ - Text **example.NET** text.␊ - ␊ - markdownlint␊ - ␊ - Node.js␊ - ␊ - .NET␊ - ␊ - example.NET␊ - `, - } - -## detailed-results-spaces-inside-link-text.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: '[ link ]', - errorDetail: null, - errorRange: [ - 1, - 8, - ], - fixInfo: { - deleteCount: 6, - editColumn: 2, - insertText: 'link', - }, - lineNumber: 3, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '[ "link" ]', - errorDetail: null, - errorRange: [ - 1, - 10, - ], - fixInfo: { - deleteCount: 8, - editColumn: 2, - insertText: '"link"', - }, - lineNumber: 5, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '[ `link` ]', - errorDetail: null, - errorRange: [ - 1, - 10, - ], - fixInfo: { - deleteCount: 8, - editColumn: 2, - insertText: '`link`', - }, - lineNumber: 7, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '[ *link* ]', - errorDetail: null, - errorRange: [ - 1, - 10, - ], - fixInfo: { - deleteCount: 8, - editColumn: 2, - insertText: '*link*', - }, - lineNumber: 9, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '[ __link__ ]', - errorDetail: null, - errorRange: [ - 1, - 12, - ], - fixInfo: { - deleteCount: 10, - editColumn: 2, - insertText: '__link__', - }, - lineNumber: 11, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '[ link "link" ]', - errorDetail: null, - errorRange: [ - 1, - 15, - ], - fixInfo: { - deleteCount: 13, - editColumn: 2, - insertText: 'link "link"', - }, - lineNumber: 13, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '[ link `link` ]', - errorDetail: null, - errorRange: [ - 1, - 15, - ], - fixInfo: { - deleteCount: 13, - editColumn: 2, - insertText: 'link `link`', - }, - lineNumber: 15, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '[ *link* link ]', - errorDetail: null, - errorRange: [ - 1, - 15, - ], - fixInfo: { - deleteCount: 13, - editColumn: 2, - insertText: '*link* link', - }, - lineNumber: 17, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', - ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - ], - fixed: `# Spaces Inside Link Text␊ - ␊ - [link](https://example.com/) {MD039}␊ - ␊ - ["link"](https://example.com/) {MD039}␊ - ␊ - [\`link\`](https://example.com/) {MD039}␊ - ␊ - [*link*](https://example.com/) {MD039}␊ - ␊ - [__link__](https://example.com/) {MD039}␊ - ␊ - [link "link"](https://example.com/) {MD039}␊ - ␊ - [link \`link\`](https://example.com/) {MD039}␊ - ␊ - [*link* link](https://example.com/) {MD039}␊ - `, - } - ## emoji-headings.md > Snapshot 1 @@ -11976,6 +10149,123 @@ Generated by [AVA](https://avajs.dev). `, } +## fixing-with-front-matter.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 3', + errorRange: [ + 15, + 3, + ], + fixInfo: { + deleteCount: 3, + editColumn: 15, + }, + lineNumber: 6, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md009', + ruleNames: [ + 'MD009', + 'no-trailing-spaces', + ], + }, + { + errorContext: '# Fixing with Front Matter', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 6, + }, + lineNumber: 5, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', + ruleNames: [ + 'MD022', + 'blanks-around-headings', + 'blanks-around-headers', + ], + }, + { + errorContext: '## Nested Heading', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, + fixInfo: { + insertText: `␊ + `, + }, + lineNumber: 9, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md022', + ruleNames: [ + 'MD022', + 'blanks-around-headings', + 'blanks-around-headers', + ], + }, + { + errorContext: '[ link ]', + errorDetail: null, + errorRange: [ + 6, + 8, + ], + fixInfo: { + deleteCount: 6, + editColumn: 7, + insertText: 'link', + }, + lineNumber: 8, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: null, + errorDetail: null, + errorRange: [ + 4, + 1, + ], + fixInfo: { + editColumn: 5, + insertText: `␊ + `, + }, + lineNumber: 11, + ruleDescription: 'Files should end with a single newline character', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md047', + ruleNames: [ + 'MD047', + 'single-trailing-newline', + ], + }, + ], + fixed: `---␊ + front: matter␊ + ignore: this␊ + ---␊ + # Fixing with Front Matter␊ + ␊ + Text text text␊ + ␊ + Text [link](url) text␊ + ␊ + ## Nested Heading␊ + ␊ + Text␊ + `, + } + ## front-matter-alt-title-h1.md > Snapshot 1 @@ -12049,6 +10339,55 @@ Generated by [AVA](https://avajs.dev). `, } +## front-matter-alternate.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + }, + lineNumber: 6, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md009', + ruleNames: [ + 'MD009', + 'no-trailing-spaces', + ], + }, + { + errorContext: 'Text', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 4, + ruleDescription: 'First line in a file should be a top-level heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md041', + ruleNames: [ + 'MD041', + 'first-line-heading', + 'first-line-h1', + ], + }, + ], + fixed: `---␊ + front: matter␊ + ---␊ + Text␊ + ␊ + Text␊ + `, + } + ## front-matter-embedded.md > Snapshot 1 @@ -16122,6 +14461,443 @@ Generated by [AVA](https://avajs.dev). `, } +## html-tags.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Element: em', + errorRange: [ + 1, + 4, + ], + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: em', + errorRange: [ + 6, + 4, + ], + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: p', + errorRange: [ + 1, + 3, + ], + fixInfo: null, + lineNumber: 17, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: em', + errorRange: [ + 7, + 4, + ], + fixInfo: null, + lineNumber: 19, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: em', + errorRange: [ + 7, + 4, + ], + fixInfo: null, + lineNumber: 23, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: em', + errorRange: [ + 36, + 4, + ], + fixInfo: null, + lineNumber: 24, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: em', + errorRange: [ + 9, + 4, + ], + fixInfo: null, + lineNumber: 29, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: em', + errorRange: [ + 14, + 4, + ], + fixInfo: null, + lineNumber: 31, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: em', + errorRange: [ + 1, + 4, + ], + fixInfo: null, + lineNumber: 35, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: em', + errorRange: [ + 6, + 4, + ], + fixInfo: null, + lineNumber: 37, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: em', + errorRange: [ + 6, + 4, + ], + fixInfo: null, + lineNumber: 41, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: em', + errorRange: [ + 56, + 4, + ], + fixInfo: null, + lineNumber: 41, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: em', + errorRange: [ + 35, + 4, + ], + fixInfo: null, + lineNumber: 43, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: problem', + errorRange: [ + 3, + 9, + ], + fixInfo: null, + lineNumber: 49, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: problem', + errorRange: [ + 8, + 9, + ], + fixInfo: null, + lineNumber: 55, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: em', + errorRange: [ + 8, + 4, + ], + fixInfo: null, + lineNumber: 61, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: em', + errorRange: [ + 18, + 4, + ], + fixInfo: null, + lineNumber: 84, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: a', + errorRange: [ + 6, + 18, + ], + fixInfo: null, + lineNumber: 90, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: img', + errorRange: [ + 6, + 20, + ], + fixInfo: null, + lineNumber: 91, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: null, + errorDetail: 'Element: foo-bar-baz', + errorRange: [ + 1, + 13, + ], + fixInfo: null, + lineNumber: 101, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + ], + fixed: `# Detailed HTML Results␊ + ␊ + Text␊ + ␊ + Block block␊ + ␊ + Text inline inline text␊ + ␊ + Text␊ + ␊ + Block block␊ + ␊ + Text inline inline text␊ + ␊ + Text␊ + ␊ +

␊ + Block␊ + block block block␊ + block␊ + block block block␊ + block␊ + block block block block block␊ + block block block block block␊ +

␊ + ␊ + Text␊ + ␊ + Block block␊ + ␊ + Text inline inline text␊ + ␊ + Text␊ + ␊ + Block block␊ + ␊ + Text inline inline text␊ + ␊ + Text␊ + ␊ + Text inline text inline text inline text␊ + ␊ + Text inline text inline text inline text␊ + ␊ + Text␊ + ␊ + \\Block block\\␊ + ␊ + \\\\Block block\\\\␊ + ␊ + Block block␊ + ␊ + Text \\inline inline\\ text␊ + ␊ + Text \\\\inline inline\\\\ text␊ + ␊ + Text inline inline text␊ + ␊ + Text␊ + ␊ + > Text inline inline text␊ + > text inline inline text␊ + ␊ + Text␊ + ␊ + Text inline inline text␊ + text inline inline text␊ + ␊ + Text␊ + ␊ + \`\`\`html␊ + Text inline inline text␊ + text inline inline text␊ + \`\`\`␊ + ␊ + Text␊ + ␊ + \`\`␊ + ␊ + Text \`\`\`\` text␊ + ␊ + Text \`\` text \`\`\`\` text \`\`\`\`\`\` text␊ + ␊ + Text \`\` text inline text␊ + ␊ + Text \`\`text text\`\` text␊ + ␊ + Text␊ + ␊ + Text inline text␊ + text text␊ + ␊ + Text␊ + ␊ + is an email autolink.␊ + ␊ + Another email autolink: .␊ + ␊ + Text␊ + ␊ + is an HTML element.␊ + ␊ + But is not an autolink or HTML element.␊ + And neither is .␊ + Nor <123abc>.␊ + ␊ + Text␊ + `, + } + ## hugo-quickstart-example-blank.md > Snapshot 1 @@ -20817,6 +19593,453 @@ Generated by [AVA](https://avajs.dev). `, } +## links-alternate.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: '(Incorrect link syntax)[https://www.example.com/]', + errorRange: [ + 1, + 49, + ], + fixInfo: { + deleteCount: 49, + editColumn: 1, + insertText: '[Incorrect link syntax](https://www.example.com/)', + }, + lineNumber: 30, + ruleDescription: 'Reversed link syntax', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md011', + ruleNames: [ + 'MD011', + 'no-reversed-links', + ], + }, + { + errorContext: 'https://example.com/', + errorDetail: null, + errorRange: [ + 6, + 20, + ], + fixInfo: { + deleteCount: 20, + editColumn: 6, + insertText: '', + }, + lineNumber: 3, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com/bare', + errorDetail: null, + errorRange: [ + 42, + 24, + ], + fixInfo: { + deleteCount: 24, + editColumn: 42, + insertText: '', + }, + lineNumber: 5, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com/bare', + errorDetail: null, + errorRange: [ + 6, + 24, + ], + fixInfo: { + deleteCount: 24, + editColumn: 6, + insertText: '', + }, + lineNumber: 7, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com/', + errorDetail: null, + errorRange: [ + 48, + 20, + ], + fixInfo: { + deleteCount: 20, + editColumn: 48, + insertText: '', + }, + lineNumber: 9, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com/bare', + errorDetail: null, + errorRange: [ + 44, + 24, + ], + fixInfo: { + deleteCount: 24, + editColumn: 44, + insertText: '', + }, + lineNumber: 11, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com/dir', + errorDetail: null, + errorRange: [ + 6, + 23, + ], + fixInfo: { + deleteCount: 23, + editColumn: 6, + insertText: '', + }, + lineNumber: 13, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com/file.txt', + errorDetail: null, + errorRange: [ + 6, + 28, + ], + fixInfo: { + deleteCount: 28, + editColumn: 6, + insertText: '', + }, + lineNumber: 14, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com/dir/dir/fi...', + errorDetail: null, + errorRange: [ + 6, + 44, + ], + fixInfo: { + deleteCount: 44, + editColumn: 6, + insertText: '', + }, + lineNumber: 16, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com/same', + errorDetail: null, + errorRange: [ + 43, + 24, + ], + fixInfo: { + deleteCount: 24, + editColumn: 43, + insertText: '', + }, + lineNumber: 24, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com/same', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 26, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com/first', + errorDetail: null, + errorRange: [ + 6, + 25, + ], + fixInfo: { + deleteCount: 25, + editColumn: 6, + insertText: '', + }, + lineNumber: 28, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com/second', + errorDetail: null, + errorRange: [ + 42, + 26, + ], + fixInfo: { + deleteCount: 26, + editColumn: 42, + insertText: '', + }, + lineNumber: 28, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: 'https://example.com/third', + errorDetail: null, + errorRange: [ + 85, + 25, + ], + fixInfo: { + deleteCount: 25, + editColumn: 85, + insertText: '', + }, + lineNumber: 28, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034', + ruleNames: [ + 'MD034', + 'no-bare-urls', + ], + }, + { + errorContext: '[link ]', + errorDetail: null, + errorRange: [ + 6, + 7, + ], + fixInfo: { + deleteCount: 5, + editColumn: 7, + insertText: 'link', + }, + lineNumber: 32, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '[ link]', + errorDetail: null, + errorRange: [ + 6, + 7, + ], + fixInfo: { + deleteCount: 5, + editColumn: 7, + insertText: 'link', + }, + lineNumber: 34, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '[ link ]', + errorDetail: null, + errorRange: [ + 6, + 8, + ], + fixInfo: { + deleteCount: 6, + editColumn: 7, + insertText: 'link', + }, + lineNumber: 36, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '[link ]', + errorDetail: null, + errorRange: [ + 6, + 7, + ], + fixInfo: { + deleteCount: 5, + editColumn: 7, + insertText: 'link', + }, + lineNumber: 38, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '[ link]', + errorDetail: null, + errorRange: [ + 6, + 7, + ], + fixInfo: { + deleteCount: 5, + editColumn: 7, + insertText: 'link', + }, + lineNumber: 40, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '[ link ]', + errorDetail: null, + errorRange: [ + 6, + 8, + ], + fixInfo: { + deleteCount: 6, + editColumn: 7, + insertText: 'link', + }, + lineNumber: 42, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + ], + fixed: `# Detailed Link Results␊ + ␊ + Text text␊ + ␊ + Text text text␊ + ␊ + Text text text␊ + ␊ + Text \`code https://example.com/code code\` text text␊ + ␊ + > Text text text␊ + ␊ + Text ␊ + text ␊ + text ␊ + text ␊ + ␊ + \`\`\`text␊ + Code https://example.com/code?type=fence code␊ + \`\`\`␊ + ␊ + Code https://example.com/code?type=indent code␊ + ␊ + Text more text still more text done␊ + ␊ + Text more \\* text https://example.com/same more \\[ text done␊ + ␊ + Text more text still more text done␊ + ␊ + [Incorrect link syntax](https://www.example.com/)␊ + ␊ + Text [link](https://example.com/) text.␊ + ␊ + Text [link](https://example.com/) text.␊ + ␊ + Text [link](https://example.com/) text.␊ + ␊ + Text [link][reference] text.␊ + ␊ + Text [link][reference] text.␊ + ␊ + Text [link][reference] text.␊ + ␊ + [reference]: https://example.com/␊ + `, + } + ## links-with-markup.md > Snapshot 1 @@ -28784,6 +28007,79 @@ Generated by [AVA](https://avajs.dev). `, } +## no-tabs-edge-case-MD010.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 13, + ], + fixInfo: { + deleteCount: 13, + editColumn: 1, + insertText: '', + }, + lineNumber: 1, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 5, + insertText: '', + }, + lineNumber: 2, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 27', + errorRange: [ + 27, + 3, + ], + fixInfo: { + deleteCount: 3, + editColumn: 27, + insertText: '', + }, + lineNumber: 3, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + ], + fixed: `text␊ + text and text 2␊ + texts with trailing spaces␊ + `, + } + ## no_first_line_heading.md > Snapshot 1 @@ -29678,6 +28974,160 @@ Generated by [AVA](https://avajs.dev). `, } +## ordered-list-item-prefix-single-alternate.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Expected: 1; Actual: 9; Style: 1/1/1', + errorRange: [ + 1, + 3, + ], + fixInfo: null, + lineNumber: 3, + ruleDescription: 'Ordered list item prefix', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', + ruleNames: [ + 'MD029', + 'ol-prefix', + ], + }, + ], + fixed: `# Ordered list examples␊ + ␊ + 9. Item␊ + `, + } + +## ordered-list-item-prefix-zero-alternate.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1; Style: 0/0/0', + errorRange: [ + 1, + 3, + ], + fixInfo: null, + lineNumber: 11, + ruleDescription: 'Ordered list item prefix', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', + ruleNames: [ + 'MD029', + 'ol-prefix', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1; Style: 0/0/0', + errorRange: [ + 1, + 3, + ], + fixInfo: null, + lineNumber: 12, + ruleDescription: 'Ordered list item prefix', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', + ruleNames: [ + 'MD029', + 'ol-prefix', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1; Style: 0/0/0', + errorRange: [ + 1, + 3, + ], + fixInfo: null, + lineNumber: 13, + ruleDescription: 'Ordered list item prefix', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', + ruleNames: [ + 'MD029', + 'ol-prefix', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1; Style: 0/0/0', + errorRange: [ + 1, + 3, + ], + fixInfo: null, + lineNumber: 17, + ruleDescription: 'Ordered list item prefix', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', + ruleNames: [ + 'MD029', + 'ol-prefix', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 2; Style: 0/0/0', + errorRange: [ + 1, + 3, + ], + fixInfo: null, + lineNumber: 18, + ruleDescription: 'Ordered list item prefix', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', + ruleNames: [ + 'MD029', + 'ol-prefix', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 3; Style: 0/0/0', + errorRange: [ + 1, + 3, + ], + fixInfo: null, + lineNumber: 19, + ruleDescription: 'Ordered list item prefix', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md029', + ruleNames: [ + 'MD029', + 'ol-prefix', + ], + }, + ], + fixed: `# Ordered list examples␊ + ␊ + text␊ + ␊ + 0. Item␊ + 0. Item␊ + 0. Item␊ + ␊ + text␊ + ␊ + 1. Item␊ + 1. Item␊ + 1. Item␊ + ␊ + text␊ + ␊ + 1. Item␊ + 2. Item␊ + 3. Item␊ + `, + } + ## ordered-list-item-prefix-zero.md > Snapshot 1 @@ -30390,6 +29840,369 @@ Generated by [AVA](https://avajs.dev). `, } +## proper-names-alternate.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Expected: markdownlint; Actual: Markdownlint', + errorRange: [ + 6, + 12, + ], + fixInfo: { + deleteCount: 12, + editColumn: 6, + insertText: 'markdownlint', + }, + lineNumber: 3, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: Node.js; Actual: node.JS', + errorRange: [ + 6, + 7, + ], + fixInfo: { + deleteCount: 7, + editColumn: 6, + insertText: 'Node.js', + }, + lineNumber: 5, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: .NET; Actual: .net', + errorRange: [ + 6, + 4, + ], + fixInfo: { + deleteCount: 4, + editColumn: 6, + insertText: '.NET', + }, + lineNumber: 7, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: .NET; Actual: .net', + errorRange: [ + 13, + 4, + ], + fixInfo: { + deleteCount: 4, + editColumn: 13, + insertText: '.NET', + }, + lineNumber: 9, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: markdownlint; Actual: Markdownlint', + errorRange: [ + 7, + 12, + ], + fixInfo: { + deleteCount: 12, + editColumn: 7, + insertText: 'markdownlint', + }, + lineNumber: 11, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: Node.js; Actual: node.JS', + errorRange: [ + 7, + 7, + ], + fixInfo: { + deleteCount: 7, + editColumn: 7, + insertText: 'Node.js', + }, + lineNumber: 13, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: .NET; Actual: .net', + errorRange: [ + 7, + 4, + ], + fixInfo: { + deleteCount: 4, + editColumn: 7, + insertText: '.NET', + }, + lineNumber: 15, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: .NET; Actual: .net', + errorRange: [ + 14, + 4, + ], + fixInfo: { + deleteCount: 4, + editColumn: 14, + insertText: '.NET', + }, + lineNumber: 17, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: markdownlint; Actual: Markdownlint', + errorRange: [ + 8, + 12, + ], + fixInfo: { + deleteCount: 12, + editColumn: 8, + insertText: 'markdownlint', + }, + lineNumber: 19, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: Node.js; Actual: node.JS', + errorRange: [ + 8, + 7, + ], + fixInfo: { + deleteCount: 7, + editColumn: 8, + insertText: 'Node.js', + }, + lineNumber: 21, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: .NET; Actual: .net', + errorRange: [ + 8, + 4, + ], + fixInfo: { + deleteCount: 4, + editColumn: 8, + insertText: '.NET', + }, + lineNumber: 23, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: .NET; Actual: .net', + errorRange: [ + 15, + 4, + ], + fixInfo: { + deleteCount: 4, + editColumn: 15, + insertText: '.NET', + }, + lineNumber: 25, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: markdownlint; Actual: Markdownlint', + errorRange: [ + 1, + 12, + ], + fixInfo: { + deleteCount: 12, + editColumn: 1, + insertText: 'markdownlint', + }, + lineNumber: 27, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: Node.js; Actual: node.JS', + errorRange: [ + 1, + 7, + ], + fixInfo: { + deleteCount: 7, + editColumn: 1, + insertText: 'Node.js', + }, + lineNumber: 29, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: .NET; Actual: .net', + errorRange: [ + 1, + 4, + ], + fixInfo: { + deleteCount: 4, + editColumn: 1, + insertText: '.NET', + }, + lineNumber: 31, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: .NET; Actual: .net', + errorRange: [ + 8, + 4, + ], + fixInfo: { + deleteCount: 4, + editColumn: 8, + insertText: '.NET', + }, + lineNumber: 33, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md044', + ruleNames: [ + 'MD044', + 'proper-names', + ], + }, + ], + fixed: `# Detailed Results Proper Names␊ + ␊ + Text markdownlint text.␊ + ␊ + Text Node.js text.␊ + ␊ + Text .NET text.␊ + ␊ + Text example.NET text.␊ + ␊ + Text "markdownlint" text.␊ + ␊ + Text "Node.js" text.␊ + ␊ + Text ".NET" text.␊ + ␊ + Text "example.NET" text.␊ + ␊ + Text **markdownlint** text.␊ + ␊ + Text **Node.js** text.␊ + ␊ + Text **.NET** text.␊ + ␊ + Text **example.NET** text.␊ + ␊ + markdownlint␊ + ␊ + Node.js␊ + ␊ + .NET␊ + ␊ + example.NET␊ + `, + } + ## proper-names-links.md > Snapshot 1 @@ -33985,6 +33798,193 @@ Generated by [AVA](https://avajs.dev). `, } +## spaces-inside-link-text.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: '[ link ]', + errorDetail: null, + errorRange: [ + 1, + 8, + ], + fixInfo: { + deleteCount: 6, + editColumn: 2, + insertText: 'link', + }, + lineNumber: 3, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '[ "link" ]', + errorDetail: null, + errorRange: [ + 1, + 10, + ], + fixInfo: { + deleteCount: 8, + editColumn: 2, + insertText: '"link"', + }, + lineNumber: 5, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '[ `link` ]', + errorDetail: null, + errorRange: [ + 1, + 10, + ], + fixInfo: { + deleteCount: 8, + editColumn: 2, + insertText: '`link`', + }, + lineNumber: 7, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '[ *link* ]', + errorDetail: null, + errorRange: [ + 1, + 10, + ], + fixInfo: { + deleteCount: 8, + editColumn: 2, + insertText: '*link*', + }, + lineNumber: 9, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '[ __link__ ]', + errorDetail: null, + errorRange: [ + 1, + 12, + ], + fixInfo: { + deleteCount: 10, + editColumn: 2, + insertText: '__link__', + }, + lineNumber: 11, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '[ link "link" ]', + errorDetail: null, + errorRange: [ + 1, + 15, + ], + fixInfo: { + deleteCount: 13, + editColumn: 2, + insertText: 'link "link"', + }, + lineNumber: 13, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '[ link `link` ]', + errorDetail: null, + errorRange: [ + 1, + 15, + ], + fixInfo: { + deleteCount: 13, + editColumn: 2, + insertText: 'link `link`', + }, + lineNumber: 15, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + { + errorContext: '[ *link* link ]', + errorDetail: null, + errorRange: [ + 1, + 15, + ], + fixInfo: { + deleteCount: 13, + editColumn: 2, + insertText: '*link* link', + }, + lineNumber: 17, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md039', + ruleNames: [ + 'MD039', + 'no-space-in-links', + ], + }, + ], + fixed: `# Spaces Inside Link Text␊ + ␊ + [link](https://example.com/) {MD039}␊ + ␊ + ["link"](https://example.com/) {MD039}␊ + ␊ + [\`link\`](https://example.com/) {MD039}␊ + ␊ + [*link*](https://example.com/) {MD039}␊ + ␊ + [__link__](https://example.com/) {MD039}␊ + ␊ + [link "link"](https://example.com/) {MD039}␊ + ␊ + [link \`link\`](https://example.com/) {MD039}␊ + ␊ + [*link* link](https://example.com/) {MD039}␊ + `, + } + ## spaces_after_list_marker.md > Snapshot 1 diff --git a/test/snapshots/markdownlint-test-scenarios.js.snap b/test/snapshots/markdownlint-test-scenarios.js.snap index e973acc2..0ccc0364 100644 Binary files a/test/snapshots/markdownlint-test-scenarios.js.snap and b/test/snapshots/markdownlint-test-scenarios.js.snap differ diff --git a/test/detailed-results-spaces-inside-link-text.md b/test/spaces-inside-link-text.md similarity index 100% rename from test/detailed-results-spaces-inside-link-text.md rename to test/spaces-inside-link-text.md