diff --git a/test/snapshots/markdownlint-test-scenarios.js.md b/test/snapshots/markdownlint-test-scenarios.js.md index 037bf8624..530873af3 100644 --- a/test/snapshots/markdownlint-test-scenarios.js.md +++ b/test/snapshots/markdownlint-test-scenarios.js.md @@ -85,399 +85,453 @@ Generated by [AVA](https://avajs.dev). `, } -## alternate_top_level_heading.md +## MD001-MD010.md > Snapshot 1 { errors: [ { - errorContext: 'Another one {MD025}', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: h3; Actual: h4', errorRange: null, fixInfo: null, lineNumber: 3, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', + ruleDescription: 'Heading levels should only increment by one level at a time', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md', ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', + 'MD001', + 'heading-increment', ], }, - ], - fixed: `## A level 2 top level heading␊ - ␊ - ## Another one {MD025}␊ - ␊ - ␊ - `, - } - -## atx-heading-spacing-trailing-spaces.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '##Heading 1 {MD018}', - errorDetail: null, + 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/md003.md', + ruleNames: [ + 'MD003', + 'heading-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: dash', errorRange: [ 1, - 3, + 2, ], fixInfo: { - editColumn: 3, - insertText: ' ', + deleteCount: 1, + editColumn: 1, + insertText: '*', }, - lineNumber: 5, - ruleDescription: 'No space after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md', + lineNumber: 10, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD018', - 'no-missing-space-atx', + 'MD004', + 'ul-style', ], }, { - errorContext: '## Heading 2 {MD019}', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1', errorRange: [ - 4, + 1, 3, ], - fixInfo: { - deleteCount: 3, - editColumn: 4, - }, - lineNumber: 7, - ruleDescription: 'Multiple spaces after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', + 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/md005.md', ruleNames: [ - 'MD019', - 'no-multiple-space-atx', + 'MD005', + 'list-indent', ], }, { - errorContext: '##Heading 3 {MD020} ##', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 1; Actual: 0', errorRange: [ 1, 3, ], fixInfo: { - deleteCount: 24, + deleteCount: 0, editColumn: 1, - insertText: '## Heading 3 {MD020} ##', + insertText: ' ', }, - lineNumber: 9, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + lineNumber: 23, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', + 'MD005', + 'list-indent', ], }, { - errorContext: '## Heading 4 {MD020}##', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: (3); Actual: (4)', errorRange: [ - 20, - 3, + 1, + 5, ], fixInfo: { - deleteCount: 24, + deleteCount: 1, editColumn: 1, - insertText: '## Heading 4 {MD020} ##', + insertText: '', }, - lineNumber: 11, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + lineNumber: 29, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', + 'MD005', + 'list-indent', ], }, { - errorContext: '##Heading 5 {MD020}##', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1', errorRange: [ 1, 3, ], fixInfo: { - deleteCount: 23, + deleteCount: 1, editColumn: 1, - insertText: '## Heading 5 {MD020} ##', + insertText: '', }, - lineNumber: 13, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + lineNumber: 8, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', + 'MD007', + 'ul-indent', ], }, { - errorContext: '## Heading 5 {MD021} ##', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1', errorRange: [ - 4, + 1, 3, ], fixInfo: { - deleteCount: 3, - editColumn: 4, + deleteCount: 1, + editColumn: 1, + insertText: '', }, - lineNumber: 15, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 12, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD007', + 'ul-indent', ], }, { - errorContext: '## Heading 6 {MD021} ##', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1', errorRange: [ - 22, - 2, + 1, + 3, ], fixInfo: { - deleteCount: 2, - editColumn: 22, + deleteCount: 1, + editColumn: 1, + insertText: '', }, - lineNumber: 17, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 13, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD007', + 'ul-indent', ], }, { - errorContext: '## Heading 7 {MD021} ##', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 1', errorRange: [ - 4, - 3, + 13, + 1, ], fixInfo: { - deleteCount: 3, - editColumn: 4, + deleteCount: 1, + editColumn: 13, }, - lineNumber: 19, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 15, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD009', + 'no-trailing-spaces', ], }, { - errorContext: '## Heading 7 {MD021} ##', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ - 25, - 2, + 5, + 1, ], fixInfo: { - deleteCount: 2, - editColumn: 25, + deleteCount: 1, + editColumn: 5, + insertText: ' ', }, - lineNumber: 19, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 17, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD010', + 'no-hard-tabs', ], }, ], - fixed: `# atx-heading-spacing-trailing-spaces␊ + fixed: `## One␊ ␊ - ␊ + #### Two {MD001}␊ ␊ - ## Heading 1 {MD018} ␊ + ### Three {MD003} ###␊ ␊ - ## Heading 2 {MD019} ␊ + * Alpha␊ + * Bravo {MD005} {MD007}␊ ␊ - ## Heading 3 {MD020} ##␊ + * Charlie {MD004}␊ ␊ - ## Heading 4 {MD020} ##␊ + * Delta {MD007}␊ + * Echo {MD007}␊ ␊ - ## Heading 5 {MD020} ##␊ + Text {MD009}␊ ␊ - ## Heading 5 {MD021} ## ␊ + Text text {MD010}␊ ␊ - ## Heading 6 {MD021} ## ␊ + 1. One␊ + 2. Two␊ + 3. Three␊ + 4. Four␊ + 5. Five {MD005}␊ + 6. Six␊ + 7. Seven␊ + 8. Eight␊ + 9. Nine␊ + 10. Ten␊ + 11. Eleven {MD005}␊ + 12. Twelve␊ ␊ - ## Heading 7 {MD021} ## ␊ + ␊ `, } -## atx_closed_heading_spacing.md +## MD011-MD021.md > Snapshot 1 { errors: [ { - errorContext: '#Heading 1 {MD020} #', - errorDetail: null, + errorContext: null, + errorDetail: '(reversed)[link]', errorRange: [ - 1, - 2, + 3, + 16, ], fixInfo: { - deleteCount: 20, - editColumn: 1, - insertText: '# Heading 1 {MD020} #', + deleteCount: 16, + editColumn: 3, + insertText: '[reversed](link)', }, - lineNumber: 1, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + lineNumber: 5, + ruleDescription: 'Reversed link syntax', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md', ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', + 'MD011', + 'no-reversed-links', ], }, { - errorContext: '## Heading 2 {MD020}##', - errorDetail: null, + errorContext: null, + errorDetail: '(reversed)[link]', errorRange: [ - 20, - 3, + 11, + 16, ], fixInfo: { - deleteCount: 22, - editColumn: 1, - insertText: '## Heading 2 {MD020} ##', + deleteCount: 16, + editColumn: 11, + insertText: '[reversed](link)', }, - lineNumber: 3, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + lineNumber: 26, + ruleDescription: 'Reversed link syntax', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md', ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', + 'MD011', + 'no-reversed-links', ], }, { - errorContext: '##Heading 3 {MD020}##', + 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/md012.md', + 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/md013.md', + 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/md013.md', + ruleNames: [ + 'MD013', + 'line-length', + ], + }, + { + errorContext: '$ command with no output {MD01...', errorDetail: null, errorRange: [ - 1, - 3, + 5, + 2, ], fixInfo: { - deleteCount: 21, - editColumn: 1, - insertText: '## Heading 3 {MD020} ##', + deleteCount: 2, + editColumn: 5, }, - lineNumber: 5, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + lineNumber: 12, + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', + 'MD014', + 'commands-show-output', ], }, { - errorContext: '## Heading 4 {MD021} ##', + errorContext: '##No space A {MD018}', errorDetail: null, errorRange: [ - 4, 1, + 3, ], fixInfo: { - deleteCount: 1, - editColumn: 4, + editColumn: 3, + insertText: ' ', }, - lineNumber: 7, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 14, + ruleDescription: 'No space after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD018', + 'no-missing-space-atx', ], }, { - errorContext: '## Heading 5 {MD021} ##', + errorContext: '## Multiple spaces B {MD019}', errorDetail: null, errorRange: [ - 22, + 4, 1, ], fixInfo: { deleteCount: 1, - editColumn: 22, + editColumn: 4, }, - lineNumber: 9, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 16, + ruleDescription: 'Multiple spaces after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD019', + 'no-multiple-space-atx', ], }, { - errorContext: '## Heading 6 {MD021} ##', + errorContext: '##No space C {MD020} ##', errorDetail: null, errorRange: [ - 4, 1, + 3, ], fixInfo: { - deleteCount: 1, - editColumn: 4, + deleteCount: 23, + editColumn: 1, + insertText: '## No space C {MD020} ##', }, - lineNumber: 11, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 18, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD020', + 'no-missing-space-closed-atx', ], }, { - errorContext: '## Heading 6 {MD021} ##', + errorContext: '## No space D {MD020}##', errorDetail: null, errorRange: [ - 23, - 1, + 21, + 3, ], fixInfo: { - deleteCount: 1, - editColumn: 23, + deleteCount: 23, + editColumn: 1, + insertText: '## No space D {MD020} ##', }, - lineNumber: 11, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 20, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD020', + 'no-missing-space-closed-atx', ], }, { - errorContext: '## Heading 7 {MD021} ##', + errorContext: '## Multiple spaces E {MD021} ...', errorDetail: null, errorRange: [ 4, - 2, + 1, ], fixInfo: { - deleteCount: 2, + deleteCount: 1, editColumn: 4, }, - lineNumber: 13, + lineNumber: 22, ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ @@ -486,17 +540,17 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '## Heading 7 {MD021} ##', + errorContext: '... Multiple spaces F {MD021} ##', errorDetail: null, errorRange: [ - 24, - 2, + 30, + 1, ], fixInfo: { - deleteCount: 2, - editColumn: 24, + deleteCount: 1, + editColumn: 30, }, - lineNumber: 13, + lineNumber: 24, ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ @@ -505,501 +559,473 @@ Generated by [AVA](https://avajs.dev). ], }, ], - fixed: `# Heading 1 {MD020} #␊ + fixed: `# Top level heading␊ ␊ - ## Heading 2 {MD020} ##␊ + ␊ ␊ - ## Heading 3 {MD020} ##␊ + A [reversed](link) example. {MD011}␊ ␊ - ## Heading 4 {MD021} ##␊ + 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789␊ ␊ - ## Heading 5 {MD021} ##␊ + ## 123456789 123456789 123456789 123456789 123456789 123456789␊ ␊ - ## Heading 6 {MD021} ##␊ + command with no output {MD014}␊ ␊ - ## Heading 7 {MD021} ##␊ + ## No space A {MD018}␊ ␊ - ## Heading 8\\#␊ + ## Multiple spaces B {MD019}␊ ␊ - ## Heading 9 \\#␊ + ## No space C {MD020} ##␊ ␊ - ## Heading 10 \\#␊ + ## No space D {MD020} ##␊ ␊ - ␊ - `, - } + ## Multiple spaces E {MD021} ##␊ + ␊ + ## Multiple spaces F {MD021} ##␊ + ␊ + *Another* [reversed](link) example. {MD011}␊ + ␊ + {MD012:7} {MD013:8} {MD013:10}␊ + ␊ + ␊ + `, + } -## atx_heading_spacing.md +## MD022-MD030.md > Snapshot 1 { errors: [ { - errorContext: '#Heading 1 {MD018}', - errorDetail: null, - errorRange: [ - 1, - 2, - ], + errorContext: '# Heading', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - editColumn: 2, - insertText: ' ', + insertText: `␊ + `, + lineNumber: 2, }, lineNumber: 1, - ruleDescription: 'No space after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md', + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD018', - 'no-missing-space-atx', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: '## Heading 2 {MD019}', + errorContext: ' # Heading', errorDetail: null, errorRange: [ - 4, + 1, 1, ], fixInfo: { deleteCount: 1, - editColumn: 4, + editColumn: 1, }, - lineNumber: 3, - ruleDescription: 'Multiple spaces after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', + lineNumber: 1, + ruleDescription: 'Headings must start at the beginning of the line', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md', ruleNames: [ - 'MD019', - 'no-multiple-space-atx', + 'MD023', + 'heading-start-left', ], }, { - errorContext: '## Heading 3 {MD019}', + 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/md024.md', + ruleNames: [ + 'MD024', + 'no-duplicate-heading', + ], + }, + { + 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/md025.md', + ruleNames: [ + 'MD025', + 'single-title', + 'single-h1', + ], + }, + { + errorContext: null, + errorDetail: 'Punctuation: \'.\'', errorRange: [ - 4, - 2, + 27, + 1, ], fixInfo: { - deleteCount: 2, - editColumn: 4, + deleteCount: 1, + editColumn: 27, }, - lineNumber: 5, - ruleDescription: 'Multiple spaces after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', + lineNumber: 6, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD019', - 'no-multiple-space-atx', + 'MD026', + 'no-trailing-punctuation', ], }, - ], - fixed: `# Heading 1 {MD018}␊ - ␊ - ## Heading 2 {MD019}␊ - ␊ - ## Heading 3 {MD019}␊ - ␊ - ␊ - `, - } - -## backslashes-and-backticks.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Heading␊ - ␊ - \\\\\`\\\\␊ - \\\\\`\\\\␊ - `, - } - -## bare-list-markers.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Bare List Markers␊ - ␊ - ## Ordered 1/1/1␊ - ␊ - 1.␊ - 1.␊ - 1.␊ - ␊ - ## Ordered 1/2/3␊ - ␊ - 1.␊ - 2.␊ - 3.␊ - ␊ - ## Unordered *␊ - ␊ - *␊ - *␊ - *␊ - ␊ - ## Unordered +␊ - ␊ - +␊ - +␊ - +␊ - ␊ - ## Unordered -␊ - ␊ - -␊ - -␊ - -␊ - ␊ - ␊ - `, - } - -## bare-urls-in-html.md - -> Snapshot 1 - - { - errors: [ { - errorContext: 'https://example.com/fail', + errorContext: '> Multiple spaces {MD027}', errorDetail: null, errorRange: [ - 6, - 24, + 3, + 1, ], fixInfo: { - deleteCount: 24, - editColumn: 6, - insertText: '', + deleteCount: 1, + editColumn: 3, }, - lineNumber: 7, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 8, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: 'https://example.com/fail', + errorContext: '> > Multiple spaces, multiple...', errorDetail: null, errorRange: [ - 49, - 24, + 5, + 1, ], fixInfo: { - deleteCount: 24, - editColumn: 49, - insertText: '', + deleteCount: 1, + editColumn: 5, }, - lineNumber: 11, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 15, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: 'https://example.com/fail', + errorContext: '> > > Multiple spaces, multip...', errorDetail: null, errorRange: [ - 49, - 24, + 7, + 1, ], fixInfo: { - deleteCount: 24, - editColumn: 49, - insertText: '', + deleteCount: 1, + editColumn: 7, }, - lineNumber: 13, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 17, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: 'https://example.com/fail', + errorContext: '> > > Multiple spaces, multip...', errorDetail: null, errorRange: [ - 41, - 24, + 3, + 1, ], fixInfo: { - deleteCount: 24, - editColumn: 41, - insertText: '', + deleteCount: 1, + editColumn: 3, }, lineNumber: 19, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: 'https://example.com/fail', + 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/md028.md', + ruleNames: [ + 'MD028', + 'no-blanks-blockquote', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 2; Actual: 3; Style: 1/2/3', errorRange: [ - 16, - 24, + 1, + 4, ], - fixInfo: { - deleteCount: 24, - editColumn: 16, - insertText: '', - }, - lineNumber: 21, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 13, + ruleDescription: 'Ordered list item prefix', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md029.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD029', + 'ol-prefix', ], }, { - errorContext: 'https://example.com/fail', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ - 17, - 24, + 1, + 4, ], fixInfo: { - deleteCount: 24, - editColumn: 17, - insertText: '', + deleteCount: 2, + editColumn: 3, + insertText: ' ', }, - lineNumber: 23, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 13, + ruleDescription: 'Spaces after list markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD030', + 'list-marker-space', ], }, ], - fixed: `# Bare URLs in HTML␊ - ␊ -

␊ - https://example.com/pass␊ -

␊ - ␊ - Text text. {MD034}␊ - ␊ - Text https://example.com/pass text.␊ + fixed: `# Heading␊ ␊ - Text https://example.com/pass text text. {MD034}␊ + Text␊ ␊ - Text https://example.com/pass text text https://example.com/pass text. {MD034}␊ + # Heading␊ ␊ - Text text text https://example.com/pass text.␊ + ## Another heading {MD026}␊ ␊ - Text text text https://example.com/pass text.␊ + > Multiple spaces {MD027}␊ ␊ - Text text text text text. {MD034}␊ + > Blank line above␊ ␊ - Text
text
text. {MD034}␊ + 1. Alpha␊ + 3. Beta {MD029} {MD030}␊ ␊ - Text
text
text. {MD034}␊ + > > Multiple spaces, multiple blockquotes {MD027}␊ + > >␊ + > > > Multiple spaces, multiple blockquotes {MD027}␊ + > > >␊ + > > > Multiple spaces, multiple blockquotes {MD027}␊ ␊ - ␊ + {MD022:1} {MD023:1} {MD024:4} {MD025:4} {MD028:9}␊ `, } -## bare-urls.md +## MD030-warning-message.md > Snapshot 1 { errors: [ { - errorContext: 'https://example.com', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ - 15, - 19, + 1, + 3, ], fixInfo: { - deleteCount: 19, - editColumn: 15, - insertText: '', + deleteCount: 2, + editColumn: 2, + insertText: ' ', }, - lineNumber: 3, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 19, + ruleDescription: 'Spaces after list markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD030', + 'list-marker-space', ], }, { - errorContext: 'https://example.com/', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ - 15, - 20, + 1, + 4, ], fixInfo: { - deleteCount: 20, - editColumn: 15, - insertText: '', + deleteCount: 2, + editColumn: 3, + insertText: ' ', }, - lineNumber: 5, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 21, + ruleDescription: 'Spaces after list markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD030', + 'list-marker-space', ], }, { - errorContext: 'https://example.com/?query=str...', + errorContext: '-', errorDetail: null, - errorRange: [ - 15, - 38, - ], + errorRange: null, fixInfo: { - deleteCount: 38, - editColumn: 15, - insertText: '', + insertText: `␊ + `, + lineNumber: 4, }, - lineNumber: 7, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 3, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: 'https://example.com/info.htm', + errorContext: '1.', errorDetail: null, - errorRange: [ - 15, - 28, - ], + errorRange: null, fixInfo: { - deleteCount: 28, - editColumn: 15, - insertText: '', + insertText: `␊ + `, + lineNumber: 7, }, - lineNumber: 9, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 6, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD032', + 'blanks-around-lists', ], }, + ], + fixed: `#␊ + ␊ + -␊ + ␊ + (bare list item marker {MD032:3})␊ + ␊ + 1.␊ + ␊ + (bare list item marker {MD032:6})␊ + ␊ + -a␊ + (not a list item)␊ + ␊ + 1.a␊ + (not a list item)␊ + ␊ + - a␊ + ␊ + 1. a␊ + ␊ + - a {MD030}␊ + ␊ + 1. a {MD030}␊ + `, + } + +## MD031-MD040.md + +> Snapshot 1 + + { + errors: [ { - errorContext: 'https://example.com', + errorContext: '```', errorDetail: null, - errorRange: [ - 7, - 19, - ], + errorRange: null, fixInfo: { - deleteCount: 19, - editColumn: 7, - insertText: '', + insertText: `␊ + `, + lineNumber: 4, }, - lineNumber: 11, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 3, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: 'https://example.com', + errorContext: '* List {MD032}', errorDetail: null, - errorRange: [ - 11, - 19, - ], + errorRange: null, fixInfo: { - deleteCount: 19, - editColumn: 11, - insertText: '', + insertText: `␊ + `, }, - lineNumber: 13, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 4, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: 'https://example.com', + errorContext: '* List {MD032}', errorDetail: null, - errorRange: [ - 25, - 19, - ], + errorRange: null, fixInfo: { - deleteCount: 19, - editColumn: 25, - insertText: '', + insertText: `␊ + `, + lineNumber: 48, }, - lineNumber: 29, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 47, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: 'https://example.com', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: hr', errorRange: [ - 26, - 19, + 7, + 5, ], - fixInfo: { - deleteCount: 19, - editColumn: 26, - insertText: '', - }, - lineNumber: 31, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 6, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD033', + 'no-inline-html', ], }, { errorContext: 'https://example.com', errorDetail: null, errorRange: [ - 1, + 6, 19, ], fixInfo: { deleteCount: 19, - editColumn: 1, + editColumn: 6, insertText: '', }, - lineNumber: 73, + lineNumber: 8, ruleDescription: 'Bare URL used', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ @@ -1008,2212 +1034,1539 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: 'https://example.com', - errorDetail: null, - errorRange: [ - 1, - 19, + 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/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', ], - fixInfo: { - deleteCount: 19, - editColumn: 1, - insertText: '', - }, - lineNumber: 78, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + }, + { + errorContext: 'Emphasis {MD036}', + 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/md036.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD036', + 'no-emphasis-as-heading', ], }, { - errorContext: 'https://example.com#heading-', + errorContext: '* i', errorDetail: null, errorRange: [ - 27, - 28, + 7, + 3, ], fixInfo: { - deleteCount: 28, - editColumn: 27, - insertText: '', + deleteCount: 1, + editColumn: 8, }, - lineNumber: 88, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 15, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: 'user@example.com', + errorContext: 'e *', errorDetail: null, errorRange: [ - 40, - 16, + 14, + 3, ], fixInfo: { - deleteCount: 16, - editColumn: 40, - insertText: '', + deleteCount: 1, + editColumn: 15, }, - lineNumber: 96, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 15, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: 'https://example.com', + errorContext: '* s', errorDetail: null, errorRange: [ - 59, - 19, + 17, + 3, ], fixInfo: { - deleteCount: 19, - editColumn: 59, - insertText: '', + deleteCount: 1, + editColumn: 18, }, - lineNumber: 106, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 31, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD037', + 'no-space-in-emphasis', ], }, - ], - fixed: `# Detailed Results Bare URLs␊ - ␊ - For more, see . {MD034}␊ - ␊ - For more, see . {MD034}␊ - ␊ - For more, see . {MD034}␊ - ␊ - For more, see . {MD034}␊ - ␊ - Visit , then refresh. {MD034}␊ - ␊ - The site () is down. {MD034}␊ - ␊ - ␊ - ␊ - Some documents use to link.␊ - ␊ - Or to link.␊ - ␊ - Or repeat the URL https://example.com.␊ - ␊ - Or https://example.com/info.htm.␊ - ␊ - This is allowed to avoid embedding angle brackets in HTML Text https://example.com.␊ - ␊ - As is https://example.com/info.htm text.␊ - ␊ -
Another violation: . {MD034}
␊ - ␊ -
Another violation: . {MD034}
␊ - ␊ - This is not a bare [link]( https://example.com ).␊ - ␊ - Nor is [link](https://example.com/path-with(parens)).␊ - ␊ - Or .␊ - ␊ - URLs in HTML attributes are not bare:␊ - ␊ - ␊ - Text␊ - ␊ - ␊ - ␊ - ␊ - URLs surrounded by HTML tags are not bare:␊ - ␊ - Not https://example.com bare.␊ - ␊ - Not
https://example.com
bare.␊ - ␊ -

␊ - Not bare due to being in an HTML block:␊ - https://example.com␊ - https://example.com␊ -

https://example.com
␊ -

␊ - ␊ -
␊ - https://example.com␊ -
␊ - ␊ -
␊ - https://example.com␊ - ␊ -
␊ - ␊ -
␊ - ␊ - {MD034}␊ -
␊ - ␊ -
␊ - ␊ - {MD034}␊ - ␊ -
␊ - ␊ - URLs in link and image text are not bare:␊ - ␊ - Text [link to https://example.com site](https://example.com) text.␊ - ␊ - Image ![for https://example.com site](https://example.com) text.␊ - ␊ - URLs may end with a dash: {MD034}␊ - ␊ - ... when explicit: ␊ - ␊ - ... when embedded: https://example.com#heading-␊ - ␊ - Links with spaces inside angle brackets are okay: [blue jay]()␊ - ␊ - Email addresses are treated similarly: {MD034}␊ - ␊ - Angle brackets work the same for email: ␊ - ␊ - Unusual email addresses are handled: ␊ - ␊ - ---␊ - ␊ - [is-a-valid]: https://example.com␊ - ␊ - Links bind to the innermost [link that [is-a-valid] link]() {MD034}␊ - ␊ - But not if the [link [is-not-a-valid] link](https://example.com)␊ - ␊ - Escaping both inner square brackets avoids confusion:␊ - [link \\[is-not-a-valid\\] link](https://example.com)␊ - `, - } - -## blanks-around-fences-in-lists.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '```', + errorContext: 'e *', errorDetail: null, - errorRange: null, + errorRange: [ + 21, + 3, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 6, + deleteCount: 1, + editColumn: 22, }, - lineNumber: 5, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 32, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '2. ```text', + errorContext: 'e **', errorDetail: null, - errorRange: null, + errorRange: [ + 22, + 4, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 6, + deleteCount: 1, + editColumn: 23, }, - lineNumber: 6, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 33, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '```', + errorContext: '_ s', errorDetail: null, - errorRange: null, + errorRange: [ + 17, + 3, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 9, + deleteCount: 1, + editColumn: 18, }, - lineNumber: 8, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 34, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '3. ```text', + errorContext: '__ s', errorDetail: null, - errorRange: null, + errorRange: [ + 19, + 4, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 9, + deleteCount: 1, + editColumn: 21, }, - lineNumber: 9, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 35, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '```', + errorContext: 'e __', errorDetail: null, - errorRange: null, + errorRange: [ + 25, + 4, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 18, + deleteCount: 1, + editColumn: 26, }, - lineNumber: 17, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 35, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '- ```text', + errorContext: '* i', errorDetail: null, - errorRange: null, + errorRange: [ + 7, + 3, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 18, + deleteCount: 1, + editColumn: 8, }, - lineNumber: 18, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 62, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '```', + errorContext: 'e *', errorDetail: null, - errorRange: null, + errorRange: [ + 10, + 3, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 21, + deleteCount: 1, + editColumn: 11, }, - lineNumber: 20, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 63, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '- ```text', + errorContext: '` inside`', errorDetail: null, - errorRange: null, + errorRange: [ + 7, + 9, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 21, + deleteCount: 7, + editColumn: 8, + insertText: 'inside', }, - lineNumber: 21, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 17, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '> ```', + errorContext: '`` inside``', errorDetail: null, - errorRange: null, + errorRange: [ + 7, + 11, + ], fixInfo: { - insertText: `>␊ - `, - lineNumber: 30, + deleteCount: 7, + editColumn: 9, + insertText: 'inside', }, - lineNumber: 29, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 24, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '> 2. ```text', + errorContext: '` code`', errorDetail: null, - errorRange: null, + errorRange: [ + 19, + 7, + ], fixInfo: { - insertText: `>␊ - `, - lineNumber: 30, + deleteCount: 5, + editColumn: 20, + insertText: 'code', }, - lineNumber: 30, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 25, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '> ```', + errorContext: '` elements`', errorDetail: null, - errorRange: null, + errorRange: [ + 26, + 11, + ], fixInfo: { - insertText: `>␊ - `, - lineNumber: 33, + deleteCount: 9, + editColumn: 27, + insertText: 'elements', }, - lineNumber: 32, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 26, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '> 3. ```text', + errorContext: '`` code``', errorDetail: null, - errorRange: null, + errorRange: [ + 21, + 9, + ], fixInfo: { - insertText: `>␊ - `, - lineNumber: 33, + deleteCount: 5, + editColumn: 23, + insertText: 'code', }, - lineNumber: 33, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 27, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '> ```', + errorContext: '`` ` embedded backtick``', errorDetail: null, - errorRange: null, + errorRange: [ + 1, + 25, + ], fixInfo: { - insertText: `>␊ - `, - lineNumber: 42, + deleteCount: 21, + editColumn: 3, + insertText: ' ` embedded backtick', }, - lineNumber: 41, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 28, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '> - ```text', + errorContext: '``embedded backtick` ``', errorDetail: null, - errorRange: null, + errorRange: [ + 1, + 24, + ], fixInfo: { - insertText: `>␊ - `, - lineNumber: 42, + deleteCount: 20, + editColumn: 3, + insertText: 'embedded backtick` ', }, - lineNumber: 42, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 29, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '> ```', + errorContext: '` code {MD038}', errorDetail: null, - errorRange: null, + errorRange: [ + 6, + 14, + ], fixInfo: { - insertText: `>␊ - `, - lineNumber: 45, + deleteCount: 13, + editColumn: 7, + insertText: 'code {MD038}', }, - lineNumber: 44, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 38, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '> - ```text', + errorContext: 'span `', errorDetail: null, - errorRange: null, + errorRange: [ + 1, + 7, + ], fixInfo: { - insertText: `>␊ - `, - lineNumber: 45, + deleteCount: 6, + editColumn: 1, + insertText: 'span', }, - lineNumber: 45, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 44, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '> > ```', + errorContext: 'span code ```', errorDetail: null, - errorRange: null, + errorRange: [ + 1, + 13, + ], fixInfo: { - insertText: `> >␊ - `, - lineNumber: 54, + deleteCount: 10, + editColumn: 1, + insertText: 'span code', }, lineNumber: 53, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '> > 2. ```text', + errorContext: '```` code {MD038}', errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `> >␊ - `, - lineNumber: 54, - }, - lineNumber: 54, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', - ruleNames: [ - 'MD031', - 'blanks-around-fences', + errorRange: [ + 11, + 17, ], - }, - { - errorContext: '> > ```', - errorDetail: null, - errorRange: null, fixInfo: { - insertText: `> >␊ - `, - lineNumber: 57, + deleteCount: 13, + editColumn: 15, + insertText: 'code {MD038}', }, - lineNumber: 56, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 55, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '> > 3. ```text', + errorContext: '[ inside ]', errorDetail: null, - errorRange: null, + errorRange: [ + 7, + 10, + ], fixInfo: { - insertText: `> >␊ - `, - lineNumber: 57, + deleteCount: 8, + editColumn: 8, + insertText: 'inside', }, - lineNumber: 57, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 19, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD039', + 'no-space-in-links', ], }, { - errorContext: '> > ```', + errorContext: '[ space]', errorDetail: null, - errorRange: null, + errorRange: [ + 6, + 8, + ], fixInfo: { - insertText: `> >␊ - `, - lineNumber: 66, + deleteCount: 6, + editColumn: 7, + insertText: 'space', }, - lineNumber: 65, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 60, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD039', + 'no-space-in-links', ], }, { - errorContext: '> > - ```text', + errorContext: '[space ]', errorDetail: null, - errorRange: null, + errorRange: [ + 26, + 8, + ], fixInfo: { - insertText: `> >␊ - `, - lineNumber: 66, + deleteCount: 6, + editColumn: 27, + insertText: 'space', }, - lineNumber: 66, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 60, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD039', + 'no-space-in-links', ], }, { - errorContext: '> > ```', + errorContext: '[ space ]', errorDetail: null, - errorRange: null, + errorRange: [ + 46, + 9, + ], fixInfo: { - insertText: `> >␊ - `, - lineNumber: 69, + deleteCount: 7, + editColumn: 47, + insertText: 'space', }, - lineNumber: 68, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 60, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD039', + 'no-space-in-links', ], }, { - errorContext: '> > - ```text', + errorContext: '```', errorDetail: null, errorRange: null, - fixInfo: { - insertText: `> >␊ - `, - lineNumber: 69, - }, - lineNumber: 69, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + fixInfo: null, + lineNumber: 21, + ruleDescription: 'Fenced code blocks should have a language specified', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD040', + 'fenced-code-language', ], }, ], - fixed: `# Blanks Around Fences In Lists␊ - ␊ - 1. \`\`\`text␊ - Text␊ - \`\`\`␊ - ␊ - 2. \`\`\`text␊ - Text␊ - \`\`\`␊ - ␊ - 3. \`\`\`text␊ - Text␊ - \`\`\`␊ - ␊ - Text␊ - ␊ - - \`\`\`text␊ - Text␊ - \`\`\`␊ - ␊ - - \`\`\`text␊ - Text␊ - \`\`\`␊ - ␊ - - \`\`\`text␊ - Text␊ - \`\`\`␊ + fixed: `\`\`\`js␊ + debugger;␊ + \`\`\`␊ ␊ - Text␊ + * List {MD032}␊ ␊ - > 1. \`\`\`text␊ - > Text␊ - > \`\`\`␊ - >␊ - > 2. \`\`\`text␊ - > Text␊ - > \`\`\`␊ - >␊ - > 3. \`\`\`text␊ - > Text␊ - > \`\`\`␊ + Inline
HTML {MD033}␊ ␊ - Text␊ + Bare link {MD034}␊ ␊ - > - \`\`\`text␊ - > Text␊ - > \`\`\`␊ - >␊ - > - \`\`\`text␊ - > Text␊ - > \`\`\`␊ - >␊ - > - \`\`\`text␊ - > Text␊ - > \`\`\`␊ + ---␊ + ***␊ ␊ - Text␊ + *Emphasis {MD036}*␊ ␊ - > > 1. \`\`\`text␊ - > > Text␊ - > > \`\`\`␊ - > >␊ - > > 2. \`\`\`text␊ - > > Text␊ - > > \`\`\`␊ - > >␊ - > > 3. \`\`\`text␊ - > > Text␊ - > > \`\`\`␊ + Space *inside* emphasis {MD037}␊ ␊ - Text␊ + Space \`inside\` code span {MD038}␊ ␊ - > > - \`\`\`text␊ - > > Text␊ - > > \`\`\`␊ - > >␊ - > > - \`\`\`text␊ - > > Text␊ - > > \`\`\`␊ - > >␊ - > > - \`\`\`text␊ - > > Text␊ - > > \`\`\`␊ + Space [inside](link) text {MD039}␊ ␊ - {MD031:5} {MD031:6} {MD031:8} {MD031:9} {MD031:17} {MD031:18} {MD031:20}␊ - {MD031:21} {MD031:29} {MD031:30} {MD031:32} {MD031:33} {MD031:41} {MD031:42}␊ - {MD031:44} {MD031:45} {MD031:53} {MD031:54} {MD031:56} {MD031:57} {MD031:65}␊ - {MD031:66} {MD031:68} {MD031:69}␊ - `, - } - -## blanks-around-headings--1-1.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: 'Elderberry {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 21, - }, - lineNumber: 19, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - ], - }, - ], - fixed: `# Blanks Around Headings␊ + \`\`\`␊ + \`\`\`␊ ␊ - ## Apple␊ + space \`\`inside\`\` code {MD038}␊ + space \`inside\` of \`code\` elements {MD038}␊ + \`space\` inside \`of\` code \`elements\` {MD038}␊ + space \`\`inside\`\` of \`\`code\`\` elements {MD038}␊ + \`\` \` embedded backtick\`\` {MD038}␊ + \`\`embedded backtick\` \`\` {MD038}␊ ␊ - Text␊ - ## Banana␊ + some *space* in *some* emphasis {MD037}␊ + some *space* in *some* emphasis {MD037}␊ + some *space* in **some** emphasis {MD037}␊ + some _space_ in _some_ emphasis {MD037}␊ + some __space__ in __some__ emphasis {MD037}␊ ␊ Text␊ - ␊ - ## Cherry␊ + text \`code {MD038}␊ + span\` text␊ + text.␊ ␊ Text␊ + text \`code␊ + span\` text {MD038}␊ + text.␊ ␊ + * List {MD032}␊ ␊ - ## Durian ##␊ + ---␊ ␊ Text␊ + text \`\`\`code␊ + span code␊ + span code\`\`\` text {MD038}␊ + text␊ + text text \`\`\`\`code {MD038}␊ + span code␊ + span\`\`\`\` text␊ + text.␊ ␊ - Elderberry {MD022}␊ - ------------------␊ + Text [space](link) text [space](link) text [space](link) text. {MD039}␊ ␊ - Text␊ + Space *inside {MD037}␊ + multi-line* emphasis. {MD037}␊ ␊ - ---␊ - ## Fig␊ + {MD031:3} {MD035:11} {MD040:21}␊ ␊ ␊ `, } -## blanks-around-headings-0-2.md +## MD041-MD050.md > Snapshot 1 { errors: [ { - errorContext: '## Banana {MD022}', - errorDetail: 'Expected: 2; Actual: 1; Below', + errorContext: 'Not a heading {MD041}', + errorDetail: null, 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/md022.md', + 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/md041.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD041', + 'first-line-heading', + 'first-line-h1', ], }, { - errorContext: 'Elderberry {MD022}', - 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/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', + 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/md042.md', + ruleNames: [ + 'MD042', + 'no-empty-links', ], }, - ], - fixed: `# Blanks Around Headings␊ - ␊ - ␊ - ## Apple␊ - ␊ - ␊ - Text␊ - ## Banana {MD022}␊ - ␊ - ␊ - Text␊ - ## Cherry␊ - ␊ - ␊ - Text␊ - ## Durian ##␊ - ␊ - ␊ - Text␊ - ␊ - ---␊ - Elderberry {MD022}␊ - ------------------␊ - ␊ - ␊ - Text␊ - ## Fig␊ - ␊ - ␊ - `, - } - -## blanks-around-headings-1--1.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '## Durian {MD022} ##', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 16, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + 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/md042.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD042', + 'no-empty-links', ], }, - ], - fixed: `# Blanks Around Headings␊ - ␊ - ## Apple␊ - Text␊ - ␊ - ## Banana␊ - ␊ - Text␊ - ␊ - ## Cherry␊ - ␊ - ␊ - Text␊ - ␊ - ---␊ - ␊ - ## Durian {MD022} ##␊ - ␊ - Text␊ - ␊ - ---␊ - ␊ - Elderberry␊ - ------------------␊ - Text␊ - ␊ - ## Fig␊ - ␊ - ␊ - `, - } - -## blanks-around-headings-3-0.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '## Durian {MD022} ##', - 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/md022.md', + 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/md042.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD042', + 'no-empty-links', ], }, { - errorContext: 'Elderberry {MD022}', - 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/md022.md', + 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/md042.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD042', + 'no-empty-links', ], }, - ], - fixed: `# Blanks Around Headings␊ - ␊ - ␊ - ␊ - ## Apple␊ - Text␊ - ␊ - ␊ - ␊ - ## Banana␊ - Text␊ - ␊ - ␊ - ␊ - ## Cherry␊ - Text␊ - ␊ - ␊ - ␊ - ## Durian {MD022} ##␊ - Text␊ - ␊ - ␊ - ␊ - Elderberry {MD022}␊ - ------------------␊ - Text␊ - ␊ - ␊ - ␊ - ## Fig␊ - ␊ - ␊ - `, - } - -## blanks-around-headings-arrays.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '# Apple - Top {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Above', + errorContext: '# Heading', + errorDetail: null, errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 5, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + fixInfo: null, + lineNumber: 64, + ruleDescription: 'Required heading structure', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md043.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD043', + 'required-headings', ], }, { - errorContext: '## Banana - Top {MD022}', - errorDetail: 'Expected: 2; Actual: 1; Above', - errorRange: null, + errorContext: null, + errorDetail: 'Expected: markdownlint; Actual: MARKDOWNLINT', + errorRange: [ + 29, + 12, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 12, + editColumn: 29, + insertText: 'markdownlint', }, - lineNumber: 18, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 9, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD044', + 'proper-names', ], }, { - errorContext: '## Banana - Bottom {MD022}', - errorDetail: 'Expected: 2; Actual: 1; Below', - errorRange: null, + errorContext: null, + errorDetail: 'Expected: markdownlint; Actual: Markdownlint', + errorRange: [ + 7, + 12, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 25, + deleteCount: 12, + editColumn: 7, + insertText: 'markdownlint', }, - lineNumber: 24, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 12, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD044', + 'proper-names', ], }, { - errorContext: '### Cherry - Top {MD022}', - errorDetail: 'Expected: 3; Actual: 2; Above', - errorRange: null, + errorContext: null, + errorDetail: 'Expected: markdownlint; Actual: MarkDownLint', + errorRange: [ + 1, + 12, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 12, + editColumn: 1, + insertText: 'markdownlint', }, - lineNumber: 35, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 15, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD044', + 'proper-names', ], }, { - errorContext: '### Cherry - Bottom {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 42, - }, - lineNumber: 41, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + errorContext: null, + errorDetail: null, + errorRange: [ + 33, + 14, + ], + fixInfo: null, + lineNumber: 19, + ruleDescription: 'Images should have alternate text (alt text)', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md045.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD045', + 'no-alt-text', ], }, { - errorContext: '#### Durian - Bottom {MD022} ####', - errorDetail: 'Expected: 3; Actual: 1; Below', + errorContext: null, + errorDetail: 'Expected: fenced; Actual: indented', errorRange: null, - fixInfo: { - insertText: `␊ - ␊ - `, - lineNumber: 55, - }, - lineNumber: 54, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + fixInfo: null, + lineNumber: 25, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD046', + 'code-block-style', ], }, { - errorContext: '##### Elderberry - Top {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, + errorContext: null, + errorDetail: null, + errorRange: [ + 41, + 1, + ], fixInfo: { + editColumn: 42, insertText: `␊ `, }, - lineNumber: 61, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 64, + ruleDescription: 'Files should end with a single newline character', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD047', + 'single-trailing-newline', ], }, { - errorContext: '###### Fig - Top {MD022} ######', - errorDetail: 'Expected: 1; Actual: 0; Above', + errorContext: null, + errorDetail: 'Expected: backtick; Actual: tilde', errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 74, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + fixInfo: null, + lineNumber: 27, + ruleDescription: 'Code fence style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD048', + 'code-fence-style', ], }, { - errorContext: '###### Fig - Bottom {MD022} ######', - errorDetail: 'Expected: 4; Actual: 1; Below', - errorRange: null, + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 21, + 1, + ], fixInfo: { - insertText: `␊ - ␊ - ␊ - `, - lineNumber: 82, + deleteCount: 1, + editColumn: 21, + insertText: '*', }, - lineNumber: 81, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 31, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD049', + 'emphasis-style', ], }, { - errorContext: 'Grape - Top {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 26, + 1, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 1, + editColumn: 26, + insertText: '*', }, - lineNumber: 89, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 31, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD049', + 'emphasis-style', ], }, { - errorContext: 'Honeycomb - Top {MD022}', - errorDetail: 'Expected: 2; Actual: 1; Above', - errorRange: null, + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 49, + 1, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 1, + editColumn: 49, + insertText: '*', }, - lineNumber: 107, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 31, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD049', + 'emphasis-style', ], }, { - errorContext: 'Honeycomb - Bottom {MD022}', - errorDetail: 'Expected: 2; Actual: 1; Below', - errorRange: null, + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 56, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 116, + deleteCount: 1, + editColumn: 56, + insertText: '*', }, - lineNumber: 114, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 31, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD049', + 'emphasis-style', ], }, - ], - fixed: `# Blanks Around Headings (Arrays)␊ - ␊ - # Apple - Good␊ - Text␊ - ␊ - # Apple - Top {MD022}␊ - Text␊ - ␊ - # Apple - Bottom␊ - ␊ - Text␊ - ␊ - ␊ - ## Banana - Good␊ - ␊ - ␊ - Text␊ - ␊ - ␊ - ## Banana - Top {MD022}␊ - ␊ - ␊ - Text␊ - ␊ - ␊ - ## Banana - Bottom {MD022}␊ - ␊ - ␊ - Text␊ - ␊ - ␊ - ␊ - ### Cherry - Good␊ - ␊ - Text␊ - ␊ - ␊ - ␊ - ### Cherry - Top {MD022}␊ - ␊ - Text␊ - ␊ - ␊ - ␊ - ### Cherry - Bottom {MD022}␊ - ␊ - Text␊ - #### Durian - Good ####␊ - ␊ - ␊ - ␊ - Text␊ - ␊ - #### Durian - Top ####␊ - ␊ - ␊ - ␊ - Text␊ - #### Durian - Bottom {MD022} ####␊ - ␊ - ␊ - ␊ - Text␊ - ␊ - ##### Elderberry - Good␊ - ␊ - Text␊ - ␊ - ##### Elderberry - Top {MD022}␊ - ␊ - Text␊ - ␊ - ##### Elderberry - Bottom␊ - Text␊ - ␊ - ###### Fig - Good ######␊ - ␊ - ␊ - ␊ - ␊ - Text␊ - ␊ - ###### Fig - Top {MD022} ######␊ - ␊ - ␊ - ␊ - ␊ - Text␊ - ␊ - ###### Fig - Bottom {MD022} ######␊ - ␊ - ␊ - ␊ - ␊ - Text␊ - ␊ - Grape - Good␊ - ============␊ - ␊ - ---␊ - ␊ - Grape - Top {MD022}␊ - ===================␊ - ␊ - Text␊ - ␊ - Grape - Bottom␊ - ==============␊ - ␊ - ␊ - Text␊ - ␊ - ␊ - Honeycomb - Good␊ - ---------␊ - ␊ - ␊ - Text␊ - ␊ - ␊ - Honeycomb - Top {MD022}␊ - -----------------------␊ - ␊ - ␊ - Text␊ - ␊ - ␊ - Honeycomb - Bottom {MD022}␊ - --------------------------␊ - ␊ - ␊ - Text␊ - ␊ - ␊ - `, - } - -## blanks-around-headings.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '## Banana {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 10, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 8, + deleteCount: 1, + editColumn: 10, + insertText: '*', }, - lineNumber: 7, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 36, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD049', + 'emphasis-style', ], }, { - errorContext: '## Durian {MD022} ##', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 9, + 1, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 1, + editColumn: 9, + insertText: '*', }, - lineNumber: 13, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 37, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD049', + 'emphasis-style', ], }, { - errorContext: 'Elderberry {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 14, + 1, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 1, + editColumn: 14, + insertText: '*', }, - lineNumber: 18, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 45, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD049', + 'emphasis-style', ], }, { - errorContext: 'Elderberry {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 21, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 20, + deleteCount: 1, + editColumn: 21, + insertText: '*', }, - lineNumber: 18, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 45, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD049', + 'emphasis-style', ], }, - ], - fixed: `# Blanks Around Headings␊ - ␊ - ## Apple␊ - ␊ - Text␊ - ␊ - ## Banana {MD022}␊ - ␊ - Text␊ - ␊ - ## Cherry␊ - ␊ - Text␊ - ␊ - ## Durian {MD022} ##␊ - ␊ - Text␊ - ␊ - ---␊ - ␊ - Elderberry {MD022}␊ - ------------------␊ - ␊ - Text␊ - ␊ - ## Fig␊ - ␊ - ␊ - `, - } - -## blanks-around-tables.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe', + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ - 1, + 28, 1, ], - fixInfo: null, - lineNumber: 15, - ruleDescription: 'Table pipe style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md055.md', + fixInfo: { + deleteCount: 1, + editColumn: 28, + insertText: '*', + }, + lineNumber: 45, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD055', - 'table-pipe-style', + 'MD049', + 'emphasis-style', ], }, { errorContext: null, - errorDetail: 'Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe', + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ - 29, + 40, 1, ], - fixInfo: null, - lineNumber: 15, - ruleDescription: 'Table pipe style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md055.md', + fixInfo: { + deleteCount: 1, + editColumn: 40, + insertText: '*', + }, + lineNumber: 45, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD055', - 'table-pipe-style', + 'MD049', + 'emphasis-style', ], }, { errorContext: null, - errorDetail: 'Expected: 2; Actual: 1; Too few cells, row will be missing data', + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ - 29, + 47, 1, ], - fixInfo: null, - lineNumber: 15, - ruleDescription: 'Table column count', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md056.md', - ruleNames: [ - 'MD056', - 'table-column-count', - ], - }, - { - errorContext: '| Header | {MD058} |', - errorDetail: null, - errorRange: null, fixInfo: { - insertText: `␊ - `, + deleteCount: 1, + editColumn: 47, + insertText: '*', }, - lineNumber: 8, - ruleDescription: 'Tables should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', + lineNumber: 45, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD058', - 'blanks-around-tables', + 'MD049', + 'emphasis-style', ], }, { - errorContext: '| Cell | {MD058} |', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 54, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 20, + deleteCount: 1, + editColumn: 54, + insertText: '*', }, - lineNumber: 19, - ruleDescription: 'Tables should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', + lineNumber: 45, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD058', - 'blanks-around-tables', + 'MD049', + 'emphasis-style', ], }, { - errorContext: '> | Header | {MD058} |', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 56, + 1, + ], fixInfo: { - insertText: `>␊ - `, + deleteCount: 1, + editColumn: 56, + insertText: '*', }, - lineNumber: 25, - ruleDescription: 'Tables should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', + lineNumber: 45, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD058', - 'blanks-around-tables', + 'MD049', + 'emphasis-style', ], }, { - errorContext: '> | Cell | {MD058} |', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 68, + 1, + ], fixInfo: { - insertText: `>␊ - `, - lineNumber: 28, + deleteCount: 1, + editColumn: 68, + insertText: '*', }, - lineNumber: 27, - ruleDescription: 'Tables should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', + lineNumber: 45, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD058', - 'blanks-around-tables', + 'MD049', + 'emphasis-style', ], }, { - errorContext: '> | Cell | {MD058} |', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 30, + 2, + ], fixInfo: { - insertText: `>␊ - `, - lineNumber: 33, + deleteCount: 2, + editColumn: 30, + insertText: '__', }, - lineNumber: 32, - ruleDescription: 'Tables should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', + lineNumber: 33, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD058', - 'blanks-around-tables', + 'MD050', + 'strong-style', ], }, { - errorContext: '| Header | {MD058} |', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 36, + 2, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 2, + editColumn: 36, + insertText: '__', }, - lineNumber: 36, - ruleDescription: 'Tables should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', + lineNumber: 33, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD058', - 'blanks-around-tables', + 'MD050', + 'strong-style', ], }, { - errorContext: '| Cell | {MD058} |', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 62, + 2, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 39, + deleteCount: 2, + editColumn: 62, + insertText: '__', }, - lineNumber: 38, - ruleDescription: 'Tables should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', + lineNumber: 33, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD058', - 'blanks-around-tables', + 'MD050', + 'strong-style', ], }, { - errorContext: '| Header | {MD058} |', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 42, - ruleDescription: 'Tables should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', - ruleNames: [ - 'MD058', - 'blanks-around-tables', + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 70, + 2, ], - }, - { - errorContext: '| Cell | {MD058} |', - errorDetail: null, - errorRange: null, fixInfo: { - insertText: `␊ - `, - lineNumber: 45, + deleteCount: 2, + editColumn: 70, + insertText: '__', }, - lineNumber: 44, - ruleDescription: 'Tables should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', + lineNumber: 33, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD058', - 'blanks-around-tables', + 'MD050', + 'strong-style', ], }, { - errorContext: '| Header | {MD058} |', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 48, - ruleDescription: 'Tables should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', - ruleNames: [ - 'MD058', - 'blanks-around-tables', + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 8, + 2, ], - }, - { - errorContext: '| Cell | {MD058} |', - errorDetail: null, - errorRange: null, fixInfo: { - insertText: `␊ - `, - lineNumber: 51, + deleteCount: 2, + editColumn: 8, + insertText: '__', }, - lineNumber: 50, - ruleDescription: 'Tables should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', + lineNumber: 41, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD058', - 'blanks-around-tables', + 'MD050', + 'strong-style', ], }, - ], - fixed: `# Blanks Around Tables␊ - ␊ - | Header | Header |␊ - | ------ | ------ |␊ - | Cell | Cell |␊ - ␊ - Text␊ - ␊ - | Header | {MD058} |␊ - | ------ | ------- |␊ - | Cell | Cell |␊ - ␊ - | Header | Header |␊ - | ------ | ------ |␊ - | Cell | Cell |␊ - Part of table {MD055} {MD056}␊ - ␊ - | Header | Header |␊ - | ------ | ------- |␊ - | Cell | {MD058} |␊ - ␊ - > Blockquote␊ - ␊ - Text␊ - ␊ - > Text␊ - >␊ - > | Header | {MD058} |␊ - > | ------ | ------- |␊ - > | Cell | {MD058} |␊ - >␊ - Text␊ - ␊ - > | Header | Header |␊ - > | ------ | ------- |␊ - > | Cell | {MD058} |␊ - >␊ - > > Blockquote␊ - ␊ - - List Item␊ - ␊ - | Header | {MD058} |␊ - | ------ | ------- |␊ - | Cell | {MD058} |␊ - ␊ - - List Item␊ - ␊ - 1. List Item␊ - ␊ - | Header | {MD058} |␊ - | ------ | ------- |␊ - | Cell | {MD058} |␊ - ␊ - 1. List Item␊ - ␊ - :::directive␊ - ␊ - | Header | {MD058} |␊ - | ------ | ------- |␊ - | Cell | {MD058} |␊ - ␊ - :::␊ - `, - } - -## blanks-around.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Blanks Around␊ - ␊ - ---␊ - ␊ - ## MD022/blanks-around-headings␊ - ␊ - >␊ - ### Alpha␊ - > >␊ - ␊ - ␊ - ### Beta␊ - ␊ - ␊ - > Text␊ - >␊ - > ### Gamma␊ - > >␊ - > > Text␊ - ␊ - ---␊ - ␊ - ## MD031/blanks-around-fences␊ - ␊ - > >␊ - \`\`\`js␊ - console.log();␊ - \`\`\`␊ - >␊ - ␊ - ␊ - \`\`\`js␊ - console.log();␊ - \`\`\`␊ - ␊ - ␊ - > Text␊ - >␊ - > \`\`\`js␊ - > console.log();␊ - > \`\`\`␊ - > >␊ - > >Text␊ - ␊ - ---␊ - ␊ - ## MD032/blanks-around-lists␊ - ␊ - >␊ - - List item␊ - >>␊ - ␊ - ␊ - - List item␊ - ␊ - ␊ - > Text␊ - >␊ - > - List item␊ - >>␊ - >> Text␊ - `, - } - -## blockquote-headings.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '> # Quoted heading in list {MD022} {MD025}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 23, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 9, + 2, ], - }, - { - errorContext: '> # Quoted heading in list {MD022} {MD025}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, fixInfo: { - insertText: `␊ - `, - lineNumber: 24, + deleteCount: 2, + editColumn: 9, + insertText: '__', }, - lineNumber: 23, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 42, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD050', + 'strong-style', ], }, { - errorContext: '> > # Double-quoted heading in list {MD022} {MD025}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 26, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 14, + 2, ], - }, - { - errorContext: '> > # Double-quoted heading in list {MD022} {MD025}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, fixInfo: { - insertText: `␊ - `, - lineNumber: 27, + deleteCount: 2, + editColumn: 14, + insertText: '__', }, - lineNumber: 26, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 47, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD050', + 'strong-style', ], }, { - errorContext: '> ## Quoted sub-heading in list {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 29, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 22, + 2, ], - }, - { - errorContext: '> ## Quoted sub-heading in list {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, fixInfo: { - insertText: `␊ - `, - lineNumber: 30, + deleteCount: 2, + editColumn: 22, + insertText: '__', }, - lineNumber: 29, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 47, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD050', + 'strong-style', ], }, { - errorContext: '> ## Quoted indented sub-heading in list {MD022} {MD023} {MD027}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 33, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 30, + 2, ], - }, - { - errorContext: '> ## Quoted indented sub-heading in list {MD022} {MD023} {MD027}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, fixInfo: { - insertText: `␊ - `, - lineNumber: 34, + deleteCount: 2, + editColumn: 30, + insertText: '__', }, - lineNumber: 33, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 47, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD050', + 'strong-style', ], }, { - errorContext: '> ## Heading One {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, - fixInfo: { - insertText: `>␊ - `, - lineNumber: 41, - }, - lineNumber: 40, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 43, + 2, ], - }, - { - errorContext: '> ## Heading Two {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, fixInfo: { - insertText: `>␊ - `, + deleteCount: 2, + editColumn: 43, + insertText: '__', }, - lineNumber: 46, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 47, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD050', + 'strong-style', ], }, { - errorContext: '> ## Heading Three {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 51, + 2, + ], fixInfo: { - insertText: `>␊ - `, + deleteCount: 2, + editColumn: 51, + insertText: '__', }, - lineNumber: 53, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 47, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD050', + 'strong-style', ], }, { - errorContext: '> ## Heading Three {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 59, + 2, + ], fixInfo: { - insertText: `>␊ - `, - lineNumber: 54, + deleteCount: 2, + editColumn: 59, + insertText: '__', }, - lineNumber: 53, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 47, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD050', + 'strong-style', ], }, { - errorContext: '> > ### Heading Four {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 62, + 2, + ], fixInfo: { - insertText: `> >␊ - `, + deleteCount: 2, + editColumn: 62, + insertText: '__', }, - lineNumber: 59, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 47, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD050', + 'strong-style', ], }, { - errorContext: '> > ### Heading Four {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 75, + 2, + ], fixInfo: { - insertText: `> >␊ - `, - lineNumber: 60, + deleteCount: 2, + editColumn: 75, + insertText: '__', }, - lineNumber: 59, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 47, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', - ], - }, - { - errorContext: '> > ### Heading Five {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, - fixInfo: { - insertText: `>␊ - `, - }, - lineNumber: 65, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - ], - }, - { - errorContext: '> > ### Heading Five {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, - fixInfo: { - insertText: `> >␊ - `, - lineNumber: 66, - }, - lineNumber: 65, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD050', + 'strong-style', ], }, + ], + fixed: `Not a heading {MD041}␊ + ␊ + An [empty]() link {MD042}␊ + ␊ + An [empty](#) link with fragment {MD042}␊ + ␊ + An [empty](<>) link with angle brackets {MD042}␊ + ␊ + This is a test file for the markdownlint package. {MD044}␊ + ␊ + This is a paragraph␊ + about markdownlint {MD044}␊ + that capitalizes the␊ + name wrong twice:␊ + markdownlint. {MD044}␊ + ␊ + A [normal](link) and an [empty one]() and a [fragment](#one). {MD042}␊ + ␊ + An image without alternate text ![](image.jpg) {MD045}␊ + ␊ + \`\`\`text␊ + Fenced code␊ + \`\`\`␊ + ␊ + Indented code {MD046}␊ + ␊ + ~~~text␊ + Fenced code {MD048:27}␊ + ~~~␊ + ␊ + Mixed *emphasis* on *this* line *with* multiple *issues* {MD049}␊ + ␊ + Mixed __strong emphasis__ on __this__ line __with__ multiple __issues__ {MD050}␊ + ␊ + Inconsistent␊ + emphasis *text {MD049}␊ + spanning* many {MD049}␊ + lines␊ + ␊ + Inconsistent␊ + strong __emphasis {MD050}␊ + spanning__ many {MD050}␊ + lines␊ + ␊ + Inconsistent *double* text *interleaved* text *double* *interleaved* emphasis. {MD049}␊ + ␊ + Inconsistent __double__ text __interleaved__ text __double__ __interleaved__ strong emphasis. {MD050}␊ + ␊ + ␊ + ␊ + Missing newline character {MD043} {MD047}␊ + `, + } + +## MD051-MD060.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '> > ### Heading Six {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, - fixInfo: { - insertText: `> >␊ - `, - }, - lineNumber: 71, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', + errorContext: '[link with a missing](#fragment)', + errorDetail: null, + errorRange: [ + 3, + 32, ], - }, - { - errorContext: '> > ### Heading Six {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, - fixInfo: { - insertText: `>␊ - `, - lineNumber: 72, - }, - lineNumber: 71, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + fixInfo: null, + lineNumber: 3, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD051', + 'link-fragments', ], }, { - errorContext: '> ## Quoted indented sub-head...', - errorDetail: null, + errorContext: '[link with a][undefined-label]', + errorDetail: 'Missing link or image reference definition: "undefined-label"', errorRange: [ 3, - 1, + 30, ], - fixInfo: { - deleteCount: 1, - editColumn: 3, - }, - lineNumber: 17, - ruleDescription: 'Headings must start at the beginning of the line', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md', + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Reference links and images should use a label that is defined', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md', ruleNames: [ - 'MD023', - 'heading-start-left', + 'MD052', + 'reference-links-images', ], }, { - errorContext: ' > ## Quoted indented sub-he...', - errorDetail: null, + errorContext: '[unused-label]: {MD053}', + errorDetail: 'Unused link or image reference definition: "unused-label"', errorRange: [ - 5, 1, + 23, ], fixInfo: { - deleteCount: 1, - editColumn: 5, + deleteCount: -1, }, - lineNumber: 33, - ruleDescription: 'Headings must start at the beginning of the line', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md', - ruleNames: [ - 'MD023', - 'heading-start-left', - ], - }, - { - errorContext: 'Quoted heading {MD025}', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', - ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', - ], - }, - { - errorContext: 'Double-quoted heading {MD025}', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 9, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', - ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', - ], - }, - { - errorContext: 'Quoted heading in list {MD022}...', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 23, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', + lineNumber: 10, + ruleDescription: 'Link and image reference definitions should be needed', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md053.md', ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', + 'MD053', + 'link-image-reference-definitions', ], }, + ], + fixed: `# detailed-results-MD051-MD060␊ + ␊ + A [link with a missing](#fragment) {MD051}␊ + ␊ + A [link with a][defined-label]␊ + ␊ + A [link with a][undefined-label] {MD052}␊ + ␊ + [defined-label]: https://example.com␊ + `, + } + +## alternate_top_level_heading.md + +> Snapshot 1 + + { + errors: [ { - errorContext: 'Double-quoted heading in list ...', + errorContext: 'Another one {MD025}', errorDetail: null, errorRange: null, fixInfo: null, - lineNumber: 26, + lineNumber: 3, ruleDescription: 'Multiple top-level headings in the same document', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ @@ -3222,1579 +2575,1459 @@ Generated by [AVA](https://avajs.dev). 'single-h1', ], }, - { - errorContext: '> ## Quoted indented sub-head...', - errorDetail: null, - errorRange: [ - 3, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 3, - }, - lineNumber: 17, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', - ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', - ], - }, - { - errorContext: ' > ## Quoted indented sub-he...', - errorDetail: null, - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - }, - lineNumber: 33, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', - ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', - ], - }, ], - fixed: `# Heading␊ - ␊ - ## Sub-heading␊ - ␊ - > # Quoted heading {MD025}␊ - ␊ - Text␊ - ␊ - > > # Double-quoted heading {MD025}␊ - ␊ - Text␊ - ␊ - > ## Quoted sub-heading␊ - ␊ - Text␊ - ␊ - > ## Quoted indented sub-heading {MD023} {MD027}␊ - ␊ - Text␊ - ␊ - - Item␊ - item␊ - ␊ - > # Quoted heading in list {MD022} {MD025}␊ - ␊ - - Item␊ - item␊ - ␊ - > > # Double-quoted heading in list {MD022} {MD025}␊ - ␊ - - Item␊ - item␊ - ␊ - > ## Quoted sub-heading in list {MD022}␊ - ␊ - - Item␊ - - Item␊ - item␊ - ␊ - > ## Quoted indented sub-heading in list {MD022} {MD023} {MD027}␊ - ␊ - - Item␊ - ␊ - Text␊ - ␊ - > Text␊ - >␊ - > ## Heading One {MD022}␊ - >␊ - > Text␊ - ␊ - Text␊ - ␊ - > Text␊ - >␊ - > ## Heading Two {MD022}␊ - >␊ - > Text␊ - ␊ - Text␊ - ␊ - > Text␊ - >␊ - > ## Heading Three {MD022}␊ - >␊ - > Text␊ - ␊ - Text␊ - ␊ - > > Text␊ - > >␊ - > > ### Heading Four {MD022}␊ - > >␊ - > > Text␊ - ␊ - Text␊ - ␊ - > Text␊ - >␊ - > > ### Heading Five {MD022}␊ - > >␊ - > > Text␊ - ␊ - Text␊ + fixed: `## A level 2 top level heading␊ ␊ - > > Text␊ - > >␊ - > > ### Heading Six {MD022}␊ - >␊ - > Text␊ + ## Another one {MD025}␊ ␊ - Text␊ + ␊ `, } -## blockquote-spaces-nested.md +## atx-heading-spacing-trailing-spaces.md > Snapshot 1 { errors: [ { - errorContext: '> A {MD027}', + errorContext: '##Heading 1 {MD018}', errorDetail: null, errorRange: [ - 3, 1, + 3, ], fixInfo: { - deleteCount: 1, editColumn: 3, + insertText: ' ', }, - lineNumber: 3, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 5, + ruleDescription: 'No space after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD018', + 'no-missing-space-atx', ], }, { - errorContext: '> > B {MD027}', + errorContext: '## Heading 2 {MD019}', errorDetail: null, errorRange: [ - 5, - 1, + 4, + 3, ], fixInfo: { - deleteCount: 1, - editColumn: 5, + deleteCount: 3, + editColumn: 4, }, - lineNumber: 5, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 7, + ruleDescription: 'Multiple spaces after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD019', + 'no-multiple-space-atx', ], }, { - errorContext: '> C {MD027}', + errorContext: '##Heading 3 {MD020} ##', errorDetail: null, errorRange: [ - 3, 1, + 3, ], fixInfo: { - deleteCount: 1, - editColumn: 3, + deleteCount: 24, + editColumn: 1, + insertText: '## Heading 3 {MD020} ##', }, - lineNumber: 7, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 9, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD020', + 'no-missing-space-closed-atx', ], }, { - errorContext: '> A {MD027}', + errorContext: '## Heading 4 {MD020}##', errorDetail: null, errorRange: [ + 20, 3, - 1, ], fixInfo: { - deleteCount: 1, - editColumn: 3, + deleteCount: 24, + editColumn: 1, + insertText: '## Heading 4 {MD020} ##', }, lineNumber: 11, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD020', + 'no-missing-space-closed-atx', ], }, { - errorContext: '> > B {MD027}', + errorContext: '##Heading 5 {MD020}##', errorDetail: null, errorRange: [ - 5, 1, + 3, ], fixInfo: { - deleteCount: 1, - editColumn: 5, + deleteCount: 23, + editColumn: 1, + insertText: '## Heading 5 {MD020} ##', }, lineNumber: 13, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD020', + 'no-missing-space-closed-atx', ], }, { - errorContext: '> > > C {MD027}', + errorContext: '## Heading 5 {MD021} ##', errorDetail: null, errorRange: [ - 7, - 1, + 4, + 3, ], fixInfo: { - deleteCount: 1, - editColumn: 7, + deleteCount: 3, + editColumn: 4, }, lineNumber: 15, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD021', + 'no-multiple-space-closed-atx', ], }, { - errorContext: '> > D {MD027}', + errorContext: '## Heading 6 {MD021} ##', errorDetail: null, errorRange: [ - 5, - 1, + 22, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 5, + deleteCount: 2, + editColumn: 22, }, lineNumber: 17, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD021', + 'no-multiple-space-closed-atx', ], }, { - errorContext: '> E {MD027}', - errorDetail: null, - errorRange: [ - 3, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 3, - }, - lineNumber: 19, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', - ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', - ], - }, - { - errorContext: '> A {MD027}', - errorDetail: null, - errorRange: [ - 3, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 3, - }, - lineNumber: 23, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', - ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', - ], - }, - { - errorContext: '>> B {MD027}', + errorContext: '## Heading 7 {MD021} ##', errorDetail: null, errorRange: [ 4, - 1, + 3, ], fixInfo: { - deleteCount: 1, + deleteCount: 3, editColumn: 4, }, - lineNumber: 25, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 19, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD021', + 'no-multiple-space-closed-atx', ], }, { - errorContext: '>>> C {MD027}', + errorContext: '## Heading 7 {MD021} ##', errorDetail: null, errorRange: [ - 5, - 1, + 25, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 5, + deleteCount: 2, + editColumn: 25, }, - lineNumber: 27, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 19, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD021', + 'no-multiple-space-closed-atx', ], }, + ], + fixed: `# atx-heading-spacing-trailing-spaces␊ + ␊ + ␊ + ␊ + ## Heading 1 {MD018} ␊ + ␊ + ## Heading 2 {MD019} ␊ + ␊ + ## Heading 3 {MD020} ##␊ + ␊ + ## Heading 4 {MD020} ##␊ + ␊ + ## Heading 5 {MD020} ##␊ + ␊ + ## Heading 5 {MD021} ## ␊ + ␊ + ## Heading 6 {MD021} ## ␊ + ␊ + ## Heading 7 {MD021} ## ␊ + `, + } + +## atx_closed_heading_spacing.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '>> D {MD027}', + errorContext: '#Heading 1 {MD020} #', errorDetail: null, errorRange: [ - 4, 1, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 4, + deleteCount: 20, + editColumn: 1, + insertText: '# Heading 1 {MD020} #', }, - lineNumber: 29, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 1, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD020', + 'no-missing-space-closed-atx', ], }, { - errorContext: '> E {MD027}', + errorContext: '## Heading 2 {MD020}##', errorDetail: null, errorRange: [ + 20, 3, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 3, - }, - lineNumber: 31, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', - ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', - ], - }, - { - errorContext: '> > Text {MD027}', - errorDetail: null, - errorRange: [ - 5, - 1, ], fixInfo: { - deleteCount: 1, - editColumn: 5, + deleteCount: 22, + editColumn: 1, + insertText: '## Heading 2 {MD020} ##', }, - lineNumber: 35, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 3, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD020', + 'no-missing-space-closed-atx', ], }, { - errorContext: ' > > Text {MD027}', + errorContext: '##Heading 3 {MD020}##', errorDetail: null, errorRange: [ - 6, 1, + 3, ], fixInfo: { - deleteCount: 1, - editColumn: 6, + deleteCount: 21, + editColumn: 1, + insertText: '## Heading 3 {MD020} ##', }, - lineNumber: 39, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 5, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD020', + 'no-missing-space-closed-atx', ], }, { - errorContext: ' > > Text {MD027}', + errorContext: '## Heading 4 {MD021} ##', errorDetail: null, errorRange: [ - 7, + 4, 1, ], fixInfo: { deleteCount: 1, - editColumn: 7, + editColumn: 4, }, - lineNumber: 43, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 7, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD021', + 'no-multiple-space-closed-atx', ], }, { - errorContext: '> > Text {MD027}', + errorContext: '## Heading 5 {MD021} ##', errorDetail: null, errorRange: [ - 3, + 22, 1, ], fixInfo: { deleteCount: 1, - editColumn: 3, + editColumn: 22, }, - lineNumber: 47, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 9, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD021', + 'no-multiple-space-closed-atx', ], }, { - errorContext: '> > > Text {MD027}', + errorContext: '## Heading 6 {MD021} ##', errorDetail: null, errorRange: [ - 5, + 4, 1, ], fixInfo: { deleteCount: 1, - editColumn: 5, + editColumn: 4, }, - lineNumber: 51, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 11, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD021', + 'no-multiple-space-closed-atx', ], }, { - errorContext: '> > > > Text {MD027}', + errorContext: '## Heading 6 {MD021} ##', errorDetail: null, errorRange: [ - 5, + 23, 1, ], fixInfo: { deleteCount: 1, - editColumn: 5, + editColumn: 23, }, - lineNumber: 55, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 11, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD021', + 'no-multiple-space-closed-atx', ], }, { - errorContext: '>> >> Text {MD027}', + errorContext: '## Heading 7 {MD021} ##', errorDetail: null, errorRange: [ 4, - 1, + 2, ], fixInfo: { - deleteCount: 1, + deleteCount: 2, editColumn: 4, }, - lineNumber: 59, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 13, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD021', + 'no-multiple-space-closed-atx', ], }, { - errorContext: ' > > Text {MD027}', + errorContext: '## Heading 7 {MD021} ##', errorDetail: null, errorRange: [ - 6, - 1, + 24, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 6, + deleteCount: 2, + editColumn: 24, }, - lineNumber: 63, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 13, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD021', + 'no-multiple-space-closed-atx', ], }, + ], + fixed: `# Heading 1 {MD020} #␊ + ␊ + ## Heading 2 {MD020} ##␊ + ␊ + ## Heading 3 {MD020} ##␊ + ␊ + ## Heading 4 {MD021} ##␊ + ␊ + ## Heading 5 {MD021} ##␊ + ␊ + ## Heading 6 {MD021} ##␊ + ␊ + ## Heading 7 {MD021} ##␊ + ␊ + ## Heading 8\\#␊ + ␊ + ## Heading 9 \\#␊ + ␊ + ## Heading 10 \\#␊ + ␊ + ␊ + `, + } + +## atx_heading_spacing.md + +> Snapshot 1 + + { + errors: [ { - errorContext: ' > > Text {MD027}', + errorContext: '#Heading 1 {MD018}', errorDetail: null, errorRange: [ - 7, 1, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 7, + editColumn: 2, + insertText: ' ', }, - lineNumber: 67, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 1, + ruleDescription: 'No space after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD018', + 'no-missing-space-atx', ], }, { - errorContext: ' > > Text {MD027}', + errorContext: '## Heading 2 {MD019}', errorDetail: null, errorRange: [ - 8, + 4, 1, ], fixInfo: { deleteCount: 1, - editColumn: 8, + editColumn: 4, }, - lineNumber: 71, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 3, + ruleDescription: 'Multiple spaces after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD019', + 'no-multiple-space-atx', ], }, { - errorContext: ' > > Text {MD027}', + errorContext: '## Heading 3 {MD019}', errorDetail: null, errorRange: [ 4, - 1, + 2, ], fixInfo: { - deleteCount: 1, + deleteCount: 2, editColumn: 4, }, - lineNumber: 75, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 5, + ruleDescription: 'Multiple spaces after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD019', + 'no-multiple-space-atx', ], }, ], - fixed: `# Nested blockquote␊ - ␊ - > A {MD027}␊ - >␊ - > > B {MD027}␊ - >␊ - > C {MD027}␊ - ␊ - Text␊ - ␊ - > A {MD027}␊ - >␊ - > > B {MD027}␊ - > >␊ - > > > C {MD027}␊ - > >␊ - > > D {MD027}␊ - >␊ - > E {MD027}␊ - ␊ - Text␊ - ␊ - > A {MD027}␊ - >␊ - >> B {MD027}␊ - >>␊ - >>> C {MD027}␊ - >>␊ - >> D {MD027}␊ - >␊ - > E {MD027}␊ - ␊ - Text␊ - ␊ - > > Text {MD027}␊ - ␊ - Text␊ - ␊ - > > Text {MD027}␊ - ␊ - Text␊ - ␊ - > > Text {MD027}␊ - ␊ - Text␊ + fixed: `# Heading 1 {MD018}␊ ␊ - > > Text {MD027}␊ + ## Heading 2 {MD019}␊ ␊ - Text␊ + ## Heading 3 {MD019}␊ ␊ - > > > Text {MD027}␊ + ␊ + `, + } + +## backslashes-and-backticks.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Heading␊ ␊ - Text␊ + \\\\\`\\\\␊ + \\\\\`\\\\␊ + `, + } + +## bare-list-markers.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Bare List Markers␊ ␊ - > > > > Text {MD027}␊ + ## Ordered 1/1/1␊ ␊ - Text␊ + 1.␊ + 1.␊ + 1.␊ ␊ - >> >> Text {MD027}␊ + ## Ordered 1/2/3␊ ␊ - Text␊ + 1.␊ + 2.␊ + 3.␊ ␊ - > > Text {MD027}␊ + ## Unordered *␊ ␊ - Text␊ + *␊ + *␊ + *␊ ␊ - > > Text {MD027}␊ + ## Unordered +␊ ␊ - Text␊ + +␊ + +␊ + +␊ ␊ - > > Text {MD027}␊ + ## Unordered -␊ ␊ - Text␊ + -␊ + -␊ + -␊ ␊ - > > Text {MD027}␊ + ␊ `, } -## blockquote_blank_lines.md +## bare-urls-in-html.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 1', + errorContext: 'https://example.com/fail', + errorDetail: null, errorRange: [ - 1, - 1, + 6, + 24, ], fixInfo: { - deleteCount: 1, - editColumn: 1, + deleteCount: 24, + editColumn: 6, + insertText: '', }, - lineNumber: 12, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 7, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', - errorRange: null, + errorContext: 'https://example.com/fail', + errorDetail: null, + errorRange: [ + 49, + 24, + ], fixInfo: { - deleteCount: -1, + deleteCount: 24, + editColumn: 49, + insertText: '', }, - lineNumber: 10, - ruleDescription: 'Multiple consecutive blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md', - ruleNames: [ - 'MD012', - 'no-multiple-blanks', - ], - }, - { - errorContext: null, - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 7, - ruleDescription: 'Blank line inside blockquote', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md', + lineNumber: 11, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD028', - 'no-blanks-blockquote', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, + errorContext: 'https://example.com/fail', errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 9, - ruleDescription: 'Blank line inside blockquote', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md', + errorRange: [ + 49, + 24, + ], + fixInfo: { + deleteCount: 24, + editColumn: 49, + insertText: '', + }, + lineNumber: 13, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD028', - 'no-blanks-blockquote', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, + errorContext: 'https://example.com/fail', errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 10, - ruleDescription: 'Blank line inside blockquote', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md', + errorRange: [ + 41, + 24, + ], + fixInfo: { + deleteCount: 24, + editColumn: 41, + insertText: '', + }, + lineNumber: 19, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD028', - 'no-blanks-blockquote', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, + errorContext: 'https://example.com/fail', errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 12, - ruleDescription: 'Blank line inside blockquote', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md', + errorRange: [ + 16, + 24, + ], + fixInfo: { + deleteCount: 24, + editColumn: 16, + insertText: '', + }, + lineNumber: 21, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD028', - 'no-blanks-blockquote', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, + errorContext: 'https://example.com/fail', errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 19, - ruleDescription: 'Blank line inside blockquote', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md', + errorRange: [ + 17, + 24, + ], + fixInfo: { + deleteCount: 24, + editColumn: 17, + insertText: '', + }, + lineNumber: 23, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD028', - 'no-blanks-blockquote', + 'MD034', + 'no-bare-urls', ], }, ], - fixed: `# blockquote_blank_lines␊ - ␊ - Some text␊ - ␊ - > a quote␊ - > same quote␊ + fixed: `# Bare URLs in HTML␊ ␊ - > blank line above me␊ +

␊ + https://example.com/pass␊ +

␊ ␊ - > two blank lines above me␊ + Text text. {MD034}␊ ␊ - > space above me␊ + Text https://example.com/pass text.␊ ␊ - * List with embedded blockquote␊ + Text https://example.com/pass text text. {MD034}␊ ␊ - > Test␊ - > Test␊ + Text https://example.com/pass text text https://example.com/pass text. {MD034}␊ ␊ - > Test␊ + Text text text https://example.com/pass text.␊ ␊ - * Item 2␊ + Text text text https://example.com/pass text.␊ ␊ - > Test. The blank line below should _not_ trigger MD028 as one blockquote is␊ - > inside the list, and the other is outside it.␊ + Text text text text text. {MD034}␊ ␊ - > Test␊ + Text
text
text. {MD034}␊ ␊ - Expected errors:␊ + Text
text
text. {MD034}␊ ␊ - {MD028:7} {MD028:9} {MD028:10} {MD028:12} {MD028:19}␊ - {MD009:12} (trailing space is intentional)␊ - {MD012:10} (multiple blank lines are intentional)␊ + ␊ `, } -## blockquote_spaces.md +## bare-urls.md > Snapshot 1 { errors: [ { - errorContext: '> Foo {MD027}', + errorContext: 'https://example.com', errorDetail: null, errorRange: [ - 3, - 1, + 15, + 19, ], fixInfo: { - deleteCount: 1, - editColumn: 3, + deleteCount: 19, + editColumn: 15, + insertText: '', }, - lineNumber: 6, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 3, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: '> Bar {MD027}', + errorContext: 'https://example.com/', errorDetail: null, errorRange: [ - 3, - 1, + 15, + 20, ], fixInfo: { - deleteCount: 1, - editColumn: 3, + deleteCount: 20, + editColumn: 15, + insertText: '', + }, + lineNumber: 5, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + 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: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: '> *foo* {MD027}', + errorContext: 'https://example.com/info.htm', errorDetail: null, errorRange: [ - 3, - 1, + 15, + 28, ], fixInfo: { - deleteCount: 1, - editColumn: 3, + deleteCount: 28, + editColumn: 15, + insertText: '', }, - lineNumber: 14, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 9, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: '> **bar** {MD027}', + errorContext: 'https://example.com', errorDetail: null, errorRange: [ - 3, - 1, + 7, + 19, ], fixInfo: { - deleteCount: 1, - editColumn: 3, + deleteCount: 19, + editColumn: 7, + insertText: '', }, - lineNumber: 15, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 11, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: '> "Baz" {MD027}', + errorContext: 'https://example.com', errorDetail: null, errorRange: [ - 3, - 2, + 11, + 19, ], fixInfo: { - deleteCount: 2, - editColumn: 3, + deleteCount: 19, + editColumn: 11, + insertText: '', }, - lineNumber: 16, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 13, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: '> `qux` {MD027}', + errorContext: 'https://example.com', errorDetail: null, errorRange: [ - 3, - 2, + 25, + 19, ], fixInfo: { - deleteCount: 2, - editColumn: 3, + deleteCount: 19, + editColumn: 25, + insertText: '', }, - lineNumber: 17, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 29, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: '> Foo {MD027}', + errorContext: 'https://example.com', errorDetail: null, errorRange: [ - 3, - 1, + 26, + 19, ], fixInfo: { - deleteCount: 1, - editColumn: 3, + deleteCount: 19, + editColumn: 26, + insertText: '', }, - lineNumber: 27, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 31, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: '> Bar {MD027}', + errorContext: 'https://example.com', errorDetail: null, errorRange: [ - 3, 1, + 19, ], fixInfo: { - deleteCount: 1, - editColumn: 3, + deleteCount: 19, + editColumn: 1, + insertText: '', }, - lineNumber: 28, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 73, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: ' > Text {MD027}', + errorContext: 'https://example.com', errorDetail: null, errorRange: [ - 4, 1, + 19, ], fixInfo: { - deleteCount: 1, - editColumn: 4, + deleteCount: 19, + editColumn: 1, + insertText: '', }, - lineNumber: 33, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 78, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: ' > Text {MD027}', + errorContext: 'https://example.com#heading-', errorDetail: null, errorRange: [ - 5, - 1, + 27, + 28, ], fixInfo: { - deleteCount: 1, - editColumn: 5, + deleteCount: 28, + editColumn: 27, + insertText: '', }, - lineNumber: 37, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 88, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: ' > Text {MD027}', + errorContext: 'user@example.com', errorDetail: null, errorRange: [ - 6, - 1, + 40, + 16, ], fixInfo: { - deleteCount: 1, - editColumn: 6, + deleteCount: 16, + editColumn: 40, + insertText: '', }, - lineNumber: 41, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 96, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: '> ', + errorContext: 'https://example.com', errorDetail: null, errorRange: [ - 3, - 1, + 59, + 19, ], fixInfo: { - deleteCount: 1, - editColumn: 3, + deleteCount: 19, + editColumn: 59, + insertText: '', }, - lineNumber: 47, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 106, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD034', + 'no-bare-urls', ], }, ], - fixed: `# blockquote_spaces␊ + fixed: `# Detailed Results Bare URLs␊ ␊ - Some text␊ + For more, see . {MD034}␊ ␊ - > Hello world␊ - > Foo {MD027}␊ - > Bar {MD027}␊ + For more, see . {MD034}␊ ␊ - This tests other things embedded in the blockquote:␊ + For more, see . {MD034}␊ ␊ - - foo␊ + For more, see . {MD034}␊ ␊ - > *Hello world*␊ - > *foo* {MD027}␊ - > **bar** {MD027}␊ - > "Baz" {MD027}␊ - > \`qux\` {MD027}␊ - > *foo* more text␊ - > **bar** more text␊ - > 'baz' more text␊ - > \`qux\` more text␊ - >␊ - > - foo␊ + Visit , then refresh. {MD034}␊ ␊ - Test the first line being indented too much:␊ + The site () is down. {MD034}␊ ␊ - > Foo {MD027}␊ - > Bar {MD027}␊ - > Baz␊ + ␊ ␊ - Test spaces before the blockquote:␊ + Some documents use to link.␊ ␊ - > Text {MD027}␊ + Or to link.␊ ␊ - Text␊ + Or repeat the URL https://example.com.␊ ␊ - > Text {MD027}␊ + Or https://example.com/info.htm.␊ ␊ - Text␊ + This is allowed to avoid embedding angle brackets in HTML Text https://example.com.␊ ␊ - > Text {MD027}␊ + As is https://example.com/info.htm text.␊ ␊ - Test nothing in the blockquote:␊ +
Another violation: . {MD034}
␊ ␊ - ␊ +
Another violation: . {MD034}
␊ ␊ - > ␊ - {MD027:-1}␊ - `, - } - -## break-all-the-rules.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/md001.md', - ruleNames: [ - 'MD001', - 'heading-increment', - ], - }, - { - 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/md003.md', - ruleNames: [ - 'MD003', - 'heading-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: atx; Actual: atx_closed', - errorRange: null, - fixInfo: null, - lineNumber: 31, - ruleDescription: 'Heading style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', - ruleNames: [ - 'MD003', - 'heading-style', - ], - }, + This is not a bare [link]( https://example.com ).␊ + ␊ + Nor is [link](https://example.com/path-with(parens)).␊ + ␊ + Or .␊ + ␊ + URLs in HTML attributes are not bare:␊ + ␊ + ␊ + Text␊ + ␊ + ␊ + ␊ + ␊ + URLs surrounded by HTML tags are not bare:␊ + ␊ + Not https://example.com bare.␊ + ␊ + Not
https://example.com
bare.␊ + ␊ +

␊ + Not bare due to being in an HTML block:␊ + https://example.com␊ + https://example.com␊ +

https://example.com
␊ +

␊ + ␊ +
␊ + https://example.com␊ +
␊ + ␊ +
␊ + https://example.com␊ + ␊ +
␊ + ␊ +
␊ + ␊ + {MD034}␊ +
␊ + ␊ +
␊ + ␊ + {MD034}␊ + ␊ +
␊ + ␊ + URLs in link and image text are not bare:␊ + ␊ + Text [link to https://example.com site](https://example.com) text.␊ + ␊ + Image ![for https://example.com site](https://example.com) text.␊ + ␊ + URLs may end with a dash: {MD034}␊ + ␊ + ... when explicit: ␊ + ␊ + ... when embedded: https://example.com#heading-␊ + ␊ + Links with spaces inside angle brackets are okay: [blue jay]()␊ + ␊ + Email addresses are treated similarly: {MD034}␊ + ␊ + Angle brackets work the same for email: ␊ + ␊ + Unusual email addresses are handled: ␊ + ␊ + ---␊ + ␊ + [is-a-valid]: https://example.com␊ + ␊ + Links bind to the innermost [link that [is-a-valid] link]() {MD034}␊ + ␊ + But not if the [link [is-not-a-valid] link](https://example.com)␊ + ␊ + Escaping both inner square brackets avoids confusion:␊ + [link \\[is-not-a-valid\\] link](https://example.com)␊ + `, + } + +## blanks-around-fences-in-lists.md + +> Snapshot 1 + + { + errors: [ { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: plus', - errorRange: [ - 1, - 4, - ], + errorContext: '```', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 2, - insertText: '*', + insertText: `␊ + `, + lineNumber: 6, }, - lineNumber: 8, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 5, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Expected: 3; Actual: 2', - errorRange: [ - 1, - 4, - ], - fixInfo: null, - lineNumber: 12, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + errorContext: '2. ```text', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 6, + }, + lineNumber: 6, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', - errorRange: [ - 1, - 4, - ], + errorContext: '```', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', + insertText: `␊ + `, + lineNumber: 9, }, lineNumber: 8, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', - errorRange: [ - 1, - 5, - ], + errorContext: '3. ```text', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', + insertText: `␊ + `, + lineNumber: 9, }, - lineNumber: 11, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 9, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 1', - errorRange: [ - 17, - 1, - ], + errorContext: '```', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 17, + insertText: `␊ + `, + lineNumber: 18, }, - lineNumber: 14, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 17, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 1, - ], + errorContext: '- ```text', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: ' ', + insertText: `␊ + `, + lineNumber: 18, }, - lineNumber: 14, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 18, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: '(name)[link]', - errorRange: [ - 1, - 12, - ], + errorContext: '```', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 12, - editColumn: 1, - insertText: '[name](link)', + insertText: `␊ + `, + lineNumber: 21, }, - lineNumber: 16, - ruleDescription: 'Reversed link syntax', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md', + lineNumber: 20, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD011', - 'no-reversed-links', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorContext: '- ```text', + errorDetail: null, errorRange: null, fixInfo: { - deleteCount: -1, + insertText: `␊ + `, + lineNumber: 21, }, - lineNumber: 18, - ruleDescription: 'Multiple consecutive blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md', - ruleNames: [ - 'MD012', - 'no-multiple-blanks', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 80; Actual: 97', - errorRange: [ - 81, - 17, - ], - fixInfo: null, lineNumber: 21, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '$ dollar {MD014}', + errorContext: '> ```', errorDetail: null, - errorRange: [ - 5, - 2, - ], + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 5, + insertText: `>␊ + `, + lineNumber: 30, }, - lineNumber: 23, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + lineNumber: 29, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD014', - 'commands-show-output', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '#Heading 4 {MD018}', + errorContext: '> 2. ```text', errorDetail: null, - errorRange: [ - 1, - 2, - ], + errorRange: null, fixInfo: { - editColumn: 2, - insertText: ' ', + insertText: `>␊ + `, + lineNumber: 30, }, - lineNumber: 25, - ruleDescription: 'No space after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md', + lineNumber: 30, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD018', - 'no-missing-space-atx', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '# Heading 5 {MD019}', + errorContext: '> ```', errorDetail: null, - errorRange: [ - 3, - 1, - ], + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 3, + insertText: `>␊ + `, + lineNumber: 33, }, - lineNumber: 27, - ruleDescription: 'Multiple spaces after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', + lineNumber: 32, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD019', - 'no-multiple-space-atx', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '#Heading 6 {MD020} #', + errorContext: '> 3. ```text', errorDetail: null, - errorRange: [ - 1, - 2, - ], + errorRange: null, fixInfo: { - deleteCount: 20, - editColumn: 1, - insertText: '# Heading 6 {MD020} #', + insertText: `>␊ + `, + lineNumber: 33, }, - lineNumber: 29, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + lineNumber: 33, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '# Heading 7 {MD021} {MD003} ...', + errorContext: '> ```', errorDetail: null, - errorRange: [ - 3, - 1, - ], + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 3, + insertText: `>␊ + `, + lineNumber: 42, }, - lineNumber: 31, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 41, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '... Heading 7 {MD021} {MD003} #', + errorContext: '> - ```text', errorDetail: null, - errorRange: [ - 30, - 1, - ], + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 30, + insertText: `>␊ + `, + lineNumber: 42, }, - lineNumber: 31, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 42, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '## Heading 10 {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Above', + errorContext: '> ```', + errorDetail: null, errorRange: null, fixInfo: { - insertText: `␊ + insertText: `>␊ `, + lineNumber: 45, }, - lineNumber: 86, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 44, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: ' # Heading 9 {MD023} {MD026}.', + errorContext: '> - ```text', errorDetail: null, - errorRange: [ - 1, - 1, - ], + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, + insertText: `>␊ + `, + lineNumber: 45, }, - lineNumber: 40, - ruleDescription: 'Headings must start at the beginning of the line', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md', + lineNumber: 45, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD023', - 'heading-start-left', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: 'Heading 8', + errorContext: '> > ```', errorDetail: null, errorRange: null, - fixInfo: null, - lineNumber: 35, - ruleDescription: 'Multiple headings with the same content', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', + fixInfo: { + insertText: `> >␊ + `, + lineNumber: 54, + }, + lineNumber: 53, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD024', - 'no-duplicate-heading', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \'.\'', - errorRange: [ - 29, - 1, - ], + errorContext: '> > 2. ```text', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 29, + insertText: `> >␊ + `, + lineNumber: 54, }, - lineNumber: 40, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 54, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '> {MD027}', + errorContext: '> > ```', errorDetail: null, - errorRange: [ - 3, - 1, - ], + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 3, + insertText: `> >␊ + `, + lineNumber: 57, }, - lineNumber: 42, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 56, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, + errorContext: '> > 3. ```text', errorDetail: null, errorRange: null, - fixInfo: null, - lineNumber: 43, - ruleDescription: 'Blank line inside blockquote', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md', - ruleNames: [ - 'MD028', - 'no-blanks-blockquote', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 3; Style: 1/2/3', - errorRange: [ - 1, - 3, - ], - fixInfo: null, - lineNumber: 47, - ruleDescription: 'Ordered list item prefix', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md029.md', - ruleNames: [ - 'MD029', - 'ol-prefix', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', - errorRange: [ - 2, - 3, - ], fixInfo: { - deleteCount: 2, - editColumn: 3, - insertText: ' ', + insertText: `> >␊ + `, + lineNumber: 57, }, - lineNumber: 8, - ruleDescription: 'Spaces after list markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', + lineNumber: 57, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD030', - 'list-marker-space', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '```', + errorContext: '> > ```', errorDetail: null, errorRange: null, fixInfo: { - insertText: `␊ + insertText: `> >␊ `, - lineNumber: 51, + lineNumber: 66, }, - lineNumber: 50, + lineNumber: 65, ruleDescription: 'Fenced code blocks should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ @@ -4803,821 +4036,894 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '* list {MD032}', + errorContext: '> > - ```text', errorDetail: null, errorRange: null, fixInfo: { - insertText: `␊ + insertText: `> >␊ `, - lineNumber: 8, + lineNumber: 66, }, - lineNumber: 7, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 66, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '+ list {MD004} {MD007} {MD030...', + errorContext: '> > ```', errorDetail: null, errorRange: null, fixInfo: { - insertText: `␊ + insertText: `> >␊ `, + lineNumber: 69, }, - lineNumber: 8, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 68, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '* list {MD032} {MD046:49}', + errorContext: '> > - ```text', errorDetail: null, errorRange: null, fixInfo: { - insertText: `␊ + insertText: `> >␊ `, + lineNumber: 69, }, - lineNumber: 51, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', - ruleNames: [ - 'MD032', - 'blanks-around-lists', - ], - }, - { - errorContext: null, - errorDetail: 'Element: br', - errorRange: [ - 1, - 5, - ], - fixInfo: null, - lineNumber: 55, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 69, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD031', + 'blanks-around-fences', ], }, + ], + fixed: `# Blanks Around Fences In Lists␊ + ␊ + 1. \`\`\`text␊ + Text␊ + \`\`\`␊ + ␊ + 2. \`\`\`text␊ + Text␊ + \`\`\`␊ + ␊ + 3. \`\`\`text␊ + Text␊ + \`\`\`␊ + ␊ + Text␊ + ␊ + - \`\`\`text␊ + Text␊ + \`\`\`␊ + ␊ + - \`\`\`text␊ + Text␊ + \`\`\`␊ + ␊ + - \`\`\`text␊ + Text␊ + \`\`\`␊ + ␊ + Text␊ + ␊ + > 1. \`\`\`text␊ + > Text␊ + > \`\`\`␊ + >␊ + > 2. \`\`\`text␊ + > Text␊ + > \`\`\`␊ + >␊ + > 3. \`\`\`text␊ + > Text␊ + > \`\`\`␊ + ␊ + Text␊ + ␊ + > - \`\`\`text␊ + > Text␊ + > \`\`\`␊ + >␊ + > - \`\`\`text␊ + > Text␊ + > \`\`\`␊ + >␊ + > - \`\`\`text␊ + > Text␊ + > \`\`\`␊ + ␊ + Text␊ + ␊ + > > 1. \`\`\`text␊ + > > Text␊ + > > \`\`\`␊ + > >␊ + > > 2. \`\`\`text␊ + > > Text␊ + > > \`\`\`␊ + > >␊ + > > 3. \`\`\`text␊ + > > Text␊ + > > \`\`\`␊ + ␊ + Text␊ + ␊ + > > - \`\`\`text␊ + > > Text␊ + > > \`\`\`␊ + > >␊ + > > - \`\`\`text␊ + > > Text␊ + > > \`\`\`␊ + > >␊ + > > - \`\`\`text␊ + > > Text␊ + > > \`\`\`␊ + ␊ + {MD031:5} {MD031:6} {MD031:8} {MD031:9} {MD031:17} {MD031:18} {MD031:20}␊ + {MD031:21} {MD031:29} {MD031:30} {MD031:32} {MD031:33} {MD031:41} {MD031:42}␊ + {MD031:44} {MD031:45} {MD031:53} {MD031:54} {MD031:56} {MD031:57} {MD031:65}␊ + {MD031:66} {MD031:68} {MD031:69}␊ + `, + } + +## blanks-around-headings--1-1.md + +> Snapshot 1 + + { + errors: [ { - errorContext: 'https://example.com/page', - errorDetail: null, - errorRange: [ - 1, - 24, - ], + errorContext: 'Elderberry {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 24, - editColumn: 1, - insertText: '', + insertText: `␊ + `, + lineNumber: 21, }, - lineNumber: 57, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 19, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD022', + 'blanks-around-headings', ], }, + ], + fixed: `# Blanks Around Headings␊ + ␊ + ## Apple␊ + ␊ + Text␊ + ## Banana␊ + ␊ + Text␊ + ␊ + ## Cherry␊ + ␊ + Text␊ + ␊ + ␊ + ## Durian ##␊ + ␊ + Text␊ + ␊ + Elderberry {MD022}␊ + ------------------␊ + ␊ + Text␊ + ␊ + ---␊ + ## Fig␊ + ␊ + ␊ + `, + } + +## blanks-around-headings-0-2.md + +> Snapshot 1 + + { + errors: [ { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ***', + errorContext: '## Banana {MD022}', + errorDetail: 'Expected: 2; Actual: 1; Below', errorRange: null, - fixInfo: null, - lineNumber: 61, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + 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/md022.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: 'Section {MD036} Heading', - errorDetail: null, + errorContext: 'Elderberry {MD022}', + errorDetail: 'Expected: 2; Actual: 0; Below', errorRange: null, - fixInfo: null, - lineNumber: 65, - ruleDescription: 'Emphasis used instead of a heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md', + 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/md022.md', ruleNames: [ - 'MD036', - 'no-emphasis-as-heading', + 'MD022', + 'blanks-around-headings', ], }, + ], + fixed: `# Blanks Around Headings␊ + ␊ + ␊ + ## Apple␊ + ␊ + ␊ + Text␊ + ## Banana {MD022}␊ + ␊ + ␊ + Text␊ + ## Cherry␊ + ␊ + ␊ + Text␊ + ## Durian ##␊ + ␊ + ␊ + Text␊ + ␊ + ---␊ + Elderberry {MD022}␊ + ------------------␊ + ␊ + ␊ + Text␊ + ## Fig␊ + ␊ + ␊ + `, + } + +## blanks-around-headings-1--1.md + +> Snapshot 1 + + { + errors: [ { - errorContext: 'h _', - errorDetail: null, - errorRange: [ - 14, - 3, - ], + errorContext: '## Durian {MD022} ##', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 15, + insertText: `␊ + `, }, - lineNumber: 67, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 16, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD022', + 'blanks-around-headings', ], }, + ], + fixed: `# Blanks Around Headings␊ + ␊ + ## Apple␊ + Text␊ + ␊ + ## Banana␊ + ␊ + Text␊ + ␊ + ## Cherry␊ + ␊ + ␊ + Text␊ + ␊ + ---␊ + ␊ + ## Durian {MD022} ##␊ + ␊ + Text␊ + ␊ + ---␊ + ␊ + Elderberry␊ + ------------------␊ + Text␊ + ␊ + ## Fig␊ + ␊ + ␊ + `, + } + +## blanks-around-headings-3-0.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '`with `', - errorDetail: null, - errorRange: [ - 6, - 7, - ], + errorContext: '## Durian {MD022} ##', + errorDetail: 'Expected: 3; Actual: 2; Above', + errorRange: null, fixInfo: { - deleteCount: 5, - editColumn: 7, - insertText: 'with', + insertText: `␊ + `, }, - lineNumber: 69, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 19, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: '[link with space ]', - errorDetail: null, - errorRange: [ - 1, - 18, - ], + errorContext: 'Elderberry {MD022}', + errorDetail: 'Expected: 3; Actual: 1; Above', + errorRange: null, fixInfo: { - deleteCount: 16, - editColumn: 2, - insertText: 'link with space', + insertText: `␊ + ␊ + `, }, - lineNumber: 71, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', + lineNumber: 22, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD039', - 'no-space-in-links', - ], - }, - { - errorContext: '```', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 73, - ruleDescription: 'Fenced code blocks should have a language specified', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', - ruleNames: [ - 'MD040', - 'fenced-code-language', - ], - }, - { - errorContext: '## Heading 1 {MD041:1}', - 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/md041.md', - ruleNames: [ - 'MD041', - 'first-line-heading', - 'first-line-h1', - ], - }, - { - errorContext: '[empty link]()', - errorDetail: null, - errorRange: [ - 1, - 14, - ], - fixInfo: null, - lineNumber: 81, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', - ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD022', + 'blanks-around-headings', ], }, + ], + fixed: `# Blanks Around Headings␊ + ␊ + ␊ + ␊ + ## Apple␊ + Text␊ + ␊ + ␊ + ␊ + ## Banana␊ + Text␊ + ␊ + ␊ + ␊ + ## Cherry␊ + Text␊ + ␊ + ␊ + ␊ + ## Durian {MD022} ##␊ + Text␊ + ␊ + ␊ + ␊ + Elderberry {MD022}␊ + ------------------␊ + Text␊ + ␊ + ␊ + ␊ + ## Fig␊ + ␊ + ␊ + `, + } + +## blanks-around-headings-arrays.md + +> Snapshot 1 + + { + errors: [ { - errorContext: null, - errorDetail: 'Expected: # Broken; Actual: # Heading 3 {MD003} {MD043}', + errorContext: '# Apple - Top {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Above', errorRange: null, - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Required heading structure', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md043.md', - ruleNames: [ - 'MD043', - 'required-headings', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: markdownlint; Actual: markdownLint', - errorRange: [ - 1, - 12, - ], fixInfo: { - deleteCount: 12, - editColumn: 1, - insertText: 'markdownlint', + insertText: `␊ + `, }, - lineNumber: 83, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md', - ruleNames: [ - 'MD044', - 'proper-names', - ], - }, - { - errorContext: null, - errorDetail: null, - errorRange: [ - 1, - 14, - ], - fixInfo: null, - lineNumber: 85, - ruleDescription: 'Images should have alternate text (alt text)', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md045.md', + lineNumber: 5, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD045', - 'no-alt-text', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Expected: indented; Actual: fenced', + errorContext: '## Banana - Top {MD022}', + errorDetail: 'Expected: 2; Actual: 1; Above', errorRange: null, - fixInfo: null, - lineNumber: 49, - ruleDescription: 'Code block style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', + fixInfo: { + insertText: `␊ + `, + }, + lineNumber: 18, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD046', - 'code-block-style', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Expected: indented; Actual: fenced', + errorContext: '## Banana - Bottom {MD022}', + errorDetail: 'Expected: 2; Actual: 1; Below', errorRange: null, - fixInfo: null, - lineNumber: 73, - ruleDescription: 'Code block style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', + fixInfo: { + insertText: `␊ + `, + lineNumber: 25, + }, + lineNumber: 24, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD046', - 'code-block-style', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Expected: indented; Actual: fenced', + errorContext: '### Cherry - Top {MD022}', + errorDetail: 'Expected: 3; Actual: 2; Above', errorRange: null, - fixInfo: null, - lineNumber: 77, - ruleDescription: 'Code block style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', - ruleNames: [ - 'MD046', - 'code-block-style', - ], - }, - { - errorContext: null, - errorDetail: null, - errorRange: [ - 11, - 1, - ], fixInfo: { - editColumn: 12, insertText: `␊ `, }, - lineNumber: 140, - ruleDescription: 'Files should end with a single newline character', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md', + lineNumber: 35, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD047', - 'single-trailing-newline', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Expected: backtick; Actual: tilde', + errorContext: '### Cherry - Bottom {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Below', errorRange: null, - fixInfo: null, - lineNumber: 77, - ruleDescription: 'Code fence style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', - ruleNames: [ - 'MD048', - 'code-fence-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 10, - 1, - ], fixInfo: { - deleteCount: 1, - editColumn: 10, - insertText: '_', + insertText: `␊ + `, + lineNumber: 42, }, - lineNumber: 90, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 41, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 15, - 1, - ], + errorContext: '#### Durian - Bottom {MD022} ####', + errorDetail: 'Expected: 3; Actual: 1; Below', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 15, - insertText: '_', + insertText: `␊ + ␊ + `, + lineNumber: 55, }, - lineNumber: 90, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 54, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 8, - 2, - ], + errorContext: '##### Elderberry - Top {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 8, - insertText: '__', + insertText: `␊ + `, }, - lineNumber: 94, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + lineNumber: 61, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 14, - 2, - ], + errorContext: '###### Fig - Top {MD022} ######', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 14, - insertText: '__', + insertText: `␊ + `, }, - lineNumber: 94, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', - ruleNames: [ - 'MD050', - 'strong-style', - ], - }, - { - errorContext: '[Missing link fragment](#missing)', - errorDetail: null, - errorRange: [ - 1, - 33, - ], - fixInfo: null, - lineNumber: 96, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', - ruleNames: [ - 'MD051', - 'link-fragments', - ], - }, - { - errorContext: '[Missing link][label]', - errorDetail: 'Missing link or image reference definition: "label"', - errorRange: [ - 1, - 21, - ], - fixInfo: null, - lineNumber: 98, - ruleDescription: 'Reference links and images should use a label that is defined', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md', + lineNumber: 74, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD052', - 'reference-links-images', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: '[unused]: link-destination', - errorDetail: 'Unused link or image reference definition: "unused"', - errorRange: [ - 1, - 26, - ], + errorContext: '###### Fig - Bottom {MD022} ######', + errorDetail: 'Expected: 4; Actual: 1; Below', + errorRange: null, fixInfo: { - deleteCount: -1, + insertText: `␊ + ␊ + ␊ + `, + lineNumber: 82, }, - lineNumber: 100, - ruleDescription: 'Link and image reference definitions should be needed', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md053.md', + lineNumber: 81, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD053', - 'link-image-reference-definitions', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: '[text][url]', - errorDetail: null, - errorRange: [ - 1, - 11, - ], + errorContext: 'Grape - Top {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 11, - editColumn: 1, - insertText: '[text](https://example.com/page)', + insertText: `␊ + `, }, - lineNumber: 103, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe', - errorRange: [ - 2, - 1, - ], - fixInfo: null, - lineNumber: 110, - ruleDescription: 'Table pipe style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md055.md', - ruleNames: [ - 'MD055', - 'table-pipe-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 1; Too few cells, row will be missing data', - errorRange: [ - 11, - 1, - ], - fixInfo: null, - lineNumber: 114, - ruleDescription: 'Table column count', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md056.md', + lineNumber: 89, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD056', - 'table-column-count', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: '| table {MD058} |', - errorDetail: null, + errorContext: 'Honeycomb - Top {MD022}', + errorDetail: 'Expected: 2; Actual: 1; Above', errorRange: null, fixInfo: { insertText: `␊ `, }, - lineNumber: 117, - ruleDescription: 'Tables should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', + lineNumber: 107, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD058', - 'blanks-around-tables', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: '| cell {MD058} |', - errorDetail: null, + errorContext: 'Honeycomb - Bottom {MD022}', + errorDetail: 'Expected: 2; Actual: 1; Below', errorRange: null, fixInfo: { insertText: `␊ `, - lineNumber: 120, + lineNumber: 116, }, - lineNumber: 119, - ruleDescription: 'Tables should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', + lineNumber: 114, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD058', - 'blanks-around-tables', + 'MD022', + 'blanks-around-headings', ], }, ], - fixed: `## Heading 1 {MD041:1}␊ + fixed: `# Blanks Around Headings (Arrays)␊ ␊ - #### Heading 2 {MD001:3}␊ + # Apple - Good␊ + Text␊ ␊ - # Heading 3 {MD003} {MD043} #␊ + # Apple - Top {MD022}␊ + Text␊ ␊ - * list {MD032}␊ + # Apple - Bottom␊ ␊ - * list {MD004} {MD007} {MD030} {MD032}␊ + Text␊ ␊ - * list␊ - * list {MD007}␊ - * list {MD005}␊ ␊ - {MD009} {MD010}␊ + ## Banana - Good␊ ␊ - [name](link) {MD011}␊ ␊ - {MD012:18}␊ + Text␊ ␊ - long line long line long line long line long line long line long line long line long line {MD013}␊ ␊ - dollar {MD014}␊ + ## Banana - Top {MD022}␊ ␊ - # Heading 4 {MD018}␊ ␊ - # Heading 5 {MD019}␊ + Text␊ ␊ - # Heading 6 {MD020} #␊ ␊ - # Heading 7 {MD021} {MD003} #␊ + ## Banana - Bottom {MD022}␊ ␊ - # Heading 8␊ ␊ - # Heading 8␊ + Text␊ ␊ - {MD024:35}␊ - Note: Can not break MD025 and MD041 in the same file␊ ␊ - # Heading 9 {MD023} {MD026}␊ ␊ - > {MD027}␊ + ### Cherry - Good␊ ␊ - > {MD028:43}␊ + Text␊ ␊ - 1. list␊ - 3. list {MD029}␊ ␊ - \`\`\`js␊ - \`\`\`␊ ␊ - * list {MD032} {MD046:49}␊ + ### Cherry - Top {MD022}␊ ␊ - {MD031:50}␊ + Text␊ ␊ -
{MD033}␊ ␊ - {MD034}␊ ␊ - ---␊ + ### Cherry - Bottom {MD022}␊ ␊ - ***␊ + Text␊ + #### Durian - Good ####␊ ␊ - {MD035:61}␊ ␊ - _Section {MD036} Heading_␊ ␊ - Emphasis _with_ space {MD037}␊ + Text␊ ␊ - Code \`with\` space {MD038}␊ + #### Durian - Top ####␊ ␊ - [link with space](link) {MD039}␊ ␊ - \`\`\`␊ - code fence without language {MD040:73} {MD046:73}␊ - \`\`\`␊ ␊ - ~~~js␊ - code fence with different style {MD048:77} {MD046:77}␊ - ~~~␊ + Text␊ + #### Durian - Bottom {MD022} ####␊ ␊ - [empty link]() {MD042}␊ ␊ - markdownlint {MD044}␊ ␊ - ![](image.jpg) {MD045}␊ + Text␊ ␊ - ## Heading 10 {MD022}␊ + ##### Elderberry - Good␊ ␊ - Emphasis _with_ underscore style␊ + Text␊ ␊ - Emphasis _with_ different style {MD049}␊ + ##### Elderberry - Top {MD022}␊ ␊ - Strong __with__ underscore style␊ + Text␊ ␊ - Strong __with__ different style {MD050}␊ + ##### Elderberry - Bottom␊ + Text␊ ␊ - [Missing link fragment](#missing) {MD051}␊ + ###### Fig - Good ######␊ ␊ - [Missing link][label] {MD052}␊ ␊ - {MD053:100}␊ ␊ - [text](https://example.com/page) {MD054}␊ ␊ - ␊ - [url]: https://example.com/page␊ + Text␊ + ␊ + ###### Fig - Top {MD022} ######␊ + ␊ ␊ - | table | header |␊ - |--------|--------|␊ - {MD055} | cell |␊ ␊ - | table | header |␊ - |---------|--------|␊ - | {MD056} |␊ ␊ Text␊ ␊ - | table {MD058} |␊ - |-------|␊ - | cell {MD058} |␊ + ###### Fig - Bottom {MD022} ######␊ ␊ - > Blockquote␊ + ␊ + ␊ + ␊ + Text␊ + ␊ + Grape - Good␊ + ============␊ + ␊ + ---␊ + ␊ + Grape - Top {MD022}␊ + ===================␊ + ␊ + Text␊ + ␊ + Grape - Bottom␊ + ==============␊ + ␊ + ␊ + Text␊ + ␊ + ␊ + Honeycomb - Good␊ + ---------␊ + ␊ + ␊ + Text␊ + ␊ + ␊ + Honeycomb - Top {MD022}␊ + -----------------------␊ + ␊ + ␊ + Text␊ + ␊ + ␊ + Honeycomb - Bottom {MD022}␊ + --------------------------␊ + ␊ + ␊ + Text␊ ␊ ␊ - ␊ - EOF {MD047}␊ `, } -## bulleted_list_2_space_indent.md +## blanks-around-headings.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Expected: 4; Actual: 2', - errorRange: [ - 1, - 4, - ], + errorContext: '## Banana {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', + insertText: `␊ + `, + lineNumber: 8, }, lineNumber: 7, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Expected: 8; Actual: 4', - errorRange: [ - 1, - 6, - ], + errorContext: '## Durian {MD022} ##', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', + insertText: `␊ + `, }, - lineNumber: 8, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 13, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD022', + 'blanks-around-headings', ], }, - ], - fixed: `# bulleted_list_2_space_indent␊ - ␊ - This is a document where the lists are indented by 2 spaces, but the style is␊ - set to 4 space indents for lists:␊ - ␊ - * Test X␊ - * Test Y {MD007}␊ - * Test Z {MD007}␊ - ␊ - ␊ - `, - } - -## bulleted_list_4_space_indent.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 4', - errorRange: [ - 1, - 6, - ], + errorContext: 'Elderberry {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', + insertText: `␊ + `, }, - lineNumber: 4, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 18, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Expected: 4; Actual: 8', - errorRange: [ - 1, - 10, - ], + errorContext: 'Elderberry {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 4, - editColumn: 1, - insertText: '', + insertText: `␊ + `, + lineNumber: 20, }, - lineNumber: 5, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 18, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD022', + 'blanks-around-headings', ], }, ], - fixed: `# bulleted_list_4_space_indent␊ + fixed: `# Blanks Around Headings␊ ␊ - * Test X␊ - * Test Y {MD007}␊ - * Test Z {MD007}␊ + ## Apple␊ + ␊ + Text␊ + ␊ + ## Banana {MD022}␊ + ␊ + Text␊ + ␊ + ## Cherry␊ + ␊ + Text␊ + ␊ + ## Durian {MD022} ##␊ + ␊ + Text␊ + ␊ + ---␊ + ␊ + Elderberry {MD022}␊ + ------------------␊ + ␊ + Text␊ + ␊ + ## Fig␊ + ␊ + ␊ `, } -## bulleted_list_not_at_beginning_of_line.md +## blanks-around-tables.md > Snapshot 1 @@ -5625,1541 +4931,1157 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: 0; Actual: 2', + errorDetail: 'Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe', errorRange: [ 1, - 4, + 1, ], - fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', - }, + fixInfo: null, lineNumber: 15, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleDescription: 'Table pipe style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md055.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD055', + 'table-pipe-style', ], }, { errorContext: null, - errorDetail: 'Expected: 2; Actual: 4', + errorDetail: 'Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe', errorRange: [ + 29, 1, - 6, ], - fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', - }, - lineNumber: 16, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 15, + ruleDescription: 'Table pipe style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md055.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD055', + 'table-pipe-style', ], }, { errorContext: null, - errorDetail: 'Expected: 2; Actual: 4', + errorDetail: 'Expected: 2; Actual: 1; Too few cells, row will be missing data', errorRange: [ + 29, 1, - 6, ], - fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', - }, - lineNumber: 17, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 15, + ruleDescription: 'Table column count', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md056.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD056', + 'table-column-count', ], }, { - errorContext: null, - errorDetail: 'Expected: 4; Actual: 6', - errorRange: [ - 1, - 8, - ], + errorContext: '| Header | {MD058} |', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', + insertText: `␊ + `, }, - lineNumber: 18, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 8, + ruleDescription: 'Tables should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD058', + 'blanks-around-tables', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 4', - errorRange: [ - 1, - 6, - ], + errorContext: '| Cell | {MD058} |', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', + insertText: `␊ + `, + lineNumber: 20, }, lineNumber: 19, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleDescription: 'Tables should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD058', + 'blanks-around-tables', ], }, { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 2', - errorRange: [ - 1, - 4, - ], + errorContext: '> | Header | {MD058} |', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', + insertText: `>␊ + `, }, - lineNumber: 20, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 25, + ruleDescription: 'Tables should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD058', + 'blanks-around-tables', ], }, { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 2', - errorRange: [ - 1, - 4, - ], + errorContext: '> | Cell | {MD058} |', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', + insertText: `>␊ + `, + lineNumber: 28, }, - lineNumber: 21, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 27, + ruleDescription: 'Tables should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD058', + 'blanks-around-tables', ], }, { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 2', - errorRange: [ - 1, - 4, - ], + errorContext: '> | Cell | {MD058} |', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', + insertText: `>␊ + `, + lineNumber: 33, }, - lineNumber: 30, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 32, + ruleDescription: 'Tables should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD058', + 'blanks-around-tables', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 4', - errorRange: [ - 1, - 6, - ], + errorContext: '| Header | {MD058} |', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', + insertText: `␊ + `, }, - lineNumber: 31, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 36, + ruleDescription: 'Tables should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD058', + 'blanks-around-tables', ], }, { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', - errorRange: [ - 1, - 3, - ], + errorContext: '| Cell | {MD058} |', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', + insertText: `␊ + `, + lineNumber: 39, }, - lineNumber: 41, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 38, + ruleDescription: 'Tables should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD058', + 'blanks-around-tables', ], }, { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', - errorRange: [ - 1, - 3, - ], + errorContext: '| Header | {MD058} |', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', + insertText: `␊ + `, }, lineNumber: 42, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', - ruleNames: [ - 'MD007', - 'ul-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', - errorRange: [ - 1, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', - }, - lineNumber: 43, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleDescription: 'Tables should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD058', + 'blanks-around-tables', ], }, { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 2', - errorRange: [ - 1, - 4, - ], + errorContext: '| Cell | {MD058} |', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', + insertText: `␊ + `, + lineNumber: 45, }, - lineNumber: 55, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 44, + ruleDescription: 'Tables should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD058', + 'blanks-around-tables', ], }, { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 2', - errorRange: [ - 1, - 4, - ], + errorContext: '| Header | {MD058} |', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', + insertText: `␊ + `, }, - lineNumber: 57, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 48, + ruleDescription: 'Tables should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD058', + 'blanks-around-tables', ], }, { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 2', - errorRange: [ - 1, - 4, - ], + errorContext: '| Cell | {MD058} |', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', + insertText: `␊ + `, + lineNumber: 51, }, - lineNumber: 59, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 50, + ruleDescription: 'Tables should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD058', + 'blanks-around-tables', ], }, ], - fixed: `# Bulleted List Not at Beginning of Line␊ - ␊ - Text␊ + fixed: `# Blanks Around Tables␊ ␊ - * Item␊ - * Item␊ - * Item␊ - * Item␊ - * Item␊ - * Item␊ - * Item␊ + | Header | Header |␊ + | ------ | ------ |␊ + | Cell | Cell |␊ ␊ Text␊ ␊ - * Item {MD007}␊ - * Item {MD007}␊ - * Item {MD007}␊ - * Item {MD007}␊ - * Item {MD007}␊ - * Item {MD007}␊ - * Item {MD007}␊ - ␊ - Text␊ + | Header | {MD058} |␊ + | ------ | ------- |␊ + | Cell | Cell |␊ ␊ - * Item␊ - * Item␊ + | Header | Header |␊ + | ------ | ------ |␊ + | Cell | Cell |␊ + Part of table {MD055} {MD056}␊ ␊ - Text␊ + | Header | Header |␊ + | ------ | ------- |␊ + | Cell | {MD058} |␊ ␊ - * Item {MD007}␊ - * Item {MD007}␊ + > Blockquote␊ ␊ Text␊ ␊ - * Item␊ - * Item␊ - * Item␊ - ␊ + > Text␊ + >␊ + > | Header | {MD058} |␊ + > | ------ | ------- |␊ + > | Cell | {MD058} |␊ + >␊ Text␊ ␊ - * Item {MD007}␊ - * Item {MD007}␊ - * Item {MD007}␊ + > | Header | Header |␊ + > | ------ | ------- |␊ + > | Cell | {MD058} |␊ + >␊ + > > Blockquote␊ ␊ - Text␊ + - List Item␊ ␊ - * Item␊ + | Header | {MD058} |␊ + | ------ | ------- |␊ + | Cell | {MD058} |␊ ␊ - * Item␊ + - List Item␊ ␊ - * Item␊ + 1. List Item␊ ␊ - Text␊ + | Header | {MD058} |␊ + | ------ | ------- |␊ + | Cell | {MD058} |␊ ␊ - * Item {MD007}␊ + 1. List Item␊ ␊ - * Item {MD007}␊ + :::directive␊ ␊ - * Item {MD007}␊ - `, - } - -## byte-order-marker-utf8.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Heading␊ + | Header | {MD058} |␊ + | ------ | ------- |␊ + | Cell | {MD058} |␊ ␊ - Text␊ + :::␊ `, } -## code-block-in-list.md +## blanks-around.md > Snapshot 1 { errors: [], - fixed: `# Code Block in List␊ - ␊ - Text␊ - ␊ - \`\`\`js␊ - // Code␊ - \`\`\`␊ - ␊ - Text␊ - ␊ - 1. Item␊ + fixed: `# Blanks Around␊ ␊ - \`\`\`js␊ - // Code␊ - \`\`\`␊ + ---␊ ␊ - 1. Item␊ + ## MD022/blanks-around-headings␊ ␊ - \`\`\`js␊ - // Code␊ - \`\`\`␊ - `, - } - -## code-block-trailing-spaces.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 2', - errorRange: [ - 28, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 28, - }, - lineNumber: 5, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', - ruleNames: [ - 'MD009', - 'no-trailing-spaces', - ], - }, - ], - fixed: `# code-block-trailing-spaces␊ + >␊ + ### Alpha␊ + > >␊ ␊ - Text␊ + ␊ + ### Beta␊ + ␊ ␊ - Two trailing spaces {MD009}␊ + > Text␊ + >␊ + > ### Gamma␊ + > >␊ + > > Text␊ ␊ - Text␊ + ---␊ ␊ - Indented code block␊ + ## MD031/blanks-around-fences␊ ␊ - Statement␊ - Indented statement␊ - ␊ - Statement␊ - Indented statement␊ + > >␊ + \`\`\`js␊ + console.log();␊ + \`\`\`␊ + >␊ ␊ - Two trailing spaces ␊ + ␊ + \`\`\`js␊ + console.log();␊ + \`\`\`␊ + ␊ ␊ - Text␊ + > Text␊ + >␊ + > \`\`\`js␊ + > console.log();␊ + > \`\`\`␊ + > >␊ + > >Text␊ ␊ - \`\`\`text␊ - Fenced code block␊ + ---␊ ␊ - Statement␊ - Indented statement␊ - ␊ - Statement␊ - Indented statement␊ + ## MD032/blanks-around-lists␊ ␊ - Two trailing spaces ␊ - \`\`\`␊ + >␊ + - List item␊ + >>␊ ␊ - Text␊ + ␊ + - List item␊ + ␊ ␊ - ␊ + > Text␊ + >␊ + > - List item␊ + >>␊ + >> Text␊ `, } -## code-block-with-language-allowed.md +## blockquote-headings.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 1, - ], + errorContext: '> # Quoted heading in list {MD022} {MD025}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: ' ', + insertText: `␊ + `, }, - lineNumber: 34, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 23, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 2, - ], + errorContext: '> # Quoted heading in list {MD022} {MD025}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: ' ', + insertText: `␊ + `, + lineNumber: 24, }, - lineNumber: 35, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 23, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 2, - ], + errorContext: '> > # Double-quoted heading in list {MD022} {MD025}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: ' ', + insertText: `␊ + `, }, - lineNumber: 36, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 26, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 3, - ], + errorContext: '> > # Double-quoted heading in list {MD022} {MD025}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 3, - editColumn: 1, - insertText: ' ', + insertText: `␊ + `, + lineNumber: 27, }, - lineNumber: 37, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 26, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 2, - ], + errorContext: '> ## Quoted sub-heading in list {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: ' ', + insertText: `␊ + `, }, - lineNumber: 38, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 29, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 1, - ], + errorContext: '> ## Quoted sub-heading in list {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: ' ', + insertText: `␊ + `, + lineNumber: 30, }, - lineNumber: 39, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 29, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 10', - errorRange: [ - 10, - 1, - ], + errorContext: '> ## Quoted indented sub-heading in list {MD022} {MD023} {MD027}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 10, - insertText: ' ', + insertText: `␊ + `, }, - lineNumber: 41, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 33, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 1, - ], + errorContext: '> ## Quoted indented sub-heading in list {MD022} {MD023} {MD027}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: ' ', + insertText: `␊ + `, + lineNumber: 34, }, - lineNumber: 45, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 33, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 1, + errorContext: '> ## Heading One {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, + fixInfo: { + insertText: `>␊ + `, + lineNumber: 41, + }, + lineNumber: 40, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + ruleNames: [ + 'MD022', + 'blanks-around-headings', ], + }, + { + errorContext: '> ## Heading Two {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: ' ', + insertText: `>␊ + `, }, lineNumber: 46, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 2, - ], + errorContext: '> ## Heading Three {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: ' ', + insertText: `>␊ + `, }, - lineNumber: 47, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 53, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 1, - ], + errorContext: '> ## Heading Three {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: ' ', + insertText: `>␊ + `, + lineNumber: 54, }, - lineNumber: 48, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 53, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, - ], - fixed: `# Heading␊ - ␊ - \`\`\`js␊ - if (true) {␊ - console.log("true");␊ - if (false) {␊ - console.log("false");␊ - }␊ - }␊ - \`\`\`␊ - ␊ - \`\`\`js␊ - if (true) {␊ - console.log("true");␊ - if (false) {␊ - console.log("false");␊ - }␊ - }␊ - \`\`\`␊ - ␊ - if (true) {␊ - console.log("true");␊ - if (false) {␊ - console.log("false");␊ - }␊ - }␊ - ␊ - \`\`\`text␊ - hello␊ - world␊ - }␊ - \`\`\`␊ - ␊ - if (true) { // {MD010}␊ - console.log("true"); // {MD010}␊ - if (false) { // {MD010}␊ - console.log("false"); // {MD010}␊ - } // {MD010}␊ - } // {MD010}␊ - ␊ - Line with hard tab. {MD010}␊ - ␊ - \`\`\`javascript␊ - if (true) {␊ - console.log("true"); // {MD010}␊ - if (false) { // {MD010}␊ - console.log("false"); // {MD010}␊ - } // {MD010}␊ - }␊ - \`\`\`␊ - ␊ - ␊ - `, - } - -## code-block-with-tabs-allowed.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Column: 10', - errorRange: [ - 10, - 1, - ], + errorContext: '> > ### Heading Four {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 10, - insertText: ' ', + insertText: `> >␊ + `, }, - lineNumber: 35, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 59, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Expected: fenced; Actual: indented', + errorContext: '> > ### Heading Four {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Below', errorRange: null, - fixInfo: null, - lineNumber: 21, - ruleDescription: 'Code block style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', + fixInfo: { + insertText: `> >␊ + `, + lineNumber: 60, + }, + lineNumber: 59, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD046', - 'code-block-style', + 'MD022', + 'blanks-around-headings', ], }, - ], - fixed: `# Heading␊ - ␊ - \`\`\`js␊ - if (true) {␊ - console.log("true");␊ - if (false) {␊ - console.log("false");␊ - }␊ - }␊ - \`\`\`␊ - ␊ - \`\`\`js␊ - if (true) {␊ - console.log("true");␊ - if (false) {␊ - console.log("false");␊ - }␊ - }␊ - \`\`\`␊ - ␊ - if (true) { // {MD046}␊ - console.log("true");␊ - if (false) {␊ - console.log("false");␊ - }␊ - }␊ - ␊ - if (true) {␊ - console.log("true");␊ - if (false) {␊ - console.log("false");␊ - }␊ - }␊ - ␊ - Line with hard tab. {MD010}␊ - ␊ - ␊ - `, - } - -## code-block-with-tabs.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 1, - ], + errorContext: '> > ### Heading Five {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: ' ', + insertText: `>␊ + `, }, - lineNumber: 14, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 65, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 1, - ], + errorContext: '> > ### Heading Five {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: ' ', + insertText: `> >␊ + `, + lineNumber: 66, }, - lineNumber: 15, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 65, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 2, - ], + errorContext: '> > ### Heading Six {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: ' ', + insertText: `> >␊ + `, }, - lineNumber: 16, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 71, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 1, - ], + errorContext: '> > ### Heading Six {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: ' ', + insertText: `>␊ + `, + lineNumber: 72, }, - lineNumber: 17, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 71, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 1', + errorContext: '> ## Quoted indented sub-head...', + errorDetail: null, errorRange: [ - 1, + 3, 1, ], fixInfo: { deleteCount: 1, - editColumn: 1, - insertText: ' ', + editColumn: 3, }, - lineNumber: 28, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 17, + ruleDescription: 'Headings must start at the beginning of the line', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD023', + 'heading-start-left', ], }, { - errorContext: null, - errorDetail: 'Column: 1', + errorContext: ' > ## Quoted indented sub-he...', + errorDetail: null, errorRange: [ + 5, 1, - 2, ], fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: ' ', + deleteCount: 1, + editColumn: 5, }, - lineNumber: 29, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 33, + ruleDescription: 'Headings must start at the beginning of the line', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD023', + 'heading-start-left', ], }, { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 2, + errorContext: 'Quoted heading {MD025}', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', + ruleNames: [ + 'MD025', + 'single-title', + 'single-h1', ], - fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 30, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + }, + { + errorContext: 'Double-quoted heading {MD025}', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 9, + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD025', + 'single-title', + 'single-h1', ], }, { - errorContext: null, - errorDetail: 'Column: 1', - errorRange: [ - 1, - 3, + errorContext: 'Quoted heading in list {MD022}...', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 23, + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', + ruleNames: [ + 'MD025', + 'single-title', + 'single-h1', ], - fixInfo: { - deleteCount: 3, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 31, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + }, + { + errorContext: 'Double-quoted heading in list ...', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 26, + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD025', + 'single-title', + 'single-h1', ], }, { - errorContext: null, - errorDetail: 'Column: 1', + errorContext: '> ## Quoted indented sub-head...', + errorDetail: null, errorRange: [ + 3, 1, - 2, ], fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: ' ', + deleteCount: 1, + editColumn: 3, }, - lineNumber: 32, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 17, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Column: 1', + errorContext: ' > ## Quoted indented sub-he...', + errorDetail: null, errorRange: [ - 1, + 5, 1, ], fixInfo: { deleteCount: 1, - editColumn: 1, - insertText: ' ', + editColumn: 5, }, lineNumber: 33, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', - ], - }, - { - errorContext: null, - errorDetail: 'Column: 10', - errorRange: [ - 10, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 10, - insertText: ' ', - }, - lineNumber: 35, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', - ruleNames: [ - 'MD010', - 'no-hard-tabs', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: fenced; Actual: indented', - errorRange: null, - fixInfo: null, - lineNumber: 21, - ruleDescription: 'Code block style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', - ruleNames: [ - 'MD046', - 'code-block-style', + 'MD027', + 'no-multiple-space-blockquote', ], }, ], fixed: `# Heading␊ ␊ - \`\`\`js␊ - if (true) {␊ - console.log("true");␊ - if (false) {␊ - console.log("false");␊ - }␊ - }␊ - \`\`\`␊ + ## Sub-heading␊ ␊ - \`\`\`js␊ - if (true) {␊ - console.log("true"); // {MD010}␊ - if (false) { // {MD010}␊ - console.log("false"); // {MD010}␊ - } // {MD010}␊ - }␊ - \`\`\`␊ + > # Quoted heading {MD025}␊ ␊ - if (true) { // {MD046}␊ - console.log("true");␊ - if (false) {␊ - console.log("false");␊ - }␊ - }␊ + Text␊ ␊ - if (true) { // {MD010}␊ - console.log("true"); // {MD010}␊ - if (false) { // {MD010}␊ - console.log("false"); // {MD010}␊ - } // {MD010}␊ - } // {MD010}␊ + > > # Double-quoted heading {MD025}␊ ␊ - Line with hard tab. {MD010}␊ + Text␊ + ␊ + > ## Quoted sub-heading␊ + ␊ + Text␊ + ␊ + > ## Quoted indented sub-heading {MD023} {MD027}␊ + ␊ + Text␊ + ␊ + - Item␊ + item␊ + ␊ + > # Quoted heading in list {MD022} {MD025}␊ + ␊ + - Item␊ + item␊ + ␊ + > > # Double-quoted heading in list {MD022} {MD025}␊ + ␊ + - Item␊ + item␊ + ␊ + > ## Quoted sub-heading in list {MD022}␊ + ␊ + - Item␊ + - Item␊ + item␊ + ␊ + > ## Quoted indented sub-heading in list {MD022} {MD023} {MD027}␊ + ␊ + - Item␊ + ␊ + Text␊ + ␊ + > Text␊ + >␊ + > ## Heading One {MD022}␊ + >␊ + > Text␊ + ␊ + Text␊ + ␊ + > Text␊ + >␊ + > ## Heading Two {MD022}␊ + >␊ + > Text␊ + ␊ + Text␊ + ␊ + > Text␊ + >␊ + > ## Heading Three {MD022}␊ + >␊ + > Text␊ + ␊ + Text␊ + ␊ + > > Text␊ + > >␊ + > > ### Heading Four {MD022}␊ + > >␊ + > > Text␊ + ␊ + Text␊ + ␊ + > Text␊ + >␊ + > > ### Heading Five {MD022}␊ + > >␊ + > > Text␊ + ␊ + Text␊ + ␊ + > > Text␊ + > >␊ + > > ### Heading Six {MD022}␊ + >␊ + > Text␊ + ␊ + Text␊ `, } -## code-blocks-and-spans.md +## blockquote-spaces-nested.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Expected: code; Actual: Code', + errorContext: '> A {MD027}', + errorDetail: null, errorRange: [ 3, - 4, + 1, ], fixInfo: { - deleteCount: 4, + deleteCount: 1, editColumn: 3, - insertText: 'code', }, - lineNumber: 1, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md', + lineNumber: 3, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD044', - 'proper-names', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Expected: code; Actual: CODE', + errorContext: '> > B {MD027}', + errorDetail: null, errorRange: [ - 6, - 4, + 5, + 1, ], fixInfo: { - deleteCount: 4, - editColumn: 6, - insertText: 'code', + deleteCount: 1, + editColumn: 5, }, - lineNumber: 3, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md', + lineNumber: 5, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD044', - 'proper-names', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Expected: code; Actual: CODE', + errorContext: '> C {MD027}', + errorDetail: null, errorRange: [ - 7, - 4, + 3, + 1, ], fixInfo: { - deleteCount: 4, - editColumn: 7, - insertText: 'code', + deleteCount: 1, + editColumn: 3, }, - lineNumber: 26, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md', + lineNumber: 7, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD044', - 'proper-names', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Expected: code; Actual: CODE', + errorContext: '> A {MD027}', + errorDetail: null, errorRange: [ - 7, - 4, + 3, + 1, ], fixInfo: { - deleteCount: 4, - editColumn: 7, - insertText: 'code', + deleteCount: 1, + editColumn: 3, }, - lineNumber: 28, - ruleDescription: 'Proper names should have the correct capitalization', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md', + lineNumber: 11, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD044', - 'proper-names', + 'MD027', + 'no-multiple-space-blockquote', ], }, - ], - fixed: `# code Blocks and Spans {MD044}␊ - ␊ - Text code text {MD044}␊ - ␊ - Text \`CODE\` text␊ - ␊ - \`\`\`lang␊ - CODE␊ - ␊ - CODE␊ - \`\`\`␊ - ␊ - \`CODE\` text \`CODE\`␊ - ␊ - CODE␊ - ␊ - CODE␊ - ␊ - Text \`CODE␊ - CODE\` text␊ - text text␊ - text \`CODE␊ - CODE CODE␊ - CODE\` text␊ - ␊ - Text \`code {MD044}␊ - ␊ - Text \`code {MD044}␊ - ␊ - ␊ - `, - } - -## code-blocks-prefixed-by-spaces.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Expected: 80; Actual: 98', + errorContext: '> > B {MD027}', + errorDetail: null, errorRange: [ - 81, - 18, + 5, + 1, ], - fixInfo: null, - lineNumber: 3, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + }, + lineNumber: 13, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Expected: 80; Actual: 98', + errorContext: '> > > C {MD027}', + errorDetail: null, errorRange: [ - 81, - 18, + 7, + 1, ], - fixInfo: null, - lineNumber: 25, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 7, + }, + lineNumber: 15, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Expected: 80; Actual: 98', + errorContext: '> > D {MD027}', + errorDetail: null, errorRange: [ - 81, - 18, - ], - fixInfo: null, - lineNumber: 39, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', - ruleNames: [ - 'MD013', - 'line-length', + 5, + 1, ], - }, - { - errorContext: null, - errorDetail: 'Expected: fenced; Actual: indented', - errorRange: null, - fixInfo: null, - lineNumber: 21, - ruleDescription: 'Code block style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + }, + lineNumber: 17, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD046', - 'code-block-style', + 'MD027', + 'no-multiple-space-blockquote', ], }, - ], - fixed: `# md013-code-blocks-spaces␊ - ␊ - Text text text text text text text text text text text text text text text text text text. {MD013}␊ - ␊ - \`\`\`text␊ - Text text text text text text text text text text text text text text text text text text.␊ - \`\`\`␊ - ␊ - \`\`\`text␊ - Text text text text text text text text text text text text text text text text text text.␊ - \`\`\`␊ - ␊ - \`\`\`text␊ - Text text text text text text text text text text text text text text text text text text.␊ - \`\`\`␊ - ␊ - \`\`\`text␊ - Text text text text text text text text text text text text text text text text text text.␊ - \`\`\`␊ - ␊ - \`\`\`text␊ - Text text text text text text text text text text text text text text text text text text. {MD046:21}␊ - \`\`\`␊ - ␊ - Text text text text text text text text text text text text text text text text text text. {MD013}␊ - ␊ - \`\`\`text␊ - Text text text text text text text text text text text text text text text text text text.␊ - \`\`\`␊ - ␊ - \`\`\`text␊ - Text text text text text text text text text text text text text text text text text text.␊ - \`\`\`␊ - ␊ - \`\`\`text␊ - Text text text text text text text text text text text text text text text text text text.␊ - \`\`\`␊ - ␊ - Text text text text text text text text text text text text text text text text text text. {MD013}␊ - ␊ - ␊ - `, - } - -## code-fences-in-blockquotes.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '```markdown', + errorContext: '> E {MD027}', errorDetail: null, - errorRange: null, + errorRange: [ + 3, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 4, + deleteCount: 1, + editColumn: 3, }, - lineNumber: 4, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 19, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: '```', + errorContext: '> A {MD027}', errorDetail: null, - errorRange: null, + errorRange: [ + 3, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 7, + deleteCount: 1, + editColumn: 3, }, - lineNumber: 6, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 23, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: '> ```markdown', + errorContext: '>> B {MD027}', errorDetail: null, - errorRange: null, + errorRange: [ + 4, + 1, + ], fixInfo: { - insertText: `>␊ - `, - lineNumber: 10, + deleteCount: 1, + editColumn: 4, }, - lineNumber: 10, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 25, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: '> ```', + errorContext: '>>> C {MD027}', errorDetail: null, - errorRange: null, + errorRange: [ + 5, + 1, + ], fixInfo: { - insertText: `>␊ - `, - lineNumber: 13, + deleteCount: 1, + editColumn: 5, }, - lineNumber: 12, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 27, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: '> > ```markdown', + errorContext: '>> D {MD027}', 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/md031.md', - ruleNames: [ - 'MD031', - 'blanks-around-fences', + errorRange: [ + 4, + 1, ], - }, - { - errorContext: '> > ```', - errorDetail: null, - errorRange: null, fixInfo: { - insertText: `> >␊ - `, - lineNumber: 18, + deleteCount: 1, + editColumn: 4, }, - lineNumber: 17, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 29, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD027', + 'no-multiple-space-blockquote', ], }, - ], - fixed: `# Detailed Results Code Fences in Blockquotes␊ - ␊ - Text␊ - ␊ - \`\`\`markdown␊ - Text␊ - \`\`\`␊ - ␊ - Text␊ - ␊ - > Text␊ - >␊ - > \`\`\`markdown␊ - > Text␊ - > \`\`\`␊ - >␊ - > Text␊ - > > Text␊ - > >␊ - > > \`\`\`markdown␊ - > > Text␊ - > > \`\`\`␊ - > >␊ - > > Text␊ - ␊ - {MD031:4} {MD031:6} {MD031:10} {MD031:12} {MD031:15} {MD031:17}␊ - `, - } - -## code-with-tabs-allowed.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Column: 5', + errorContext: '> E {MD027}', + errorDetail: null, errorRange: [ - 5, + 3, 1, ], fixInfo: { deleteCount: 1, - editColumn: 5, - insertText: ' ', + editColumn: 3, }, - lineNumber: 3, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 31, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Column: 5', + errorContext: '> > Text {MD027}', + errorDetail: null, errorRange: [ 5, 1, @@ -7167,142 +6089,94 @@ Generated by [AVA](https://avajs.dev). fixInfo: { deleteCount: 1, editColumn: 5, - insertText: ' ', }, - lineNumber: 21, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 35, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD027', + 'no-multiple-space-blockquote', ], }, - ], - fixed: `# Code With Tabs Allowed␊ - ␊ - Text text {MD010}␊ - ␊ - Text \`code code\` text␊ - ␊ - Text \` code\` text␊ - ␊ - Text \`code \` text␊ - ␊ - Text \`code code␊ - code code␊ - code code\` text␊ - ␊ - console.log(" ");␊ - ␊ - \`\`\`js␊ - console.log(" ");␊ - \`\`\`␊ - ␊ - \`\`\`j s {MD010}␊ - console.log(" ");␊ - \`\`\`␊ - ␊ - console.log("");␊ - ␊ - ␊ - `, - } - -## code-with-tabs-blocked.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Column: 5', + errorContext: ' > > Text {MD027}', + errorDetail: null, errorRange: [ - 5, + 6, 1, ], fixInfo: { deleteCount: 1, - editColumn: 5, - insertText: ' ', + editColumn: 6, }, - lineNumber: 3, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 39, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Column: 11', + errorContext: ' > > Text {MD027}', + errorDetail: null, errorRange: [ - 11, + 7, 1, ], fixInfo: { deleteCount: 1, - editColumn: 11, - insertText: ' ', + editColumn: 7, }, - lineNumber: 5, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 43, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Column: 7', + errorContext: '> > Text {MD027}', + errorDetail: null, errorRange: [ - 7, + 3, 1, ], fixInfo: { deleteCount: 1, - editColumn: 7, - insertText: ' ', + editColumn: 3, }, - lineNumber: 7, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 47, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Column: 11', + errorContext: '> > > Text {MD027}', + errorDetail: null, errorRange: [ - 11, + 5, 1, ], fixInfo: { deleteCount: 1, - editColumn: 11, - insertText: ' ', + editColumn: 5, }, - lineNumber: 9, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 51, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Column: 5', + errorContext: '> > > > Text {MD027}', + errorDetail: null, errorRange: [ 5, 1, @@ -7310,664 +6184,617 @@ Generated by [AVA](https://avajs.dev). fixInfo: { deleteCount: 1, editColumn: 5, - insertText: ' ', }, - lineNumber: 12, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 55, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Column: 18', + errorContext: '>> >> Text {MD027}', + errorDetail: null, errorRange: [ - 18, + 4, 1, ], fixInfo: { deleteCount: 1, - editColumn: 18, - insertText: ' ', + editColumn: 4, }, - lineNumber: 15, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 59, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Column: 14', + errorContext: ' > > Text {MD027}', + errorDetail: null, errorRange: [ - 14, + 6, 1, ], fixInfo: { deleteCount: 1, - editColumn: 14, - insertText: ' ', + editColumn: 6, }, - lineNumber: 18, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 63, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Column: 5', + errorContext: ' > > Text {MD027}', + errorDetail: null, errorRange: [ - 5, + 7, 1, ], fixInfo: { deleteCount: 1, - editColumn: 5, - insertText: ' ', + editColumn: 7, }, - lineNumber: 21, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 67, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Column: 14', + errorContext: ' > > Text {MD027}', + errorDetail: null, errorRange: [ - 14, + 8, 1, ], fixInfo: { deleteCount: 1, - editColumn: 14, - insertText: ' ', + editColumn: 8, }, - lineNumber: 22, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 71, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: null, - errorDetail: 'Column: 1', + errorContext: ' > > Text {MD027}', + errorDetail: null, errorRange: [ - 1, + 4, 1, ], fixInfo: { deleteCount: 1, - editColumn: 1, - insertText: ' ', + editColumn: 4, }, - lineNumber: 25, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 75, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD027', + 'no-multiple-space-blockquote', ], }, ], - fixed: `# Code With Tabs Blocked␊ + fixed: `# Nested blockquote␊ ␊ - Text text {MD010}␊ + > A {MD027}␊ + >␊ + > > B {MD027}␊ + >␊ + > C {MD027}␊ ␊ - Text \`code code\` text {MD010}␊ + Text␊ ␊ - Text \` code\` text {MD010}␊ + > A {MD027}␊ + >␊ + > > B {MD027}␊ + > >␊ + > > > C {MD027}␊ + > >␊ + > > D {MD027}␊ + >␊ + > E {MD027}␊ ␊ - Text \`code \` text {MD010}␊ + Text␊ ␊ - Text \`code code␊ - code code {MD010}␊ - code code\` text␊ + > A {MD027}␊ + >␊ + >> B {MD027}␊ + >>␊ + >>> C {MD027}␊ + >>␊ + >> D {MD027}␊ + >␊ + > E {MD027}␊ ␊ - console.log(" "); // {MD010}␊ + Text␊ ␊ - \`\`\`js␊ - console.log(" "); // {MD010}␊ - \`\`\`␊ + > > Text {MD027}␊ ␊ - \`\`\`j s {MD010}␊ - console.log(" "); // {MD010}␊ - \`\`\`␊ + Text␊ ␊ - console.log(""); // {MD010}␊ + > > Text {MD027}␊ ␊ - ␊ - `, - } - -## code_block_consistency.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Expected: indented; Actual: fenced', - errorRange: null, - fixInfo: null, - lineNumber: 10, - ruleDescription: 'Code block style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', - ruleNames: [ - 'MD046', - 'code-block-style', - ], - }, - ], - fixed: `# code_block_consistency␊ + Text␊ ␊ - This is text.␊ + > > Text {MD027}␊ ␊ - This is a␊ - code block.␊ + Text␊ ␊ - And here is more text␊ + > > Text {MD027}␊ ␊ - \`\`\`text␊ - and here is a different {MD046:10}␊ - code block␊ - \`\`\`␊ + Text␊ + ␊ + > > > Text {MD027}␊ + ␊ + Text␊ + ␊ + > > > > Text {MD027}␊ + ␊ + Text␊ + ␊ + >> >> Text {MD027}␊ + ␊ + Text␊ + ␊ + > > Text {MD027}␊ + ␊ + Text␊ + ␊ + > > Text {MD027}␊ + ␊ + Text␊ + ␊ + > > Text {MD027}␊ + ␊ + Text␊ + ␊ + > > Text {MD027}␊ `, } -## code_block_dollar.md +## blockquote_blank_lines.md > Snapshot 1 { errors: [ { - errorContext: '$ ls {MD014}', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 1', errorRange: [ - 5, - 2, + 1, + 1, ], fixInfo: { - deleteCount: 2, - editColumn: 5, + deleteCount: 1, + editColumn: 1, }, - lineNumber: 5, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + lineNumber: 12, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD014', - 'commands-show-output', + 'MD009', + 'no-trailing-spaces', ], }, { - errorContext: '$ less foo {MD014}', - errorDetail: null, - errorRange: [ - 5, - 2, - ], + errorContext: null, + errorDetail: 'Expected: 1; Actual: 2', + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 5, + deleteCount: -1, }, - lineNumber: 6, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + lineNumber: 10, + ruleDescription: 'Multiple consecutive blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md', ruleNames: [ - 'MD014', - 'commands-show-output', + 'MD012', + 'no-multiple-blanks', ], }, { - errorContext: '$ cat bar {MD014}', + errorContext: null, errorDetail: null, - errorRange: [ - 5, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 5, - }, - lineNumber: 8, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', - ruleNames: [ - 'MD014', - 'commands-show-output', - ], - }, - { - errorContext: '$ mkdir test {MD014}', - errorDetail: null, - errorRange: [ - 5, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 5, - }, - lineNumber: 74, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', - ruleNames: [ - 'MD014', - 'commands-show-output', + errorRange: null, + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Blank line inside blockquote', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md', + ruleNames: [ + 'MD028', + 'no-blanks-blockquote', ], }, { - errorContext: '$ cd test {MD014}', + errorContext: null, errorDetail: null, - errorRange: [ - 5, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 5, - }, - lineNumber: 75, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + errorRange: null, + fixInfo: null, + lineNumber: 9, + ruleDescription: 'Blank line inside blockquote', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md', ruleNames: [ - 'MD014', - 'commands-show-output', + 'MD028', + 'no-blanks-blockquote', ], }, { - errorContext: '$ ls test {MD014}', + errorContext: null, errorDetail: null, - errorRange: [ - 5, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 5, - }, - lineNumber: 76, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + errorRange: null, + fixInfo: null, + lineNumber: 10, + ruleDescription: 'Blank line inside blockquote', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md', ruleNames: [ - 'MD014', - 'commands-show-output', + 'MD028', + 'no-blanks-blockquote', ], }, { - errorContext: ' $ ls example {MD014}', + errorContext: null, errorDetail: null, - errorRange: [ - 6, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 6, - }, - lineNumber: 80, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + errorRange: null, + fixInfo: null, + lineNumber: 12, + ruleDescription: 'Blank line inside blockquote', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md', ruleNames: [ - 'MD014', - 'commands-show-output', + 'MD028', + 'no-blanks-blockquote', ], }, { errorContext: null, - errorDetail: 'Expected: indented; Actual: fenced', + errorDetail: null, errorRange: null, fixInfo: null, - lineNumber: 34, - ruleDescription: 'Code block style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', + lineNumber: 19, + ruleDescription: 'Blank line inside blockquote', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md', ruleNames: [ - 'MD046', - 'code-block-style', + 'MD028', + 'no-blanks-blockquote', ], }, ], - fixed: `# Code Block Dollar␊ - ␊ - The following code block shouldn't have $ before the commands:␊ - ␊ - ls {MD014}␊ - less foo {MD014}␊ - ␊ - cat bar {MD014}␊ - ␊ - However the following code block shows output, and $ can be used to␊ - distinguish between command and output:␊ - ␊ - $ ls␊ - foo bar␊ - $ less foo␊ - Hello world␊ - ␊ - $ cat bar␊ - baz␊ - ␊ - The following code block uses variable names, and likewise shouldn't fire:␊ - ␊ - $foo = 'bar';␊ - $baz = 'qux';␊ - ␊ - The following code block doesn't have any dollar signs, and shouldn't fire:␊ - ␊ - ls foo␊ - cat bar␊ - ␊ - The following (fenced) code block doesn't have any content at all, and␊ - shouldn't fire: {MD046:34}␊ - ␊ - \`\`\`bash␊ - \`\`\`␊ - ␊ - Mixed content:␊ - ␊ - $ ls␊ - file.md other.md␊ - $ git branch␊ - $ cat stuff␊ - ␊ - output␊ - ␊ - More mixed content:␊ - ␊ - $ ls␊ - $ git branch␊ - $ cat stuff␊ - stuff here␊ - more stuff␊ - $ tail cat␊ - meow␊ - ␊ - Command with blank lines in output:␊ - ␊ - $ dig example.com␊ - ␊ - ; ...␊ - ;; ...␊ - ␊ - ;; ...␊ + fixed: `# blockquote_blank_lines␊ ␊ - Some commands with no output:␊ + Some text␊ ␊ - $ mkdir test␊ - mkdir: created directory 'test'␊ - $ cd test␊ - $ ls test␊ + > a quote␊ + > same quote␊ ␊ - All commands with no output:␊ + > blank line above me␊ ␊ - mkdir test {MD014}␊ - cd test {MD014}␊ - ls test {MD014}␊ + > two blank lines above me␊ ␊ - Space-prefixed command with no output:␊ + > space above me␊ ␊ - ls example {MD014}␊ - `, - } - -## code_block_dollar_fence-empty.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Heading␊ + * List with embedded blockquote␊ ␊ - \`\`\`js␊ + > Test␊ + > Test␊ ␊ - \`\`\`␊ + > Test␊ ␊ - \`\`\`css␊ + * Item 2␊ ␊ + > Test. The blank line below should _not_ trigger MD028 as one blockquote is␊ + > inside the list, and the other is outside it.␊ ␊ - \`\`\`␊ + > Test␊ ␊ - \`\`\`spaces␊ - ␊ - \`\`\`␊ + Expected errors:␊ ␊ - ␊ + {MD028:7} {MD028:9} {MD028:10} {MD028:12} {MD028:19}␊ + {MD009:12} (trailing space is intentional)␊ + {MD012:10} (multiple blank lines are intentional)␊ `, } -## code_block_dollar_fence.md +## blockquote_spaces.md > Snapshot 1 { errors: [ { - errorContext: '$ code {MD014}', + errorContext: '> Foo {MD027}', errorDetail: null, errorRange: [ + 3, 1, - 2, ], fixInfo: { - deleteCount: 2, - editColumn: 1, + deleteCount: 1, + editColumn: 3, }, - lineNumber: 4, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + lineNumber: 6, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD014', - 'commands-show-output', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: '$ code {MD014}', + errorContext: '> Bar {MD027}', errorDetail: null, errorRange: [ + 3, 1, - 2, ], fixInfo: { - deleteCount: 2, - editColumn: 1, + deleteCount: 1, + editColumn: 3, }, - lineNumber: 10, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + lineNumber: 7, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD014', - 'commands-show-output', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: '$ code {MD014}', + errorContext: '> *foo* {MD027}', + errorDetail: null, + errorRange: [ + 3, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 3, + }, + lineNumber: 14, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: '> **bar** {MD027}', errorDetail: null, errorRange: [ + 3, 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 3, + }, + lineNumber: 15, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: '> "Baz" {MD027}', + errorDetail: null, + errorRange: [ + 3, 2, ], fixInfo: { deleteCount: 2, - editColumn: 1, + editColumn: 3, }, lineNumber: 16, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD014', - 'commands-show-output', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: '$ code {MD014}', + errorContext: '> `qux` {MD027}', errorDetail: null, errorRange: [ - 1, + 3, 2, ], fixInfo: { deleteCount: 2, - editColumn: 1, + editColumn: 3, }, lineNumber: 17, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD014', - 'commands-show-output', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: '$ code {MD014}', + errorContext: '> Foo {MD027}', errorDetail: null, errorRange: [ + 3, 1, - 2, ], fixInfo: { - deleteCount: 2, - editColumn: 1, + deleteCount: 1, + editColumn: 3, }, - lineNumber: 23, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + lineNumber: 27, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD014', - 'commands-show-output', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: '$ code {MD014}', + errorContext: '> Bar {MD027}', errorDetail: null, errorRange: [ + 3, 1, - 2, ], fixInfo: { - deleteCount: 2, - editColumn: 1, + deleteCount: 1, + editColumn: 3, }, - lineNumber: 24, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + lineNumber: 28, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD014', - 'commands-show-output', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: '$ npm install --save multimatc...', + errorContext: ' > Text {MD027}', errorDetail: null, errorRange: [ + 4, 1, - 2, ], fixInfo: { - deleteCount: 2, - editColumn: 1, + deleteCount: 1, + editColumn: 4, }, - lineNumber: 40, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + lineNumber: 33, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD014', - 'commands-show-output', + 'MD027', + 'no-multiple-space-blockquote', ], }, { - errorContext: ' $ ls example {MD014}', + errorContext: ' > Text {MD027}', errorDetail: null, errorRange: [ - 2, - 2, + 5, + 1, ], fixInfo: { - deleteCount: 2, - editColumn: 2, + deleteCount: 1, + editColumn: 5, }, - lineNumber: 46, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + lineNumber: 37, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD014', - 'commands-show-output', + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: ' > Text {MD027}', + errorDetail: null, + errorRange: [ + 6, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 6, + }, + lineNumber: 41, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: '> ', + errorDetail: null, + errorRange: [ + 3, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 3, + }, + lineNumber: 47, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', ], }, ], - fixed: `# Code Block Dollar Fence␊ + fixed: `# blockquote_spaces␊ ␊ - \`\`\`fence␊ - code {MD014}␊ - \`\`\`␊ + Some text␊ ␊ - text␊ + > Hello world␊ + > Foo {MD027}␊ + > Bar {MD027}␊ ␊ - \`\`\`fence␊ - code {MD014}␊ - \`\`\`␊ + This tests other things embedded in the blockquote:␊ ␊ - text␊ + - foo␊ ␊ - \`\`\`fence␊ - code {MD014}␊ - code {MD014}␊ - \`\`\`␊ + > *Hello world*␊ + > *foo* {MD027}␊ + > **bar** {MD027}␊ + > "Baz" {MD027}␊ + > \`qux\` {MD027}␊ + > *foo* more text␊ + > **bar** more text␊ + > 'baz' more text␊ + > \`qux\` more text␊ + >␊ + > - foo␊ ␊ - text␊ + Test the first line being indented too much:␊ ␊ - \`\`\`fence␊ - code {MD014}␊ - code {MD014}␊ - \`\`\`␊ + > Foo {MD027}␊ + > Bar {MD027}␊ + > Baz␊ ␊ - text␊ + Test spaces before the blockquote:␊ ␊ - \`\`\`fence␊ - $ code␊ - code␊ - $ code␊ - code␊ - \`\`\`␊ + > Text {MD027}␊ ␊ - text␊ + Text␊ ␊ - \`\`\`sh␊ + > Text {MD027}␊ ␊ - npm install --save multimatch {MD014}␊ - \`\`\`␊ + Text␊ ␊ - Space-prefixed command with no output:␊ + > Text {MD027}␊ ␊ - \`\`\`sh␊ - ls example {MD014}␊ - \`\`\`␊ + Test nothing in the blockquote:␊ + ␊ + ␊ + ␊ + > ␊ + {MD027:-1}␊ `, } -## code_block_fenced.md +## break-all-the-rules.md > Snapshot 1 @@ -7975,356 +6802,151 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: fenced; Actual: indented', + errorDetail: 'Expected: h3; Actual: h4', errorRange: null, fixInfo: null, - lineNumber: 5, - ruleDescription: 'Code block style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', - ruleNames: [ - 'MD046', - 'code-block-style', + 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/md001.md', + ruleNames: [ + 'MD001', + 'heading-increment', ], }, { errorContext: null, - errorDetail: 'Expected: fenced; Actual: indented', + errorDetail: 'Expected: atx; Actual: atx_closed', errorRange: null, fixInfo: null, - lineNumber: 16, - ruleDescription: 'Code block style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', + lineNumber: 5, + ruleDescription: 'Heading style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', ruleNames: [ - 'MD046', - 'code-block-style', + 'MD003', + 'heading-style', ], }, - ], - fixed: `# code_block_fenced␊ - ␊ - This is text.␊ - ␊ - This is a {MD046}␊ - code block.␊ - ␊ - And here is more text␊ - ␊ - \`\`\`text␊ - This is a code block that won't trigger.␊ - \`\`\`␊ - ␊ - But we'll do another:␊ - ␊ - And this {MD046}␊ - will.␊ - ␊ - Final text is here␊ - ␊ - ␊ - `, - } - -## code_block_indented.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: indented; Actual: fenced', + errorDetail: 'Expected: atx; Actual: atx_closed', errorRange: null, fixInfo: null, - lineNumber: 10, - ruleDescription: 'Code block style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', + lineNumber: 31, + ruleDescription: 'Heading style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', ruleNames: [ - 'MD046', - 'code-block-style', + 'MD003', + 'heading-style', ], }, - ], - fixed: `# code_block_indented␊ - ␊ - This is text.␊ - ␊ - This is a␊ - code block.␊ - ␊ - And here is more text␊ - ␊ - \`\`\`text␊ - This is {MD046:10} also a code block.␊ - \`\`\`␊ - ␊ - But we'll do another:␊ - ␊ - And this␊ - will.␊ - ␊ - One last one:␊ - ␊ - This is code␊ - ␊ - with an empty indented line.␊ - ␊ - ␊ - `, - } - -## code_fence_style_backtick.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: backtick; Actual: tilde', - errorRange: null, - fixInfo: null, - lineNumber: 7, - ruleDescription: 'Code fence style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', + errorDetail: 'Expected: asterisk; Actual: plus', + errorRange: [ + 1, + 4, + ], + fixInfo: { + deleteCount: 1, + editColumn: 2, + insertText: '*', + }, + lineNumber: 8, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD048', - 'code-fence-style', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Expected: backtick; Actual: tilde', - errorRange: null, + errorDetail: 'Expected: 3; Actual: 2', + errorRange: [ + 1, + 4, + ], fixInfo: null, - lineNumber: 17, - ruleDescription: 'Code fence style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', + lineNumber: 12, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD048', - 'code-fence-style', + 'MD005', + 'list-indent', ], }, - ], - fixed: `# code_fence_style_backtick␊ - ␊ - \`\`\`text␊ - This is a code block␊ - \`\`\`␊ - ␊ - ~~~text␊ - This is {MD048:7} a code block␊ - ~~~␊ - ␊ - \`\`\`text␊ - ~~~␊ - This is fine␊ - ~~~␊ - \`\`\`␊ - ␊ - ~~~text␊ - \`\`\`␊ - This is not {MD048:17}␊ - \`\`\`␊ - ~~~␊ - ␊ - ␊ - `, - } - -## code_fence_style_tilde.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: tilde; Actual: backtick', - errorRange: null, - fixInfo: null, - lineNumber: 3, - ruleDescription: 'Code fence style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', + errorDetail: 'Expected: 0; Actual: 1', + errorRange: [ + 1, + 4, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '', + }, + lineNumber: 8, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD048', - 'code-fence-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: tilde; Actual: backtick', - errorRange: null, - fixInfo: null, + errorDetail: 'Expected: 2; Actual: 3', + errorRange: [ + 1, + 5, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '', + }, lineNumber: 11, - ruleDescription: 'Code fence style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD048', - 'code-fence-style', + 'MD007', + 'ul-indent', ], }, - ], - fixed: `# code_fence_style_tilde␊ - ␊ - \`\`\`text␊ - This is {MD048:3} a code block␊ - \`\`\`␊ - ␊ - ~~~text␊ - This is a code block␊ - ~~~␊ - ␊ - \`\`\`text␊ - ~~~␊ - This is not fine {MD048:11}␊ - ~~~␊ - \`\`\`␊ - ␊ - ~~~text␊ - \`\`\`␊ - This is␊ - \`\`\`␊ - ~~~␊ - ␊ - ␊ - `, - } - -## consecutive_blank_lines.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', - errorRange: null, + errorDetail: 'Expected: 0 or 2; Actual: 1', + errorRange: [ + 17, + 1, + ], fixInfo: { - deleteCount: -1, + deleteCount: 1, + editColumn: 17, }, - lineNumber: 5, - ruleDescription: 'Multiple consecutive blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md', + lineNumber: 14, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD012', - 'no-multiple-blanks', + 'MD009', + 'no-trailing-spaces', ], }, - ], - fixed: `# consecutive_blank_lines␊ - ␊ - Some text␊ - ␊ - Some text {MD012:5}␊ - ␊ - This is a code block␊ - ␊ - ␊ - with two blank lines in it␊ - ␊ - Some more text␊ - `, - } - -## consistent_bullet_styles_asterisk.md - -> Snapshot 1 - - { - errors: [], - fixed: `# consistent_bullet_styles_asterisk␊ - ␊ - * Item␊ - * Item␊ - * Item␊ - `, - } - -## consistent_bullet_styles_dash.md - -> Snapshot 1 - - { - errors: [], - fixed: `# consistent_bullet_styles_dash␊ - ␊ - - Item␊ - - Item␊ - - Item␊ - `, - } - -## consistent_bullet_styles_plus.md - -> Snapshot 1 - - { - errors: [], - fixed: `# consistent_bullet_styles_plus␊ - ␊ - + Item␊ - + Item␊ - + Item␊ - `, - } - -## custom-rules.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Heading␊ - ␊ - Sample text.␊ - ␊ - Sample text.␊ - ␊ - Sample text.␊ - ␊ - Sample text.␊ - ␊ - ␊ - > Blockquote␊ - `, - } - -## default-spaces-MD010.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, errorDetail: 'Column: 1', errorRange: [ 1, - 13, + 1, ], fixInfo: { - deleteCount: 13, + deleteCount: 1, editColumn: 1, - insertText: ' ', + insertText: ' ', }, - lineNumber: 1, + lineNumber: 14, ruleDescription: 'Hard tabs', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ @@ -8334,74 +6956,86 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Column: 5', + errorDetail: '(name)[link]', errorRange: [ - 5, - 2, + 1, + 12, ], fixInfo: { - deleteCount: 2, - editColumn: 5, - insertText: ' ', + deleteCount: 12, + editColumn: 1, + insertText: '[name](link)', }, - lineNumber: 2, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 16, + ruleDescription: 'Reversed link syntax', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD011', + 'no-reversed-links', ], }, { errorContext: null, - errorDetail: 'Column: 35', + errorDetail: 'Expected: 1; Actual: 2', + errorRange: null, + fixInfo: { + deleteCount: -1, + }, + lineNumber: 18, + ruleDescription: 'Multiple consecutive blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md', + ruleNames: [ + 'MD012', + 'no-multiple-blanks', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 80; Actual: 97', errorRange: [ - 35, - 3, + 81, + 17, + ], + fixInfo: null, + lineNumber: 21, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + ruleNames: [ + 'MD013', + 'line-length', + ], + }, + { + errorContext: '$ dollar {MD014}', + errorDetail: null, + errorRange: [ + 5, + 2, ], fixInfo: { - deleteCount: 3, - editColumn: 35, - insertText: ' ', + deleteCount: 2, + editColumn: 5, }, - lineNumber: 3, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 23, + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD014', + 'commands-show-output', ], }, - ], - fixed: ` text {MD010}␊ - text and text 2 {MD010}␊ - texts with trailing spaces {MD010} ␊ - ␊ - ␊ - `, - } - -## emoji-headings.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '##️⃣ Keycap Number Sign {MD018...', + errorContext: '#Heading 4 {MD018}', errorDetail: null, errorRange: [ 1, - 3, + 2, ], fixInfo: { - editColumn: 3, + editColumn: 2, insertText: ' ', }, - lineNumber: 11, + lineNumber: 25, ruleDescription: 'No space after hash on atx style heading', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md', ruleNames: [ @@ -8409,450 +7043,339 @@ Generated by [AVA](https://avajs.dev). 'no-missing-space-atx', ], }, - ], - fixed: `# Emoji Headings␊ - ␊ - #️⃣ Keycap Number Sign␊ - ␊ - ␊ - ␊ - # #️⃣ Keycap Number Sign␊ - ␊ - Text␊ - ␊ - ## ️⃣ Keycap Number Sign {MD018}␊ - ␊ - Text␊ - ␊ - # Keycap Number Sign #️⃣␊ - ␊ - Text␊ - ␊ - # Keycap Number Sign#️⃣␊ - ␊ - Text␊ - ␊ - ␊ - `, - } - -## emphasis-markers.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 9, + errorContext: '# Heading 5 {MD019}', + errorDetail: null, + errorRange: [ + 3, 1, ], fixInfo: { deleteCount: 1, - editColumn: 9, - insertText: '_', + editColumn: 3, }, - lineNumber: 5, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 27, + ruleDescription: 'Multiple spaces after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD019', + 'no-multiple-space-atx', ], }, { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorContext: '#Heading 6 {MD020} #', + errorDetail: null, errorRange: [ - 13, 1, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 13, - insertText: '_', + deleteCount: 20, + editColumn: 1, + insertText: '# Heading 6 {MD020} #', }, - lineNumber: 5, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 29, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD020', + 'no-missing-space-closed-atx', ], }, { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorContext: '# Heading 7 {MD021} {MD003} ...', + errorDetail: null, errorRange: [ - 7, + 3, 1, ], fixInfo: { deleteCount: 1, - editColumn: 7, - insertText: '_', + editColumn: 3, }, - lineNumber: 8, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 31, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD021', + 'no-multiple-space-closed-atx', ], }, { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorContext: '... Heading 7 {MD021} {MD003} #', + errorDetail: null, errorRange: [ - 11, + 30, 1, ], fixInfo: { deleteCount: 1, - editColumn: 11, - insertText: '_', + editColumn: 30, }, - lineNumber: 8, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 31, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD021', + 'no-multiple-space-closed-atx', ], }, { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorContext: '## Heading 10 {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, + fixInfo: { + insertText: `␊ + `, + }, + lineNumber: 86, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + ruleNames: [ + 'MD022', + 'blanks-around-headings', + ], + }, + { + errorContext: ' # Heading 9 {MD023} {MD026}.', + errorDetail: null, errorRange: [ - 7, + 1, 1, ], fixInfo: { deleteCount: 1, - editColumn: 7, - insertText: '_', + editColumn: 1, }, - lineNumber: 12, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 40, + ruleDescription: 'Headings must start at the beginning of the line', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD023', + 'heading-start-left', + ], + }, + { + errorContext: 'Heading 8', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 35, + ruleDescription: 'Multiple headings with the same content', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', + ruleNames: [ + 'MD024', + 'no-duplicate-heading', ], }, { errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorDetail: 'Punctuation: \'.\'', errorRange: [ - 11, + 29, 1, ], fixInfo: { deleteCount: 1, - editColumn: 11, - insertText: '_', + editColumn: 29, }, - lineNumber: 12, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 40, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD026', + 'no-trailing-punctuation', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorContext: '> {MD027}', + errorDetail: null, errorRange: [ - 9, - 2, + 3, + 1, ], fixInfo: { - deleteCount: 2, - editColumn: 9, - insertText: '**', + deleteCount: 1, + editColumn: 3, }, - lineNumber: 14, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + lineNumber: 42, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD027', + 'no-multiple-space-blockquote', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 14, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 14, - insertText: '**', - }, - lineNumber: 14, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 43, + ruleDescription: 'Blank line inside blockquote', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD028', + 'no-blanks-blockquote', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorDetail: 'Expected: 2; Actual: 3; Style: 1/2/3', errorRange: [ - 7, - 2, + 1, + 3, ], - fixInfo: { - deleteCount: 2, - editColumn: 7, - insertText: '**', - }, - lineNumber: 17, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + fixInfo: null, + lineNumber: 47, + ruleDescription: 'Ordered list item prefix', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md029.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD029', + 'ol-prefix', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ - 12, 2, + 3, ], fixInfo: { deleteCount: 2, - editColumn: 12, - insertText: '**', + editColumn: 3, + insertText: ' ', }, - lineNumber: 17, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + lineNumber: 8, + ruleDescription: 'Spaces after list markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD030', + 'list-marker-space', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 7, - 2, - ], + errorContext: '```', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 7, - insertText: '**', + insertText: `␊ + `, + lineNumber: 51, }, - lineNumber: 21, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + lineNumber: 50, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 12, - 2, - ], + errorContext: '* list {MD032}', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 12, - insertText: '**', + insertText: `␊ + `, + lineNumber: 8, }, - lineNumber: 21, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + lineNumber: 7, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD032', + 'blanks-around-lists', ], }, - ], - fixed: `# Emphasis Markers␊ - ␊ - Text to _set_ the **preferences**.␊ - ␊ - This is _bad_ {MD049}␊ - ␊ - This \`is␊ - also\` _bad_ {MD049}␊ - ␊ - This \`is␊ - also␊ - very\` _bad_ {MD049}␊ - ␊ - This is **bad** {MD050}␊ - ␊ - This \`is␊ - also\` **bad** {MD050}␊ - ␊ - This \`is␊ - also␊ - very\` **bad** {MD050}␊ - ␊ -

HTML __should__ *be* ignored

␊ - ␊ -

␊ - HTML __should__ *be* ignored␊ -

␊ - ␊ - ␊ - `, - } - -## emphasis-not-heading-in-blockquote.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 3, - 1, - ], + errorContext: '+ list {MD004} {MD007} {MD030...', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 3, - insertText: '_', + insertText: `␊ + `, }, - lineNumber: 11, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 8, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 8, - 1, - ], + errorContext: '* list {MD032} {MD046:49}', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 8, - insertText: '_', + insertText: `␊ + `, }, - lineNumber: 11, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 51, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD032', + 'blanks-around-lists', ], }, { errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorDetail: 'Element: br', errorRange: [ - 3, 1, + 5, ], - fixInfo: { - deleteCount: 1, - editColumn: 3, - insertText: '_', - }, - lineNumber: 15, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + fixInfo: null, + lineNumber: 55, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorContext: 'https://example.com/page', + errorDetail: null, errorRange: [ - 18, 1, + 24, ], fixInfo: { - deleteCount: 1, - editColumn: 18, - insertText: '_', + deleteCount: 24, + editColumn: 1, + insertText: '', }, - lineNumber: 15, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 57, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD034', + 'no-bare-urls', ], }, - ], - fixed: `# Heading␊ - ␊ - > _Text_␊ - ␊ - Text␊ - ␊ - > _Text text text_␊ - ␊ - Text␊ - ␊ - > _Text_ {MD049}␊ - ␊ - Text␊ - ␊ - > _Text text text_ {MD049}␊ - ␊ - Text␊ - ␊ - > **Text**␊ - ␊ - Text␊ - ␊ - > **Text text text**␊ - `, - } - -## emphasis_instead_of_headings.md - -> Snapshot 1 - - { - errors: [ { - errorContext: 'Section 1: the first section {...', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: ---; Actual: ***', errorRange: null, fixInfo: null, - lineNumber: 3, - ruleDescription: 'Emphasis used instead of a heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md', + lineNumber: 61, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD036', - 'no-emphasis-as-heading', + 'MD035', + 'hr-style', ], }, { - errorContext: 'Section 1.1: another section {...', + errorContext: 'Section {MD036} Heading', errorDetail: null, errorRange: null, fixInfo: null, - lineNumber: 12, + lineNumber: 65, ruleDescription: 'Emphasis used instead of a heading', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md', ruleNames: [ @@ -8861,356 +7384,241 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: 'Section 2: yet more sections {...', + errorContext: 'h _', errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 21, - ruleDescription: 'Emphasis used instead of a heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md', + errorRange: [ + 14, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 15, + }, + lineNumber: 67, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD036', - 'no-emphasis-as-heading', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: 'Section 3: oh no more sections...', + errorContext: '`with `', errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 30, - ruleDescription: 'Emphasis used instead of a heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md', + errorRange: [ + 6, + 7, + ], + fixInfo: { + deleteCount: 5, + editColumn: 7, + insertText: 'with', + }, + lineNumber: 69, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD036', - 'no-emphasis-as-heading', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorContext: '[link with space ]', + errorDetail: null, errorRange: [ 1, - 1, + 18, ], fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '*', + deleteCount: 16, + editColumn: 2, + insertText: 'link with space', }, - lineNumber: 30, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 71, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD039', + 'no-space-in-links', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 48, - 1, + errorContext: '```', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 73, + ruleDescription: 'Fenced code blocks should have a language specified', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', + ruleNames: [ + 'MD040', + 'fenced-code-language', ], - fixInfo: { - deleteCount: 1, - editColumn: 48, - insertText: '*', - }, - lineNumber: 30, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + }, + { + errorContext: '## Heading 1 {MD041:1}', + 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/md041.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD041', + 'first-line-heading', + 'first-line-h1', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorContext: '[empty link]()', + errorDetail: null, errorRange: [ 1, - 2, + 14, ], - fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '**', - }, - lineNumber: 12, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + fixInfo: null, + lineNumber: 81, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD042', + 'no-empty-links', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 47, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 47, - insertText: '**', - }, - lineNumber: 12, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + errorDetail: 'Expected: # Broken; Actual: # Heading 3 {MD003} {MD043}', + errorRange: null, + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Required heading structure', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md043.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD043', + 'required-headings', ], }, - ], - fixed: `# emphasis_instead_of_headings␊ - ␊ - **Section 1: the first section {MD036}**␊ - ␊ - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor␊ - incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis␊ - nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.␊ - Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore␊ - eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt␊ - in culpa qui officia deserunt mollit anim id est laborum.␊ - ␊ - **Section 1.1: another section {MD036} {MD050}**␊ - ␊ - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor␊ - incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis␊ - nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.␊ - Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore␊ - eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt␊ - in culpa qui officia deserunt mollit anim id est laborum.␊ - ␊ - *Section 2: yet more sections {MD036}*␊ - ␊ - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor␊ - incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis␊ - nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.␊ - Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore␊ - eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt␊ - in culpa qui officia deserunt mollit anim id est laborum.␊ - ␊ - *Section 3: oh no more sections {MD036} {MD049}*␊ - ␊ - This is a normal paragraph␊ - **that just happens to have emphasized text in**␊ - even though the emphasized text is on its own line.␊ - ␊ - This is another **normal** paragraph with some text in it. This also should␊ - not trigger the rule.␊ - ␊ - **This is an entire paragraph that has been emphasized, and shouldn't be␊ - detected as a heading because it's on multiple lines**␊ - ␊ - **This also shouldn't be detected as a heading as it ends in punctuation.**␊ - ␊ - **This shouldn't be detected as a heading as it ends in full-width punctuation。**␊ - ␊ - **[This as well since it is a link](https://example.com)**␊ - `, - } - -## emphasis_style_asterisk.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorDetail: 'Expected: markdownlint; Actual: markdownLint', errorRange: [ 1, - 1, + 12, ], fixInfo: { - deleteCount: 1, + deleteCount: 12, editColumn: 1, - insertText: '*', + insertText: 'markdownlint', }, - lineNumber: 9, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 83, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD044', + 'proper-names', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorDetail: null, errorRange: [ - 6, 1, + 14, ], - fixInfo: { - deleteCount: 1, - editColumn: 6, - insertText: '*', - }, - lineNumber: 9, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + fixInfo: null, + lineNumber: 85, + ruleDescription: 'Images should have alternate text (alt text)', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md045.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD045', + 'no-alt-text', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 6, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 6, - insertText: '*', - }, - lineNumber: 11, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + errorDetail: 'Expected: indented; Actual: fenced', + errorRange: null, + fixInfo: null, + lineNumber: 49, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD046', + 'code-block-style', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 9, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 9, - insertText: '*', - }, - lineNumber: 11, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + errorDetail: 'Expected: indented; Actual: fenced', + errorRange: null, + fixInfo: null, + lineNumber: 73, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD046', + 'code-block-style', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 9, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 9, - insertText: '*', - }, - lineNumber: 13, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + errorDetail: 'Expected: indented; Actual: fenced', + errorRange: null, + fixInfo: null, + lineNumber: 77, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD046', + 'code-block-style', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorDetail: null, errorRange: [ - 13, + 11, 1, ], fixInfo: { - deleteCount: 1, - editColumn: 13, - insertText: '*', + editColumn: 12, + insertText: `␊ + `, }, - lineNumber: 13, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 140, + ruleDescription: 'Files should end with a single newline character', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD047', + 'single-trailing-newline', ], }, - ], - fixed: `# Emphasis style asterisk␊ - ␊ - *This* is fine␊ - ␊ - This *is* fine␊ - ␊ - This is *fine*␊ - ␊ - *This* is not␊ - ␊ - This *is* not␊ - ␊ - This is *not*␊ - ␊ - {MD049:-2} {MD049:-4} {MD049:-6}␊ - ␊ - Internal emphasis is preserved:␊ - apple*banana*cherry, apple*banana*, *banana*cherry␊ - apple_banana_cherry, apple_banana_, _banana_cherry␊ - ␊ - ␊ - `, - } - -## emphasis_style_underscore.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 1, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '_', - }, - lineNumber: 9, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + errorDetail: 'Expected: backtick; Actual: tilde', + errorRange: null, + fixInfo: null, + lineNumber: 77, + ruleDescription: 'Code fence style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD048', + 'code-fence-style', ], }, { errorContext: null, errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ - 6, + 10, 1, ], fixInfo: { deleteCount: 1, - editColumn: 6, + editColumn: 10, insertText: '_', }, - lineNumber: 9, + lineNumber: 90, ruleDescription: 'Emphasis style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ @@ -9222,15 +7630,15 @@ Generated by [AVA](https://avajs.dev). errorContext: null, errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ - 6, + 15, 1, ], fixInfo: { deleteCount: 1, - editColumn: 6, + editColumn: 15, insertText: '_', }, - lineNumber: 11, + lineNumber: 90, ruleDescription: 'Emphasis style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ @@ -9242,1315 +7650,1835 @@ Generated by [AVA](https://avajs.dev). errorContext: null, errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ - 9, - 1, + 8, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 9, - insertText: '_', + deleteCount: 2, + editColumn: 8, + insertText: '__', }, - lineNumber: 11, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 94, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD050', + 'strong-style', ], }, { errorContext: null, errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ - 9, - 1, + 14, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 9, - insertText: '_', + deleteCount: 2, + editColumn: 14, + insertText: '__', }, - lineNumber: 13, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 94, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD050', + 'strong-style', ], }, { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorContext: '[Missing link fragment](#missing)', + errorDetail: null, errorRange: [ - 13, 1, + 33, ], - fixInfo: { - deleteCount: 1, - editColumn: 13, - insertText: '_', - }, - lineNumber: 13, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + fixInfo: null, + lineNumber: 96, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD051', + 'link-fragments', ], }, - ], - fixed: `# Emphasis style underscore␊ - ␊ - _This_ is fine␊ - ␊ - This _is_ fine␊ - ␊ - This is _fine_␊ - ␊ - _This_ is not␊ - ␊ - This _is_ not␊ - ␊ - This is _not_␊ - ␊ - {MD049:-2} {MD049:-4} {MD049:-6}␊ - ␊ - Internal emphasis is preserved:␊ - apple*banana*cherry, apple*banana*, *banana*cherry␊ - apple_banana_cherry, apple_banana_, _banana_cherry␊ - ␊ - ␊ - `, - } - -## empty-links.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '[text]()', - errorDetail: null, + errorContext: '[Missing link][label]', + errorDetail: 'Missing link or image reference definition: "label"', errorRange: [ 1, - 8, + 21, ], fixInfo: null, - lineNumber: 5, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + lineNumber: 98, + ruleDescription: 'Reference links and images should use a label that is defined', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD052', + 'reference-links-images', ], }, { - errorContext: '[text](<>)', - errorDetail: null, + errorContext: '[unused]: link-destination', + errorDetail: 'Unused link or image reference definition: "unused"', errorRange: [ 1, - 10, + 26, ], - fixInfo: null, - lineNumber: 7, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + fixInfo: { + deleteCount: -1, + }, + lineNumber: 100, + ruleDescription: 'Link and image reference definitions should be needed', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md053.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD053', + 'link-image-reference-definitions', ], }, { - errorContext: '[text]( <> )', + errorContext: '[text][url]', errorDetail: null, errorRange: [ 1, - 12, + 11, ], - fixInfo: null, - lineNumber: 9, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + fixInfo: { + deleteCount: 11, + editColumn: 1, + insertText: '[text](https://example.com/page)', + }, + lineNumber: 103, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD054', + 'link-image-style', ], }, { - errorContext: '[text](<> "title")', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe', errorRange: [ + 2, 1, - 18, ], fixInfo: null, - lineNumber: 11, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + lineNumber: 110, + ruleDescription: 'Table pipe style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md055.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD055', + 'table-pipe-style', ], }, { - errorContext: '[text]( <> "title" )', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 2; Actual: 1; Too few cells, row will be missing data', errorRange: [ + 11, 1, - 20, ], fixInfo: null, - lineNumber: 13, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + lineNumber: 114, + ruleDescription: 'Table column count', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md056.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD056', + 'table-column-count', ], }, { - errorContext: '[text](#)', + errorContext: '| table {MD058} |', errorDetail: null, - errorRange: [ - 1, - 9, - ], - fixInfo: null, - lineNumber: 15, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + errorRange: null, + fixInfo: { + insertText: `␊ + `, + }, + lineNumber: 117, + ruleDescription: 'Tables should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD058', + 'blanks-around-tables', ], }, { - errorContext: '[text]( # )', + errorContext: '| cell {MD058} |', errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 120, + }, + lineNumber: 119, + ruleDescription: 'Tables should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md', + ruleNames: [ + 'MD058', + 'blanks-around-tables', + ], + }, + ], + fixed: `## Heading 1 {MD041:1}␊ + ␊ + #### Heading 2 {MD001:3}␊ + ␊ + # Heading 3 {MD003} {MD043} #␊ + ␊ + * list {MD032}␊ + ␊ + * list {MD004} {MD007} {MD030} {MD032}␊ + ␊ + * list␊ + * list {MD007}␊ + * list {MD005}␊ + ␊ + {MD009} {MD010}␊ + ␊ + [name](link) {MD011}␊ + ␊ + {MD012:18}␊ + ␊ + long line long line long line long line long line long line long line long line long line {MD013}␊ + ␊ + dollar {MD014}␊ + ␊ + # Heading 4 {MD018}␊ + ␊ + # Heading 5 {MD019}␊ + ␊ + # Heading 6 {MD020} #␊ + ␊ + # Heading 7 {MD021} {MD003} #␊ + ␊ + # Heading 8␊ + ␊ + # Heading 8␊ + ␊ + {MD024:35}␊ + Note: Can not break MD025 and MD041 in the same file␊ + ␊ + # Heading 9 {MD023} {MD026}␊ + ␊ + > {MD027}␊ + ␊ + > {MD028:43}␊ + ␊ + 1. list␊ + 3. list {MD029}␊ + ␊ + \`\`\`js␊ + \`\`\`␊ + ␊ + * list {MD032} {MD046:49}␊ + ␊ + {MD031:50}␊ + ␊ +
{MD033}␊ + ␊ + {MD034}␊ + ␊ + ---␊ + ␊ + ***␊ + ␊ + {MD035:61}␊ + ␊ + _Section {MD036} Heading_␊ + ␊ + Emphasis _with_ space {MD037}␊ + ␊ + Code \`with\` space {MD038}␊ + ␊ + [link with space](link) {MD039}␊ + ␊ + \`\`\`␊ + code fence without language {MD040:73} {MD046:73}␊ + \`\`\`␊ + ␊ + ~~~js␊ + code fence with different style {MD048:77} {MD046:77}␊ + ~~~␊ + ␊ + [empty link]() {MD042}␊ + ␊ + markdownlint {MD044}␊ + ␊ + ![](image.jpg) {MD045}␊ + ␊ + ## Heading 10 {MD022}␊ + ␊ + Emphasis _with_ underscore style␊ + ␊ + Emphasis _with_ different style {MD049}␊ + ␊ + Strong __with__ underscore style␊ + ␊ + Strong __with__ different style {MD050}␊ + ␊ + [Missing link fragment](#missing) {MD051}␊ + ␊ + [Missing link][label] {MD052}␊ + ␊ + {MD053:100}␊ + ␊ + [text](https://example.com/page) {MD054}␊ + ␊ + ␊ + [url]: https://example.com/page␊ + ␊ + | table | header |␊ + |--------|--------|␊ + {MD055} | cell |␊ + ␊ + | table | header |␊ + |---------|--------|␊ + | {MD056} |␊ + ␊ + Text␊ + ␊ + | table {MD058} |␊ + |-------|␊ + | cell {MD058} |␊ + ␊ + > Blockquote␊ + ␊ + ␊ + ␊ + EOF {MD047}␊ + `, + } + +## bulleted_list_2_space_indent.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Expected: 4; Actual: 2', errorRange: [ 1, - 11, + 4, ], - fixInfo: null, - lineNumber: 17, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 7, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD007', + 'ul-indent', ], }, { - errorContext: '[text](# "title")', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 8; Actual: 4', errorRange: [ 1, - 17, + 6, ], - fixInfo: null, - lineNumber: 19, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 8, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD007', + 'ul-indent', ], }, + ], + fixed: `# bulleted_list_2_space_indent␊ + ␊ + This is a document where the lists are indented by 2 spaces, but the style is␊ + set to 4 space indents for lists:␊ + ␊ + * Test X␊ + * Test Y {MD007}␊ + * Test Z {MD007}␊ + ␊ + ␊ + `, + } + +## bulleted_list_4_space_indent.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '[text]( # "title" )', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 2; Actual: 4', errorRange: [ 1, - 19, + 6, ], - fixInfo: null, - lineNumber: 21, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 4, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD007', + 'ul-indent', ], }, { - errorContext: '[text][frag]', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 4; Actual: 8', errorRange: [ 1, - 12, + 10, ], - fixInfo: null, - lineNumber: 23, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + fixInfo: { + deleteCount: 4, + editColumn: 1, + insertText: '', + }, + lineNumber: 5, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD007', + 'ul-indent', ], }, + ], + fixed: `# bulleted_list_4_space_indent␊ + ␊ + * Test X␊ + * Test Y {MD007}␊ + * Test Z {MD007}␊ + `, + } + +## bulleted_list_not_at_beginning_of_line.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '[text][ frag ]', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0; Actual: 2', errorRange: [ 1, - 14, + 4, ], - fixInfo: null, - lineNumber: 25, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 15, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD007', + 'ul-indent', ], }, { - errorContext: '[frag][]', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 2; Actual: 4', errorRange: [ 1, - 8, + 6, ], - fixInfo: null, - lineNumber: 27, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 16, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD007', + 'ul-indent', ], }, { - errorContext: '[frag]', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 2; Actual: 4', errorRange: [ 1, 6, ], - fixInfo: null, - lineNumber: 29, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 17, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD007', + 'ul-indent', ], }, { - errorContext: '[text]()', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 4; Actual: 6', errorRange: [ 1, 8, ], - fixInfo: null, - lineNumber: 74, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 18, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD007', + 'ul-indent', ], }, { - errorContext: '[text]()', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 2; Actual: 4', errorRange: [ 1, - 8, + 6, ], - fixInfo: null, - lineNumber: 78, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 19, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD007', + 'ul-indent', ], }, { - errorContext: '[text]()', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0; Actual: 2', errorRange: [ 1, - 8, + 4, ], - fixInfo: null, - lineNumber: 80, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 20, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD007', + 'ul-indent', ], }, { - errorContext: '[text]()', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0; Actual: 2', errorRange: [ 1, - 8, + 4, ], - fixInfo: null, - lineNumber: 83, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 21, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD007', + 'ul-indent', ], }, { - errorContext: '[text]()', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0; Actual: 2', errorRange: [ 1, - 8, + 4, ], - fixInfo: null, - lineNumber: 85, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 30, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD042', - 'no-empty-links', - ], + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 2; Actual: 4', + errorRange: [ + 1, + 6, + ], + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 31, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1', + errorRange: [ + 1, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '', + }, + lineNumber: 41, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1', + errorRange: [ + 1, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '', + }, + lineNumber: 42, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 1', + errorRange: [ + 1, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '', + }, + lineNumber: 43, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 2', + errorRange: [ + 1, + 4, + ], + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 55, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 2', + errorRange: [ + 1, + 4, + ], + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 57, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0; Actual: 2', + errorRange: [ + 1, + 4, + ], + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 59, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], }, ], - fixed: `# Heading␊ - ␊ - ## Empty links␊ - ␊ - [text]() {MD042}␊ - ␊ - [text](<>) {MD042}␊ - ␊ - [text]( <> ) {MD042}␊ - ␊ - [text](<> "title") {MD042}␊ - ␊ - [text]( <> "title" ) {MD042}␊ - ␊ - [text](#) {MD042}␊ - ␊ - [text]( # ) {MD042}␊ - ␊ - [text](# "title") {MD042}␊ - ␊ - [text]( # "title" ) {MD042}␊ - ␊ - [text][frag] {MD042}␊ - ␊ - [text][ frag ] {MD042}␊ - ␊ - [frag][] {MD042}␊ - ␊ - [frag] {MD042}␊ - ␊ - [frag]: #␊ - ␊ - ## Non-empty links␊ - ␊ - ### frag␊ - ␊ - [text](link)␊ + fixed: `# Bulleted List Not at Beginning of Line␊ ␊ - [text]( link )␊ + Text␊ ␊ - [text](link "title")␊ + * Item␊ + * Item␊ + * Item␊ + * Item␊ + * Item␊ + * Item␊ + * Item␊ ␊ - [text]( link "title" )␊ + Text␊ ␊ - [text]()␊ + * Item {MD007}␊ + * Item {MD007}␊ + * Item {MD007}␊ + * Item {MD007}␊ + * Item {MD007}␊ + * Item {MD007}␊ + * Item {MD007}␊ ␊ - [text]( )␊ + Text␊ ␊ - [text]( "title")␊ + * Item␊ + * Item␊ ␊ - [text]( "title" )␊ + Text␊ ␊ - [text](#frag)␊ + * Item {MD007}␊ + * Item {MD007}␊ ␊ - [text]( #frag )␊ + Text␊ ␊ - [text](#frag "title")␊ + * Item␊ + * Item␊ + * Item␊ ␊ - [text]( #frag "title" )␊ + Text␊ ␊ - [text][ref]␊ + * Item {MD007}␊ + * Item {MD007}␊ + * Item {MD007}␊ ␊ - [text][ ref ]␊ + Text␊ ␊ - [ref]: link␊ + * Item␊ ␊ - [text]␊ + * Item␊ ␊ - [text]: link␊ + * Item␊ ␊ - ## Inline of links with empty link (#308)␊ + Text␊ ␊ - [text](link-1)␊ - [text]() {MD042}␊ - [text](link-3)␊ + * Item {MD007}␊ ␊ - [text](link-1)␊ - [text]() {MD042}␊ - [text](link-3)␊ - [text]() {MD042}␊ + * Item {MD007}␊ ␊ - [text](link-1)␊ - [text]() {MD042}␊ - [text](link-3)␊ - [text]() {MD042}␊ - [text](link-5)␊ + * Item {MD007}␊ `, } -## empty_doc.md - -> Snapshot 1 - - { - errors: [], - fixed: '', - } - -## escaped-emphasis-markers.md +## byte-order-marker-utf8.md > Snapshot 1 { errors: [], - fixed: `# Heading␊ - ␊ - ## Single-character markers␊ - ␊ - None are valid emphasis without spaces.␊ - ␊ - Escaped asterisks \\* should \\* be ignored by MD037.␊ - ␊ - Escaped asterisks \\* should * be ignored by MD037.␊ - ␊ - Escaped asterisks * should \\* be ignored by MD037.␊ - ␊ - Escaped underscores \\_ should \\_ be ignored by MD037.␊ - ␊ - Escaped underscores \\_ should _ be ignored by MD037.␊ - ␊ - Escaped underscores _ should \\_ be ignored by MD037.␊ - ␊ - ## Double-character markers, start␊ - ␊ - All *could* be reported because they are valid single-character␊ - marker emphasis when no spaces are present.␊ - ␊ - Escaped asterisks \\** should ** be ignored by MD037.␊ - ␊ - Escaped asterisks *\\* should ** be ignored by MD037.␊ - ␊ - Escaped underscores \\__ should __ be ignored by MD037.␊ - ␊ - Escaped underscores _\\_ should __ be ignored by MD037.␊ - ␊ - ## Double-character markers, end␊ - ␊ - All should be reported, but are ignored because they look like␊ - the start of an embedded emphasis.␊ - ␊ - Escaped asterisks ** should \\** be ignored by MD037.␊ - ␊ - Escaped asterisks ** should *\\* be ignored by MD037.␊ - ␊ - Escaped underscores __ should \\__ be ignored by MD037.␊ + fixed: `# Heading␊ ␊ - Escaped underscores __ should _\\_ be ignored by MD037.␊ + Text␊ `, } -## every-markdown-syntax.md +## code-block-in-list.md > Snapshot 1 { errors: [], - fixed: `Every Markdown Syntax␊ - =====================␊ - ␊ - ## Level 2 ATX Heading␊ - ␊ - ### Level 3 Closed ATX Heading ###␊ - ␊ - ---␊ - ␊ - Text *emphasized* **strong** ___emphasized+strong___.␊ - Text \`code\` html .␊ - Text [link](https://example.com/page) [link][] [link] ![image][link].␊ - Text https://example.com/page.␊ - ␊ - Hard ␊ - line break␊ - ␊ - [link]: https://example.com/page "Title"␊ - ␊ - > Block quote␊ - > > Nested␊ - ␊ - - Unordered␊ - - List␊ - - Items␊ - Indented␊ - ␊ - Content␊ - ␊ - 1. Ordered␊ - 2. List␊ - 1. Items␊ - Indented␊ + fixed: `# Code Block in List␊ ␊ - Content␊ + Text␊ ␊ - \`\`\`markdown options␊ - Fenced code block␊ + \`\`\`js␊ + // Code␊ \`\`\`␊ ␊ - Indented code block␊ + Text␊ ␊ -

␊ - HTML block␊ -

␊ + 1. Item␊ ␊ - | Table | Heading |␊ - | ----- | ------- |␊ - | Table | Cell |␊ + \`\`\`js␊ + // Code␊ + \`\`\`␊ ␊ - ␊ + 1. Item␊ + ␊ + \`\`\`js␊ + // Code␊ + \`\`\`␊ `, } -## fenced-code-in-list.md +## code-block-trailing-spaces.md > Snapshot 1 { - errors: [], - fixed: `# Heading␊ - ␊ - - Item␊ - ␊ - \`\`\`javascript␊ - debugger;␊ - ␊ - ␊ - debugger;␊ - \`\`\`␊ - ␊ - text␊ - ␊ - - Item␊ - ␊ - - Subitem␊ - ␊ - \`\`\`javascript␊ - debugger;␊ - ␊ - ␊ - debugger;␊ - \`\`\`␊ + errors: [ + { + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 2', + errorRange: [ + 28, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 28, + }, + lineNumber: 5, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + ruleNames: [ + 'MD009', + 'no-trailing-spaces', + ], + }, + ], + fixed: `# code-block-trailing-spaces␊ ␊ - text␊ + Text␊ ␊ - - Subitem␊ + Two trailing spaces {MD009}␊ ␊ - - Item␊ + Text␊ ␊ - - Subitem␊ + Indented code block␊ ␊ - \`\`\`javascript␊ - debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger;␊ - \`\`\`␊ + Statement␊ + Indented statement␊ + ␊ + Statement␊ + Indented statement␊ ␊ - ␊ - `, - } - -## fenced-code-unmatched.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Heading␊ + Two trailing spaces ␊ ␊ Text␊ ␊ - \`\`\`code\`\`\`␊ + \`\`\`text␊ + Fenced code block␊ ␊ - Text␊ + Statement␊ + Indented statement␊ + ␊ + Statement␊ + Indented statement␊ ␊ - \`\`\`javascript␊ - var x = 5;␊ + Two trailing spaces ␊ \`\`\`␊ ␊ Text␊ + ␊ + ␊ `, } -## fenced_code_blocks.md +## code-block-with-language-allowed.md > Snapshot 1 { errors: [ { - errorContext: '```', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 25, - ruleDescription: 'Fenced code blocks should have a language specified', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 34, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD040', - 'fenced-code-language', + 'MD010', + 'no-hard-tabs', ], }, { errorContext: null, - errorDetail: 'Expected: backtick; Actual: tilde', - errorRange: null, - fixInfo: null, - lineNumber: 15, - ruleDescription: 'Code fence style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', + errorDetail: 'Column: 1', + errorRange: [ + 1, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 35, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD048', - 'code-fence-style', + 'MD010', + 'no-hard-tabs', ], }, - ], - fixed: `# fenced_code_blocks␊ - ␊ - This is a GFM-style fenced code block:␊ - ␊ - \`\`\` bash␊ - #!/bin/bash␊ - ␊ - # Print something to stdout:␊ - echo "Hello"␊ - echo "World"␊ - \`\`\`␊ - ␊ - This is a kramdown-style fenced code block:␊ - ␊ - ~~~ bash␊ - #!/bin/bash␊ - ␊ - # Print something to stdout:␊ - echo "Hello"␊ - echo "World"␊ - ~~~␊ - ␊ - None of the above should trigger any heading related rules.␊ - ␊ - \`\`\`␊ - Code block without a language specifier␊ - \`\`\`␊ - ␊ - {MD040:25} {MD048:15}␊ - `, - } - -## fenced_code_blocks_in_lists.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: fenced; Actual: indented', - errorRange: null, - fixInfo: null, - lineNumber: 17, - ruleDescription: 'Code block style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', + errorDetail: 'Column: 1', + errorRange: [ + 1, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 36, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD046', - 'code-block-style', + 'MD010', + 'no-hard-tabs', ], }, { errorContext: null, - errorDetail: 'Expected: fenced; Actual: indented', - errorRange: null, - fixInfo: null, - lineNumber: 23, - ruleDescription: 'Code block style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', + errorDetail: 'Column: 1', + errorRange: [ + 1, + 3, + ], + fixInfo: { + deleteCount: 3, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 37, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD046', - 'code-block-style', + 'MD010', + 'no-hard-tabs', ], }, - ], - fixed: `# test doc␊ - ␊ - this is some text␊ - ␊ - * This is a list item␊ - ␊ - \`\`\`fenced␊ - this is a code block within the list item.␊ - \`\`\`␊ - ␊ - with more text here␊ - ␊ - * and another list item here␊ - ␊ - And another paragraph.␊ - ␊ - But this code block {MD046}␊ - ␊ - is *NOT* in a list and should error.␊ - ␊ - And in addition to that...␊ - ␊ - \`\`\`text␊ - This code block is both indented␊ - and fenced and should *also* error.␊ - \`\`\`␊ - ␊ - And finally:␊ - ␊ - \`\`\`text␊ - This is a code block␊ - ␊ - And this is a code block in a code block and should *not* error␊ - ␊ - More stuff here␊ - \`\`\`␊ - ␊ - all␊ - ␊ - {MD046:23}␊ - `, - } - -## fenced_code_without_blank_lines.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '```', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 2, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 12, + deleteCount: 2, + editColumn: 1, + insertText: ' ', }, - lineNumber: 12, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 38, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '```', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 15, + deleteCount: 1, + editColumn: 1, + insertText: ' ', }, - lineNumber: 14, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 39, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '```', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Column: 10', + errorRange: [ + 10, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 20, + deleteCount: 1, + editColumn: 10, + insertText: ' ', }, - lineNumber: 19, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 41, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '```', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 23, + deleteCount: 1, + editColumn: 1, + insertText: ' ', }, - lineNumber: 23, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 45, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD010', + 'no-hard-tabs', ], }, { errorContext: null, - errorDetail: null, + errorDetail: 'Column: 1', errorRange: [ - 3, + 1, 1, ], fixInfo: { - editColumn: 4, - insertText: `␊ - `, + deleteCount: 1, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 46, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: ' ', }, lineNumber: 47, - ruleDescription: 'Files should end with a single newline character', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md', + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD047', - 'single-trailing-newline', + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 48, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', ], }, ], - fixed: `\`\`\`␊ - code at start of file␊ - \`\`\`␊ - ␊ - text␊ + fixed: `# Heading␊ ␊ - \`\`\`ruby␊ - code␊ + \`\`\`js␊ + if (true) {␊ + console.log("true");␊ + if (false) {␊ + console.log("false");␊ + }␊ + }␊ \`\`\`␊ ␊ - text␊ - ␊ - \`\`\`␊ - code␊ + \`\`\`js␊ + if (true) {␊ + console.log("true");␊ + if (false) {␊ + console.log("false");␊ + }␊ + }␊ \`\`\`␊ ␊ - text {MD031:12} {MD031:14}␊ + if (true) {␊ + console.log("true");␊ + if (false) {␊ + console.log("false");␊ + }␊ + }␊ ␊ - \`\`\`␊ - code␊ + \`\`\`text␊ + hello␊ + world␊ + }␊ \`\`\`␊ ␊ - text {MD031:19}␊ + if (true) { // {MD010}␊ + console.log("true"); // {MD010}␊ + if (false) { // {MD010}␊ + console.log("false"); // {MD010}␊ + } // {MD010}␊ + } // {MD010}␊ ␊ - text {MD031:23}␊ + Line with hard tab. {MD010}␊ ␊ - \`\`\`␊ - code␊ + \`\`\`javascript␊ + if (true) {␊ + console.log("true"); // {MD010}␊ + if (false) { // {MD010}␊ + console.log("false"); // {MD010}␊ + } // {MD010}␊ + }␊ \`\`\`␊ ␊ - text␊ + ␊ + `, + } + +## code-block-with-tabs-allowed.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Column: 10', + errorRange: [ + 10, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 10, + insertText: ' ', + }, + lineNumber: 35, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: fenced; Actual: indented', + errorRange: null, + fixInfo: null, + lineNumber: 21, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', + ruleNames: [ + 'MD046', + 'code-block-style', + ], + }, + ], + fixed: `# Heading␊ ␊ \`\`\`js␊ - code␊ - code␊ - code␊ + if (true) {␊ + console.log("true");␊ + if (false) {␊ + console.log("false");␊ + }␊ + }␊ \`\`\`␊ ␊ - \`\`\`html␊ + \`\`\`js␊ + if (true) {␊ + console.log("true");␊ + if (false) {␊ + console.log("false");␊ + }␊ + }␊ \`\`\`␊ ␊ - text␊ + if (true) { // {MD046}␊ + console.log("true");␊ + if (false) {␊ + console.log("false");␊ + }␊ + }␊ + ␊ + if (true) {␊ + console.log("true");␊ + if (false) {␊ + console.log("false");␊ + }␊ + }␊ + ␊ + Line with hard tab. {MD010}␊ ␊ ␊ - ␊ - \`\`\`␊ - code at end of file without newline {MD047:47}␊ - \`\`\`␊ `, } -## fenced_code_with_nesting.md +## code-block-with-tabs.md > Snapshot 1 { errors: [ { - errorContext: '```fence', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 4, + deleteCount: 1, + editColumn: 1, + insertText: ' ', }, - lineNumber: 4, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 14, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '```', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 7, + deleteCount: 1, + editColumn: 1, + insertText: ' ', }, - lineNumber: 6, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 15, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '~~~fence', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 2, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 8, - }, - lineNumber: 8, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + deleteCount: 2, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 16, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '~~~', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 11, + deleteCount: 1, + editColumn: 1, + insertText: ' ', }, - lineNumber: 10, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 17, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '```fence', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 12, + deleteCount: 1, + editColumn: 1, + insertText: ' ', }, - lineNumber: 12, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 28, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '```', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 2, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 17, + deleteCount: 2, + editColumn: 1, + insertText: ' ', }, - lineNumber: 16, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 29, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '~~~fence', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 2, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 18, + deleteCount: 2, + editColumn: 1, + insertText: ' ', }, - lineNumber: 18, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 30, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '~~~', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 3, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 23, + deleteCount: 3, + editColumn: 1, + insertText: ' ', }, - lineNumber: 22, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 31, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '```fence', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 2, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 24, + deleteCount: 2, + editColumn: 1, + insertText: ' ', }, - lineNumber: 24, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 32, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '```', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 31, + deleteCount: 1, + editColumn: 1, + insertText: ' ', }, - lineNumber: 30, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 33, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '~~~fence', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Column: 10', + errorRange: [ + 10, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 32, + deleteCount: 1, + editColumn: 10, + insertText: ' ', }, - lineNumber: 32, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 35, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '~~~', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: fenced; Actual: indented', errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 39, - }, - lineNumber: 38, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + fixInfo: null, + lineNumber: 21, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD046', + 'code-block-style', ], }, + ], + fixed: `# Heading␊ + ␊ + \`\`\`js␊ + if (true) {␊ + console.log("true");␊ + if (false) {␊ + console.log("false");␊ + }␊ + }␊ + \`\`\`␊ + ␊ + \`\`\`js␊ + if (true) {␊ + console.log("true"); // {MD010}␊ + if (false) { // {MD010}␊ + console.log("false"); // {MD010}␊ + } // {MD010}␊ + }␊ + \`\`\`␊ + ␊ + if (true) { // {MD046}␊ + console.log("true");␊ + if (false) {␊ + console.log("false");␊ + }␊ + }␊ + ␊ + if (true) { // {MD010}␊ + console.log("true"); // {MD010}␊ + if (false) { // {MD010}␊ + console.log("false"); // {MD010}␊ + } // {MD010}␊ + } // {MD010}␊ + ␊ + Line with hard tab. {MD010}␊ + `, + } + +## code-blocks-and-spans.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '```fence', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: code; Actual: Code', + errorRange: [ + 3, + 4, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 40, + deleteCount: 4, + editColumn: 3, + insertText: 'code', }, - lineNumber: 40, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 1, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD044', + 'proper-names', ], }, { - errorContext: '```', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: code; Actual: CODE', + errorRange: [ + 6, + 4, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 44, + deleteCount: 4, + editColumn: 6, + insertText: 'code', }, - lineNumber: 43, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 3, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD044', + 'proper-names', ], }, { - errorContext: '~~~fence', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: code; Actual: CODE', + errorRange: [ + 7, + 4, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 45, + deleteCount: 4, + editColumn: 7, + insertText: 'code', }, - lineNumber: 45, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 26, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD044', + 'proper-names', ], }, { - errorContext: '~~~', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: code; Actual: CODE', + errorRange: [ + 7, + 4, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 49, + deleteCount: 4, + editColumn: 7, + insertText: 'code', }, - lineNumber: 48, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 28, + ruleDescription: 'Proper names should have the correct capitalization', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD044', + 'proper-names', ], }, + ], + fixed: `# code Blocks and Spans {MD044}␊ + ␊ + Text code text {MD044}␊ + ␊ + Text \`CODE\` text␊ + ␊ + \`\`\`lang␊ + CODE␊ + ␊ + CODE␊ + \`\`\`␊ + ␊ + \`CODE\` text \`CODE\`␊ + ␊ + CODE␊ + ␊ + CODE␊ + ␊ + Text \`CODE␊ + CODE\` text␊ + text text␊ + text \`CODE␊ + CODE CODE␊ + CODE\` text␊ + ␊ + Text \`code {MD044}␊ + ␊ + Text \`code {MD044}␊ + ␊ + ␊ + `, + } + +## code-blocks-prefixed-by-spaces.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '````fence', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 50, - }, - lineNumber: 50, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + errorContext: null, + errorDetail: 'Expected: 80; Actual: 98', + errorRange: [ + 81, + 18, + ], + fixInfo: null, + lineNumber: 3, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD013', + 'line-length', ], }, { - errorContext: '````', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 55, - }, - lineNumber: 54, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + errorContext: null, + errorDetail: 'Expected: 80; Actual: 98', + errorRange: [ + 81, + 18, + ], + fixInfo: null, + lineNumber: 25, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD013', + 'line-length', ], }, { - errorContext: '~~~~fence', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 56, - }, - lineNumber: 56, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + errorContext: null, + errorDetail: 'Expected: 80; Actual: 98', + errorRange: [ + 81, + 18, + ], + fixInfo: null, + lineNumber: 39, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD013', + 'line-length', ], }, { - errorContext: '~~~~', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: fenced; Actual: indented', errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 61, - }, - lineNumber: 60, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + fixInfo: null, + lineNumber: 21, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD046', + 'code-block-style', ], }, + ], + fixed: `# md013-code-blocks-spaces␊ + ␊ + Text text text text text text text text text text text text text text text text text text. {MD013}␊ + ␊ + \`\`\`text␊ + Text text text text text text text text text text text text text text text text text text.␊ + \`\`\`␊ + ␊ + \`\`\`text␊ + Text text text text text text text text text text text text text text text text text text.␊ + \`\`\`␊ + ␊ + \`\`\`text␊ + Text text text text text text text text text text text text text text text text text text.␊ + \`\`\`␊ + ␊ + \`\`\`text␊ + Text text text text text text text text text text text text text text text text text text.␊ + \`\`\`␊ + ␊ + \`\`\`text␊ + Text text text text text text text text text text text text text text text text text text. {MD046:21}␊ + \`\`\`␊ + ␊ + Text text text text text text text text text text text text text text text text text text. {MD013}␊ + ␊ + \`\`\`text␊ + Text text text text text text text text text text text text text text text text text text.␊ + \`\`\`␊ + ␊ + \`\`\`text␊ + Text text text text text text text text text text text text text text text text text text.␊ + \`\`\`␊ + ␊ + \`\`\`text␊ + Text text text text text text text text text text text text text text text text text text.␊ + \`\`\`␊ + ␊ + Text text text text text text text text text text text text text text text text text text. {MD013}␊ + ␊ + ␊ + `, + } + +## code-fences-in-blockquotes.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '````fence', + errorContext: '```markdown', errorDetail: null, errorRange: null, fixInfo: { insertText: `␊ `, - lineNumber: 62, + lineNumber: 4, }, - lineNumber: 62, + lineNumber: 4, ruleDescription: 'Fenced code blocks should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ @@ -10559,15 +9487,15 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '`````', + errorContext: '```', errorDetail: null, errorRange: null, fixInfo: { insertText: `␊ `, - lineNumber: 67, + lineNumber: 7, }, - lineNumber: 66, + lineNumber: 6, ruleDescription: 'Fenced code blocks should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ @@ -10576,15 +9504,15 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '~~~~fence', + errorContext: '> ```markdown', errorDetail: null, errorRange: null, fixInfo: { - insertText: `␊ + insertText: `>␊ `, - lineNumber: 68, + lineNumber: 10, }, - lineNumber: 68, + lineNumber: 10, ruleDescription: 'Fenced code blocks should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ @@ -10593,15 +9521,15 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '~~~~~', + errorContext: '> ```', errorDetail: null, errorRange: null, fixInfo: { - insertText: `␊ + insertText: `>␊ `, - lineNumber: 73, + lineNumber: 13, }, - lineNumber: 72, + lineNumber: 12, ruleDescription: 'Fenced code blocks should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ @@ -10610,260 +9538,153 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: null, - errorDetail: 'Expected: backtick; Actual: tilde', + errorContext: '> > ```markdown', + errorDetail: null, errorRange: null, - fixInfo: null, - lineNumber: 8, - ruleDescription: 'Code fence style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', + 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/md031.md', ruleNames: [ - 'MD048', - 'code-fence-style', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Expected: backtick; Actual: tilde', + errorContext: '> > ```', + errorDetail: null, errorRange: null, - fixInfo: null, - lineNumber: 18, - ruleDescription: 'Code fence style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', + 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/md031.md', ruleNames: [ - 'MD048', - 'code-fence-style', + 'MD031', + 'blanks-around-fences', ], }, + ], + fixed: `# Detailed Results Code Fences in Blockquotes␊ + ␊ + Text␊ + ␊ + \`\`\`markdown␊ + Text␊ + \`\`\`␊ + ␊ + Text␊ + ␊ + > Text␊ + >␊ + > \`\`\`markdown␊ + > Text␊ + > \`\`\`␊ + >␊ + > Text␊ + > > Text␊ + > >␊ + > > \`\`\`markdown␊ + > > Text␊ + > > \`\`\`␊ + > >␊ + > > Text␊ + ␊ + {MD031:4} {MD031:6} {MD031:10} {MD031:12} {MD031:15} {MD031:17}␊ + `, + } + +## code-with-tabs-allowed.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Expected: backtick; Actual: tilde', - errorRange: null, - fixInfo: null, - lineNumber: 32, - ruleDescription: 'Code fence style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', - ruleNames: [ - 'MD048', - 'code-fence-style', + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, ], - }, - { - errorContext: null, - errorDetail: 'Expected: backtick; Actual: tilde', - errorRange: null, - fixInfo: null, - lineNumber: 45, - ruleDescription: 'Code fence style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 3, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD048', - 'code-fence-style', + 'MD010', + 'no-hard-tabs', ], }, { errorContext: null, - errorDetail: 'Expected: backtick; Actual: tilde', - errorRange: null, - fixInfo: null, - lineNumber: 56, - ruleDescription: 'Code fence style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', - ruleNames: [ - 'MD048', - 'code-fence-style', + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, ], - }, - { - errorContext: null, - errorDetail: 'Expected: backtick; Actual: tilde', - errorRange: null, - fixInfo: null, - lineNumber: 68, - ruleDescription: 'Code fence style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 21, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD048', - 'code-fence-style', + 'MD010', + 'no-hard-tabs', ], }, ], - fixed: `# heading␊ - ␊ - text {MD031:4}␊ - ␊ - \`\`\`fence␊ - code {MD031:6}␊ - \`\`\`␊ - ␊ - text {MD031:8} {MD048:8}␊ - ␊ - ~~~fence␊ - code␊ - ~~~␊ - ␊ - text {MD031:10} {MD031:12}␊ - ␊ - \`\`\`fence␊ - ~~~fence␊ - code␊ - ~~~␊ - \`\`\`␊ - ␊ - text {MD031:16} {MD031:18} {MD048:18}␊ - ␊ - ~~~fence␊ - \`\`\`fence␊ - code␊ - \`\`\`␊ - ~~~␊ - ␊ - text {MD031:22} {MD031:24}␊ - ␊ - \`\`\`fence␊ - ␊ - ~~~fence␊ - code␊ - ~~~␊ - ␊ - \`\`\`␊ - ␊ - text {MD031:30} {MD031:32} {MD048:32}␊ - ␊ - ~~~fence␊ - ␊ - \`\`\`fence␊ - code␊ - \`\`\`␊ + fixed: `# Code With Tabs Allowed␊ ␊ - ~~~␊ + Text text {MD010}␊ ␊ - text {MD031:38} {MD031:40}␊ + Text \`code code\` text␊ ␊ - \`\`\`fence␊ - code␊ - ~~~␊ - \`\`\`␊ + Text \` code\` text␊ ␊ - text {MD031:43} {MD031:45} {MD048:45}␊ + Text \`code \` text␊ ␊ - ~~~fence␊ - code␊ - \`\`\`␊ - ~~~␊ + Text \`code code␊ + code code␊ + code code\` text␊ ␊ - text {MD031:48} {MD031:50}␊ + console.log(" ");␊ ␊ - \`\`\`\`fence␊ - \`\`\`fence␊ - code␊ + \`\`\`js␊ + console.log(" ");␊ \`\`\`␊ - \`\`\`\`␊ - ␊ - text {MD031:54} {MD031:56} {MD048:56}␊ - ␊ - ~~~~fence␊ - ~~~fence␊ - code␊ - ~~~␊ - ~~~~␊ - ␊ - text {MD031:60} {MD031:62}␊ ␊ - \`\`\`\`fence␊ - \`\`\`fence␊ - code␊ + \`\`\`j s {MD010}␊ + console.log(" ");␊ \`\`\`␊ - \`\`\`\`\`␊ - ␊ - text {MD031:66} {MD031:68} {MD048:68}␊ - ␊ - ~~~~fence␊ - ~~~fence␊ - code␊ - ~~~␊ - ~~~~~␊ - ␊ - text {MD031:72}␊ - `, - } - -## first_heading_bad_atx.md - -> Snapshot 1 - - { - errors: [], - fixed: `## Heading␊ ␊ - ␊ - `, - } - -## first_heading_bad_setext.md - -> Snapshot 1 - - { - errors: [], - fixed: `Heading␊ - -------␊ + console.log("");␊ ␊ ␊ `, } -## first_heading_good_atx.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Heading␊ - `, - } - -## first_heading_good_setext.md - -> Snapshot 1 - - { - errors: [], - fixed: `Heading␊ - =======␊ - `, - } - -## first_line_top_level_heading_atx.md - -> Snapshot 1 - - { - errors: [], - fixed: `# First line is a top level heading␊ - ␊ - This shouldn't trigger MD041␊ - `, - } - -## first_line_top_level_heading_setext.md - -> Snapshot 1 - - { - errors: [], - fixed: `First line top level heading␊ - ============================␊ - ␊ - This shouldn't trigger MD041␊ - `, - } - -## fixing-with-front-matter.md +## code-with-tabs-blocked.md > Snapshot 1 @@ -10871,307 +9692,177 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 3', + errorDetail: 'Column: 5', errorRange: [ - 23, - 3, + 5, + 1, ], fixInfo: { - deleteCount: 3, - editColumn: 23, + deleteCount: 1, + editColumn: 5, + insertText: ' ', }, - lineNumber: 6, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 3, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '# Fixing with Front Matter {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, + errorContext: null, + errorDetail: 'Column: 11', + errorRange: [ + 11, + 1, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 6, + deleteCount: 1, + editColumn: 11, + insertText: ' ', }, lineNumber: 5, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '## Nested Heading {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, + errorContext: null, + errorDetail: 'Column: 7', + errorRange: [ + 7, + 1, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 1, + editColumn: 7, + insertText: ' ', }, - lineNumber: 9, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 7, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '[ link ]', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 11', errorRange: [ - 6, - 8, + 11, + 1, ], fixInfo: { - deleteCount: 6, - editColumn: 7, - insertText: 'link', + deleteCount: 1, + editColumn: 11, + insertText: ' ', }, - lineNumber: 8, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', + lineNumber: 9, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD039', - 'no-space-in-links', + 'MD010', + 'no-hard-tabs', ], }, { errorContext: null, - errorDetail: null, + errorDetail: 'Column: 5', errorRange: [ - 12, + 5, 1, ], fixInfo: { - editColumn: 13, - insertText: `␊ - `, + deleteCount: 1, + 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/md047.md', + lineNumber: 12, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD047', - 'single-trailing-newline', + 'MD010', + 'no-hard-tabs', ], }, - ], - fixed: `---␊ - front: matter␊ - ignore: this␊ - ---␊ - # Fixing with Front Matter {MD022}␊ - ␊ - Text text text {MD009}␊ - ␊ - Text [link](url) text {MD039}␊ - ␊ - ## Nested Heading {MD022}␊ - ␊ - Text {MD047}␊ - `, - } - -## fix_102_extra_nodes_in_link_text.md - -> Snapshot 1 - - { - errors: [], - fixed: `# fix_102_extra_nodes_in_link_text␊ - ␊ - [test _test_ test](www.test.com)␊ - [test \`test\` test](www.test.com)␊ - [test *test* test](www.test.com)␊ - [test *test* *test* test](www.test.com)␊ - [test *test* *test* *test* test](www.test.com)␊ - [test **test** test](www.test.com)␊ - [test __test__ test](www.test.com)␊ - [this should not raise](www.shouldnotraise.com)␊ - ␊ - ␊ - `, - } - -## front-matter-alt-title-h1.md - -> Snapshot 1 - - { - errors: [ { - errorContext: 'Top level heading {MD025}', - 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/md025.md', + errorContext: null, + errorDetail: 'Column: 18', + errorRange: [ + 18, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 18, + insertText: ' ', + }, + lineNumber: 15, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', + 'MD010', + 'no-hard-tabs', ], }, - ], - fixed: `---␊ - alternate="Welcome to Jekyll!"␊ - ---␊ - # Top level heading {MD025}␊ - ␊ - Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ - ␊ - ␊ - `, - } - -## front-matter-alt-title-json.md - -> Snapshot 1 - - { - errors: [], - fixed: `{␊ - "date": "2017-01-26T22:17:00+02:00",␊ - "alternate": "My document title and heading"␊ - }␊ - ␊ - Some plain text here.␊ - ␊ - ␊ - `, - } - -## front-matter-alt-title-no-h1.md - -> Snapshot 1 - - { - errors: [], - fixed: `---␊ - alternate="Welcome to Jekyll!"␊ - ---␊ - Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ - ␊ - ␊ - `, - } - -## front-matter-alt-title-toml.md - -> Snapshot 1 - - { - errors: [], - fixed: `+++␊ - date = "2017-01-26T22:17:00+02:00"␊ - alternate = "My document title and heading"␊ - +++␊ - ␊ - Some plain text here.␊ - ␊ - ␊ - `, - } - -## front-matter-alternate.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', + errorDetail: 'Column: 14', errorRange: [ - 13, + 14, 1, ], fixInfo: { deleteCount: 1, - editColumn: 13, + editColumn: 14, + insertText: ' ', }, - lineNumber: 6, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 18, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: 'Text {MD041}', - 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/md041.md', + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 21, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD041', - 'first-line-heading', - 'first-line-h1', + 'MD010', + 'no-hard-tabs', ], }, - ], - fixed: `---␊ - front: matter␊ - ---␊ - Text {MD041}␊ - ␊ - Text {MD009}␊ - ␊ - ␊ - `, - } - -## front-matter-embedded.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Column: 6', + errorDetail: 'Column: 14', errorRange: [ - 6, + 14, 1, ], fixInfo: { deleteCount: 1, - editColumn: 6, + editColumn: 14, insertText: ' ', }, - lineNumber: 5, + lineNumber: 22, ruleDescription: 'Hard tabs', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ @@ -11180,839 +9871,912 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: 'layout: post {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, + errorContext: null, + errorDetail: 'Column: 1', + errorRange: [ + 1, + 1, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 1, + editColumn: 1, + insertText: ' ', }, - lineNumber: 4, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 25, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD010', + 'no-hard-tabs', ], }, ], - fixed: `Text text text␊ + fixed: `# Code With Tabs Blocked␊ ␊ - ---␊ + Text text {MD010}␊ ␊ - layout: post {MD022}␊ - hard: tab {MD010}␊ - title: embedded␊ - ---␊ + Text \`code code\` text {MD010}␊ ␊ - Text text text␊ + Text \` code\` text {MD010}␊ + ␊ + Text \`code \` text {MD010}␊ + ␊ + Text \`code code␊ + code code {MD010}␊ + code code\` text␊ + ␊ + console.log(" "); // {MD010}␊ + ␊ + \`\`\`js␊ + console.log(" "); // {MD010}␊ + \`\`\`␊ + ␊ + \`\`\`j s {MD010}␊ + console.log(" "); // {MD010}␊ + \`\`\`␊ + ␊ + console.log(""); // {MD010}␊ ␊ ␊ `, } -## front-matter-empty-title-no-h1.md +## code_block_consistency.md > Snapshot 1 { errors: [ { - errorContext: 'Front matter from [Jekyll docu...', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: indented; Actual: fenced', errorRange: null, fixInfo: null, - lineNumber: 7, - ruleDescription: 'First line in a file should be a top-level heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md', + lineNumber: 10, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', ruleNames: [ - 'MD041', - 'first-line-heading', - 'first-line-h1', + 'MD046', + 'code-block-style', ], }, ], - fixed: `---␊ - layout: post␊ - title: "Welcome to Jekyll!"␊ - date: 2015-11-17 16:16:01 -0600␊ - categories: jekyll update␊ - ---␊ - Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}␊ + fixed: `# code_block_consistency␊ ␊ - ␊ + This is text.␊ + ␊ + This is a␊ + code block.␊ + ␊ + And here is more text␊ + ␊ + \`\`\`text␊ + and here is a different {MD046:10}␊ + code block␊ + \`\`\`␊ `, } -## front-matter-empty.md +## code_block_dollar.md > Snapshot 1 { errors: [ { - errorContext: 'Another {MD025}', + errorContext: '$ ls {MD014}', errorDetail: null, - errorRange: null, - fixInfo: null, + errorRange: [ + 5, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 5, + }, lineNumber: 5, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', + 'MD014', + 'commands-show-output', ], }, - ], - fixed: `---␊ - ---␊ - # Heading␊ - ␊ - # Another {MD025}␊ - `, - } - -## front-matter-no-crlf.md - -> Snapshot 1 - - { - errors: [], - fixed: `---␊ - front: matter␊ - ---`, - } - -## front-matter-no-title-h1.md - -> Snapshot 1 - - { - errors: [], - fixed: `---␊ - layout: post␊ - notitle: "Welcome to Jekyll!"␊ - date: 2015-11-17 16:16:01 -0600␊ - categories: jekyll update␊ - ---␊ - # Top level heading␊ - ␊ - Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ - ␊ - ␊ - `, - } - -## front-matter-no-title-no-h1.md - -> Snapshot 1 - - { - errors: [ { - errorContext: 'Front matter from [Jekyll docu...', + errorContext: '$ less foo {MD014}', errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 7, - ruleDescription: 'First line in a file should be a top-level heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md', + errorRange: [ + 5, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 5, + }, + lineNumber: 6, + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', ruleNames: [ - 'MD041', - 'first-line-heading', - 'first-line-h1', + 'MD014', + 'commands-show-output', ], }, - ], - fixed: `---␊ - layout: post␊ - notitle: "Welcome to Jekyll!"␊ - date: 2015-11-17 16:16:01 -0600␊ - categories: jekyll update␊ - ---␊ - Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}␊ - ␊ - ␊ - `, - } - -## front-matter-title-h1.md - -> Snapshot 1 - - { - errors: [ { - errorContext: 'Top level heading {MD025}', + errorContext: '$ cat bar {MD014}', errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 7, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', + errorRange: [ + 5, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 5, + }, + lineNumber: 8, + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', + 'MD014', + 'commands-show-output', ], }, - ], - fixed: `---␊ - layout: post␊ - title: "Welcome to Jekyll!"␊ - date: 2015-11-17 16:16:01 -0600␊ - categories: jekyll update␊ - ---␊ - # Top level heading {MD025}␊ - ␊ - Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ - ␊ - ␊ - `, - } - -## front-matter-title-h2.md - -> Snapshot 1 - - { - errors: [], - fixed: `---␊ - layout: post␊ - title: "Welcome to Jekyll!"␊ - date: 2015-11-17 16:16:01 -0600␊ - categories: jekyll update␊ - ---␊ - ## Secondary heading␊ + { + errorContext: '$ mkdir test {MD014}', + errorDetail: null, + errorRange: [ + 5, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 5, + }, + lineNumber: 74, + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + ruleNames: [ + 'MD014', + 'commands-show-output', + ], + }, + { + errorContext: '$ cd test {MD014}', + errorDetail: null, + errorRange: [ + 5, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 5, + }, + lineNumber: 75, + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + ruleNames: [ + 'MD014', + 'commands-show-output', + ], + }, + { + errorContext: '$ ls test {MD014}', + errorDetail: null, + errorRange: [ + 5, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 5, + }, + lineNumber: 76, + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + ruleNames: [ + 'MD014', + 'commands-show-output', + ], + }, + { + errorContext: ' $ ls example {MD014}', + errorDetail: null, + errorRange: [ + 6, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 6, + }, + lineNumber: 80, + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + ruleNames: [ + 'MD014', + 'commands-show-output', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: indented; Actual: fenced', + errorRange: null, + fixInfo: null, + lineNumber: 34, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', + ruleNames: [ + 'MD046', + 'code-block-style', + ], + }, + ], + fixed: `# Code Block Dollar␊ ␊ - Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ + The following code block shouldn't have $ before the commands:␊ ␊ - ␊ - `, - } - -## front-matter-title-json-spaces.md - -> Snapshot 1 - - { - errors: [], - fixed: `{␊ - "date": "2017-01-26T22:17:00+02:00",␊ - "title": "My document title and heading"␊ - } ␊ + ls {MD014}␊ + less foo {MD014}␊ ␊ - Some plain text here.␊ - `, - } - -## front-matter-title-json.md - -> Snapshot 1 - - { - errors: [], - fixed: `{␊ - "date": "2017-01-26T22:17:00+02:00",␊ - "title": "My document title and heading"␊ - }␊ + cat bar {MD014}␊ ␊ - Some plain text here.␊ - `, - } - -## front-matter-title-no-h1.md - -> Snapshot 1 - - { - errors: [], - fixed: `---␊ - layout: post␊ - title: "Welcome to Jekyll!"␊ - date: 2015-11-17 16:16:01 -0600␊ - categories: jekyll update␊ - ---␊ - Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ + However the following code block shows output, and $ can be used to␊ + distinguish between command and output:␊ ␊ - ␊ - `, - } - -## front-matter-title-pandoc-spaces.md - -> Snapshot 1 - - { - errors: [], - fixed: `+++ ␊ - title: "Welcome to pandoc!"␊ - date: 2015-11-17 16:16:01 -0600␊ - ... ␊ + $ ls␊ + foo bar␊ + $ less foo␊ + Hello world␊ ␊ - Some plain text here.␊ - `, - } - -## front-matter-title-pandoc.md - -> Snapshot 1 - - { - errors: [], - fixed: `+++␊ - title: "Welcome to pandoc!"␊ - date: 2015-11-17 16:16:01 -0600␊ - ...␊ + $ cat bar␊ + baz␊ ␊ - Some plain text here.␊ - `, - } - -## front-matter-title-spaces.md - -> Snapshot 1 - - { - errors: [], - fixed: `--- ␊ - layout: post␊ - title: "Welcome to Jekyll!"␊ - date: 2015-11-17 16:16:01 -0600␊ - categories: jekyll update␊ - --- ␊ + The following code block uses variable names, and likewise shouldn't fire:␊ ␊ - Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ + $foo = 'bar';␊ + $baz = 'qux';␊ ␊ - ␊ - `, - } - -## front-matter-title-toml-spaces.md - -> Snapshot 1 - - { - errors: [], - fixed: `+++ ␊ - date = "2017-01-26T22:17:00+02:00"␊ - title = "My document title and heading"␊ - +++ ␊ + The following code block doesn't have any dollar signs, and shouldn't fire:␊ ␊ - Some plain text here.␊ + ls foo␊ + cat bar␊ + ␊ + The following (fenced) code block doesn't have any content at all, and␊ + shouldn't fire: {MD046:34}␊ + ␊ + \`\`\`bash␊ + \`\`\`␊ + ␊ + Mixed content:␊ + ␊ + $ ls␊ + file.md other.md␊ + $ git branch␊ + $ cat stuff␊ + ␊ + output␊ + ␊ + More mixed content:␊ + ␊ + $ ls␊ + $ git branch␊ + $ cat stuff␊ + stuff here␊ + more stuff␊ + $ tail cat␊ + meow␊ + ␊ + Command with blank lines in output:␊ + ␊ + $ dig example.com␊ + ␊ + ; ...␊ + ;; ...␊ + ␊ + ;; ...␊ + ␊ + Some commands with no output:␊ + ␊ + $ mkdir test␊ + mkdir: created directory 'test'␊ + $ cd test␊ + $ ls test␊ + ␊ + All commands with no output:␊ + ␊ + mkdir test {MD014}␊ + cd test {MD014}␊ + ls test {MD014}␊ + ␊ + Space-prefixed command with no output:␊ + ␊ + ls example {MD014}␊ `, } -## front-matter-title-toml.md +## code_block_dollar_fence-empty.md > Snapshot 1 { errors: [], - fixed: `+++␊ - date = "2017-01-26T22:17:00+02:00"␊ - title = "My document title and heading"␊ - +++␊ + fixed: `# Heading␊ ␊ - Some plain text here.␊ + \`\`\`js␊ + ␊ + \`\`\`␊ + ␊ + \`\`\`css␊ + ␊ + ␊ + \`\`\`␊ + ␊ + \`\`\`spaces␊ + ␊ + \`\`\`␊ + ␊ + ␊ `, } -## front-matter-with-dashes.md +## code_block_dollar_fence.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Column: 1', + errorContext: '$ code {MD014}', + errorDetail: null, errorRange: [ 1, - 1, + 2, ], fixInfo: { - deleteCount: 1, + deleteCount: 2, editColumn: 1, - insertText: ' ', }, - lineNumber: 10, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 4, + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD014', + 'commands-show-output', ], }, - ], - fixed: `---␊ - layout: post␊ - title: Title with ---␊ - tags: front matter␊ - ---␊ - ## Heading␊ - ␊ - ---␊ - ␊ - Hard tab {MD010}␊ - `, - } - -## front-matter-with-disable-next-line.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Element: hr', + errorContext: '$ code {MD014}', + errorDetail: null, errorRange: [ 1, - 5, + 2, ], - fixInfo: null, + fixInfo: { + deleteCount: 2, + editColumn: 1, + }, lineNumber: 10, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: hr', - errorRange: [ - 1, - 5, - ], - fixInfo: null, - lineNumber: 15, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD014', + 'commands-show-output', ], }, { - errorContext: null, - errorDetail: 'Element: hr', + errorContext: '$ code {MD014}', + errorDetail: null, errorRange: [ 1, - 5, + 2, ], - fixInfo: null, + fixInfo: { + deleteCount: 2, + editColumn: 1, + }, lineNumber: 16, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD014', + 'commands-show-output', ], }, { - errorContext: null, - errorDetail: 'Element: hr', + errorContext: '$ code {MD014}', + errorDetail: null, errorRange: [ 1, - 5, + 2, ], - fixInfo: null, - lineNumber: 19, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + }, + lineNumber: 17, + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD014', + 'commands-show-output', ], }, { - errorContext: null, - errorDetail: 'Element: hr', + errorContext: '$ code {MD014}', + errorDetail: null, errorRange: [ 1, - 5, + 2, ], - fixInfo: null, - lineNumber: 20, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + }, + lineNumber: 23, + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD014', + 'commands-show-output', ], }, { - errorContext: null, - errorDetail: 'Element: hr', + errorContext: '$ code {MD014}', + errorDetail: null, errorRange: [ 1, - 5, + 2, ], - fixInfo: null, - lineNumber: 22, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + }, + lineNumber: 24, + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD014', + 'commands-show-output', ], }, { - errorContext: null, - errorDetail: 'Element: hr', + errorContext: '$ npm install --save multimatc...', + errorDetail: null, errorRange: [ 1, - 5, + 2, ], - fixInfo: null, - lineNumber: 23, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + }, + lineNumber: 40, + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD014', + 'commands-show-output', ], }, { - errorContext: null, - errorDetail: 'Element: hr', + errorContext: ' $ ls example {MD014}', + errorDetail: null, errorRange: [ - 1, - 5, + 2, + 2, ], - fixInfo: null, - lineNumber: 25, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 2, + editColumn: 2, + }, + lineNumber: 46, + ruleDescription: 'Dollar signs used before commands without showing output', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: hr', - errorRange: [ - 1, - 5, - ], - fixInfo: null, - lineNumber: 26, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: hr', - errorRange: [ - 1, - 5, - ], - fixInfo: null, - lineNumber: 28, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD014', + 'commands-show-output', ], }, + ], + fixed: `# Code Block Dollar Fence␊ + ␊ + \`\`\`fence␊ + code {MD014}␊ + \`\`\`␊ + ␊ + text␊ + ␊ + \`\`\`fence␊ + code {MD014}␊ + \`\`\`␊ + ␊ + text␊ + ␊ + \`\`\`fence␊ + code {MD014}␊ + code {MD014}␊ + \`\`\`␊ + ␊ + text␊ + ␊ + \`\`\`fence␊ + code {MD014}␊ + code {MD014}␊ + \`\`\`␊ + ␊ + text␊ + ␊ + \`\`\`fence␊ + $ code␊ + code␊ + $ code␊ + code␊ + \`\`\`␊ + ␊ + text␊ + ␊ + \`\`\`sh␊ + ␊ + npm install --save multimatch {MD014}␊ + \`\`\`␊ + ␊ + Space-prefixed command with no output:␊ + ␊ + \`\`\`sh␊ + ls example {MD014}␊ + \`\`\`␊ + `, + } + +## code_block_fenced.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Element: hr', - errorRange: [ - 1, - 5, - ], + errorDetail: 'Expected: fenced; Actual: indented', + errorRange: null, fixInfo: null, - lineNumber: 29, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 5, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD046', + 'code-block-style', ], }, { errorContext: null, - errorDetail: 'Element: hr', - errorRange: [ - 1, - 5, - ], + errorDetail: 'Expected: fenced; Actual: indented', + errorRange: null, fixInfo: null, - lineNumber: 31, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 16, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD046', + 'code-block-style', ], }, + ], + fixed: `# code_block_fenced␊ + ␊ + This is text.␊ + ␊ + This is a {MD046}␊ + code block.␊ + ␊ + And here is more text␊ + ␊ + \`\`\`text␊ + This is a code block that won't trigger.␊ + \`\`\`␊ + ␊ + But we'll do another:␊ + ␊ + And this {MD046}␊ + will.␊ + ␊ + Final text is here␊ + ␊ + ␊ + `, + } + +## code_block_indented.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Element: hr', - errorRange: [ - 1, - 5, - ], + errorDetail: 'Expected: indented; Actual: fenced', + errorRange: null, fixInfo: null, - lineNumber: 32, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 10, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD046', + 'code-block-style', ], }, + ], + fixed: `# code_block_indented␊ + ␊ + This is text.␊ + ␊ + This is a␊ + code block.␊ + ␊ + And here is more text␊ + ␊ + \`\`\`text␊ + This is {MD046:10} also a code block.␊ + \`\`\`␊ + ␊ + But we'll do another:␊ + ␊ + And this␊ + will.␊ + ␊ + One last one:␊ + ␊ + This is code␊ + ␊ + with an empty indented line.␊ + ␊ + ␊ + `, + } + +## code_fence_style_backtick.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Element: hr', - errorRange: [ - 1, - 5, - ], + errorDetail: 'Expected: backtick; Actual: tilde', + errorRange: null, fixInfo: null, - lineNumber: 34, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 7, + ruleDescription: 'Code fence style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD048', + 'code-fence-style', ], }, { errorContext: null, - errorDetail: 'Element: hr', - errorRange: [ - 1, - 5, - ], + errorDetail: 'Expected: backtick; Actual: tilde', + errorRange: null, fixInfo: null, - lineNumber: 35, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 17, + ruleDescription: 'Code fence style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD048', + 'code-fence-style', ], }, ], - fixed: `---␊ - front: matter␊ - ---␊ - ␊ - # Front Matter with Disable-Next-Line␊ + fixed: `# code_fence_style_backtick␊ ␊ - ␊ -
␊ + \`\`\`text␊ + This is a code block␊ + \`\`\`␊ ␊ -
{MD033}␊ + ~~~text␊ + This is {MD048:7} a code block␊ + ~~~␊ ␊ - ␊ -
␊ + \`\`\`text␊ + ~~~␊ + This is fine␊ + ~~~␊ + \`\`\`␊ ␊ -
{MD033}␊ -
{MD033}␊ - ␊ -
␊ -
{MD033}␊ -
{MD033}␊ + ~~~text␊ + \`\`\`␊ + This is not {MD048:17}␊ + \`\`\`␊ + ~~~␊ ␊ -
{MD033}␊ -
{MD033}␊ -
␊ -
{MD033}␊ -
{MD033}␊ -
␊ -
{MD033}␊ -
{MD033}␊ -
␊ -
{MD033}␊ -
{MD033}␊ -
␊ -
{MD033}␊ -
{MD033}␊ + ␊ `, } -## front-matter-yaml-in-html-comment.md +## code_fence_style_tilde.md > Snapshot 1 { - errors: [], - fixed: `␊ + errors: [ + { + errorContext: null, + errorDetail: 'Expected: tilde; Actual: backtick', + errorRange: null, + fixInfo: null, + lineNumber: 3, + ruleDescription: 'Code fence style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', + ruleNames: [ + 'MD048', + 'code-fence-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: tilde; Actual: backtick', + errorRange: null, + fixInfo: null, + lineNumber: 11, + ruleDescription: 'Code fence style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', + ruleNames: [ + 'MD048', + 'code-fence-style', + ], + }, + ], + fixed: `# code_fence_style_tilde␊ ␊ - # Front Matter YAML in HTML Comment␊ + \`\`\`text␊ + This is {MD048:3} a code block␊ + \`\`\`␊ ␊ - Text text text␊ - `, - } - -## front-matter.md - -> Snapshot 1 - - { - errors: [], - fixed: `---␊ - front: matter␊ - ---␊ - # Heading 1␊ + ~~~text␊ + This is a code block␊ + ~~~␊ ␊ - ## Heading 2␊ + \`\`\`text␊ + ~~~␊ + This is not fine {MD048:11}␊ + ~~~␊ + \`\`\`␊ + ␊ + ~~~text␊ + \`\`\`␊ + This is␊ + \`\`\`␊ + ~~~␊ + ␊ + ␊ `, } -## github-footnote-syntax.md +## consecutive_blank_lines.md > Snapshot 1 { - errors: [], - fixed: `# GitHub Footnote Syntax␊ + errors: [ + { + errorContext: null, + errorDetail: 'Expected: 1; Actual: 2', + errorRange: null, + fixInfo: { + deleteCount: -1, + }, + lineNumber: 5, + ruleDescription: 'Multiple consecutive blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md', + ruleNames: [ + 'MD012', + 'no-multiple-blanks', + ], + }, + ], + fixed: `# consecutive_blank_lines␊ ␊ - > Example from ␊ + Some text␊ ␊ - Here is a simple footnote[^1].␊ + Some text {MD012:5}␊ ␊ - A footnote can also have multiple lines[^2].␊ + This is a code block␊ ␊ - You can also use words, to fit your writing style more closely[^note].␊ ␊ - [^1]: My reference.␊ - [^2]: Every new line should be prefixed with 2 spaces.␊ - This allows you to have a footnote with multiple lines.␊ - [^note]:␊ - Named footnotes will still render with numbers instead of the text but allow easier identification and linking.␊ - This footnote also has been made with a different syntax using 4 spaces for new lines.␊ + with two blank lines in it␊ ␊ - ␊ + Some more text␊ `, } -## h1-as-top-level-heading.md +## consistent_bullet_styles_asterisk.md > Snapshot 1 { errors: [], - fixed: `

H1 as Top-Level Heading

␊ - ␊ - Text␊ + fixed: `# consistent_bullet_styles_asterisk␊ ␊ - ␊ + * Item␊ + * Item␊ + * Item␊ `, } -## h1-image-as-top-level-heading.md +## consistent_bullet_styles_dash.md > Snapshot 1 { errors: [], - fixed: `

A kitten

␊ - ␊ - Text␊ + fixed: `# consistent_bullet_styles_dash␊ ␊ - ␊ + - Item␊ + - Item␊ + - Item␊ `, } -## h2-as-top-level-heading.md +## consistent_bullet_styles_plus.md > Snapshot 1 { errors: [], - fixed: `

H2 as Top-Level Heading

␊ - ␊ - Text␊ + fixed: `# consistent_bullet_styles_plus␊ ␊ - ␊ + + Item␊ + + Item␊ + + Item␊ `, } -## h3-as-top-level-heading.md +## custom-rules.md > Snapshot 1 { - errors: [ - { - errorContext: '

H3 as Top-Level Heading {M...', - 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/md041.md', - ruleNames: [ - 'MD041', - 'first-line-heading', - 'first-line-h1', - ], - }, - ], - fixed: `

H3 as Top-Level Heading {MD041}

␊ + errors: [], + fixed: `# Heading␊ ␊ - Text␊ + Sample text.␊ + ␊ + Sample text.␊ + ␊ + Sample text.␊ + ␊ + Sample text.␊ + ␊ ␊ - ␊ + > Blockquote␊ `, } -## hard-line-breaks.md +## default-spaces-MD010.md > Snapshot 1 @@ -12020,407 +10784,408 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 4', + errorDetail: 'Column: 1', errorRange: [ - 5, - 4, + 1, + 13, ], fixInfo: { - deleteCount: 4, - editColumn: 5, + deleteCount: 13, + editColumn: 1, + insertText: ' ', }, - lineNumber: 9, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 1, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD010', + 'no-hard-tabs', ], }, { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 2', + errorDetail: 'Column: 5', errorRange: [ - 6, + 5, 2, ], fixInfo: { deleteCount: 2, - editColumn: 6, + editColumn: 5, + insertText: ' ', }, - lineNumber: 24, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 2, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD010', + 'no-hard-tabs', ], }, { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 2', + errorDetail: 'Column: 35', errorRange: [ - 4, - 2, + 35, + 3, ], fixInfo: { - deleteCount: 2, - editColumn: 4, + deleteCount: 3, + editColumn: 35, + insertText: ' ', }, - lineNumber: 32, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 3, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD010', + 'no-hard-tabs', ], }, + ], + fixed: ` text {MD010}␊ + text and text 2 {MD010}␊ + texts with trailing spaces {MD010} ␊ + ␊ + ␊ + `, + } + +## emoji-headings.md + +> Snapshot 1 + + { + errors: [ { - errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 2', + errorContext: '##️⃣ Keycap Number Sign {MD018...', + errorDetail: null, errorRange: [ - 8, - 2, + 1, + 3, ], fixInfo: { - deleteCount: 2, - editColumn: 8, + editColumn: 3, + insertText: ' ', }, - lineNumber: 36, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 11, + ruleDescription: 'No space after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD018', + 'no-missing-space-atx', ], }, + ], + fixed: `# Emoji Headings␊ + ␊ + #️⃣ Keycap Number Sign␊ + ␊ + ␊ + ␊ + # #️⃣ Keycap Number Sign␊ + ␊ + Text␊ + ␊ + ## ️⃣ Keycap Number Sign {MD018}␊ + ␊ + Text␊ + ␊ + # Keycap Number Sign #️⃣␊ + ␊ + Text␊ + ␊ + # Keycap Number Sign#️⃣␊ + ␊ + Text␊ + ␊ + ␊ + `, + } + +## emphasis-markers.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 2', + errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ + 9, 1, - 2, ], fixInfo: { - deleteCount: 2, - editColumn: 1, + deleteCount: 1, + editColumn: 9, + insertText: '_', }, - lineNumber: 39, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 5, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD049', + 'emphasis-style', ], }, { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 2', + errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ + 13, 1, - 2, ], fixInfo: { - deleteCount: 2, - editColumn: 1, + deleteCount: 1, + editColumn: 13, + insertText: '_', }, - lineNumber: 41, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 5, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD049', + 'emphasis-style', ], }, { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 4', + errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ + 7, 1, - 4, ], fixInfo: { - deleteCount: 4, - editColumn: 1, + deleteCount: 1, + editColumn: 7, + insertText: '_', }, - lineNumber: 43, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 8, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD049', + 'emphasis-style', ], }, { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 2', + errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ - 10, - 2, + 11, + 1, ], fixInfo: { - deleteCount: 2, - editColumn: 10, + deleteCount: 1, + editColumn: 11, + insertText: '_', }, - lineNumber: 48, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 8, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD049', + 'emphasis-style', ], }, { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 2', + errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ - 5, - 2, + 7, + 1, ], fixInfo: { - deleteCount: 2, - editColumn: 5, + deleteCount: 1, + editColumn: 7, + insertText: '_', }, - lineNumber: 54, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 12, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD049', + 'emphasis-style', ], }, { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 2', + errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ 11, - 2, + 1, ], fixInfo: { - deleteCount: 2, + deleteCount: 1, editColumn: 11, + insertText: '_', }, - lineNumber: 58, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 12, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD049', + 'emphasis-style', ], }, { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 2', + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ - 11, + 9, 2, ], fixInfo: { deleteCount: 2, - editColumn: 11, + editColumn: 9, + insertText: '**', }, - lineNumber: 61, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 14, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD050', + 'strong-style', ], }, { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 2', + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ - 10, + 14, 2, ], fixInfo: { deleteCount: 2, - editColumn: 10, + editColumn: 14, + insertText: '**', }, - lineNumber: 62, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 14, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD050', + 'strong-style', ], }, { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 2', + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ - 11, + 7, 2, ], fixInfo: { deleteCount: 2, - editColumn: 11, + editColumn: 7, + insertText: '**', }, - lineNumber: 63, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 17, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD050', + 'strong-style', ], }, { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 2', + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ - 10, + 12, 2, ], fixInfo: { deleteCount: 2, - editColumn: 10, + editColumn: 12, + insertText: '**', }, - lineNumber: 65, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 17, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD050', + 'strong-style', ], }, { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 2', + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ - 22, + 7, 2, ], fixInfo: { deleteCount: 2, - editColumn: 22, + editColumn: 7, + insertText: '**', }, - lineNumber: 67, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 21, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD050', + 'strong-style', ], }, { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 2', + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ - 10, + 12, 2, ], fixInfo: { deleteCount: 2, - editColumn: 10, + editColumn: 12, + insertText: '**', }, - lineNumber: 71, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 21, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD050', + 'strong-style', ], }, ], - fixed: `# Hard Line Breaks␊ - ␊ - hard ␊ - break␊ - ␊ - hard\\␊ - break␊ - ␊ - hard␊ - break␊ - ␊ - hard ␊ - break␊ - ␊ - hard\\␊ - break␊ - ␊ - *hard ␊ - break*␊ - ␊ - *hard\\␊ - break*␊ - ␊ - \`code␊ - span\`␊ - ␊ - \`code\\␊ - span\`␊ - ␊ - not\\␊ - ␊ - not␊ - ␊ - ## not\\␊ - ␊ - ### not␊ - ␊ - - Item␊ - ␊ - - Item␊ - ␊ - - Item␊ + fixed: `# Emphasis Markers␊ ␊ - - Item␊ + Text to _set_ the **preferences**.␊ ␊ - Text text␊ - text \`code␊ - span code␊ - span\` text␊ - text␊ + This is _bad_ {MD049}␊ ␊ - Text text␊ - text text␊ - text␊ + This \`is␊ + also\` _bad_ {MD049}␊ ␊ - Text text␊ - text \`code␊ - span\` text␊ + This \`is␊ + also␊ + very\` _bad_ {MD049}␊ ␊ - Text text␊ - text \`code␊ - span code␊ - span\` text␊ + This is **bad** {MD050}␊ ␊ - Text text␊ + This \`is␊ + also\` **bad** {MD050}␊ ␊ - Text \`code span\` text␊ + This \`is␊ + also␊ + very\` **bad** {MD050}␊ ␊ - Text text ␊ - \`code span\` ␊ - text text␊ +

HTML __should__ *be* ignored

␊ ␊ - {MD009:9}␊ - {MD009:24}␊ - {MD009:32}␊ - {MD009:36}␊ - {MD009:39}␊ - {MD009:41}␊ - {MD009:43}␊ - {MD009:48}␊ - {MD009:54}␊ - {MD009:58}␊ - {MD009:61}␊ - {MD009:62}␊ - {MD009:63}␊ - {MD009:65}␊ - {MD009:67}␊ - {MD009:71}␊ +

␊ + HTML __should__ *be* ignored␊ +

␊ ␊ - ␊ + ␊ `, } -## heading-duplicate-content-siblings-only.md +## emphasis-not-heading-in-blockquote.md > Snapshot 1 @@ -12428,346 +11193,300 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: h4; Actual: h5', - errorRange: null, - fixInfo: null, - lineNumber: 27, - ruleDescription: 'Heading levels should only increment by one level at a time', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md', - ruleNames: [ - 'MD001', - 'heading-increment', + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 3, + 1, ], - }, - { - errorContext: 'B', - errorDetail: null, - errorRange: null, - fixInfo: null, + fixInfo: { + deleteCount: 1, + editColumn: 3, + insertText: '_', + }, lineNumber: 11, - ruleDescription: 'Multiple headings with the same content', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD024', - 'no-duplicate-heading', + 'MD049', + 'emphasis-style', ], }, { - errorContext: 'C', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 23, - ruleDescription: 'Multiple headings with the same content', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 8, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 8, + insertText: '_', + }, + lineNumber: 11, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD024', - 'no-duplicate-heading', + 'MD049', + 'emphasis-style', ], }, { - errorContext: 'G', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 35, - ruleDescription: 'Multiple headings with the same content', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 3, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 3, + insertText: '_', + }, + lineNumber: 15, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD024', - 'no-duplicate-heading', + 'MD049', + 'emphasis-style', ], }, { - errorContext: 'E', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 39, - ruleDescription: 'Multiple headings with the same content', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', - ruleNames: [ - 'MD024', - 'no-duplicate-heading', + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', + errorRange: [ + 18, + 1, ], - }, - { - errorContext: 'A', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 43, - ruleDescription: 'Multiple headings with the same content', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', + fixInfo: { + deleteCount: 1, + editColumn: 18, + insertText: '_', + }, + lineNumber: 15, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD024', - 'no-duplicate-heading', + 'MD049', + 'emphasis-style', ], }, + ], + fixed: `# Heading␊ + ␊ + > _Text_␊ + ␊ + Text␊ + ␊ + > _Text text text_␊ + ␊ + Text␊ + ␊ + > _Text_ {MD049}␊ + ␊ + Text␊ + ␊ + > _Text text text_ {MD049}␊ + ␊ + Text␊ + ␊ + > **Text**␊ + ␊ + Text␊ + ␊ + > **Text text text**␊ + `, + } + +## emphasis_instead_of_headings.md + +> Snapshot 1 + + { + errors: [ { - errorContext: 'B', + errorContext: 'Section 1: the first section {...', errorDetail: null, errorRange: null, fixInfo: null, - lineNumber: 51, - ruleDescription: 'Multiple headings with the same content', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', + lineNumber: 3, + ruleDescription: 'Emphasis used instead of a heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md', ruleNames: [ - 'MD024', - 'no-duplicate-heading', + 'MD036', + 'no-emphasis-as-heading', ], }, { - errorContext: 'Heading duplicate content sibl...', + errorContext: 'Section 1.1: another section {...', errorDetail: null, errorRange: null, fixInfo: null, - lineNumber: 55, - ruleDescription: 'Multiple headings with the same content', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', + lineNumber: 12, + ruleDescription: 'Emphasis used instead of a heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md', ruleNames: [ - 'MD024', - 'no-duplicate-heading', + 'MD036', + 'no-emphasis-as-heading', ], }, { - errorContext: 'BB', + errorContext: 'Section 2: yet more sections {...', errorDetail: null, errorRange: null, fixInfo: null, - lineNumber: 73, - ruleDescription: 'Multiple headings with the same content', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', + lineNumber: 21, + ruleDescription: 'Emphasis used instead of a heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md', ruleNames: [ - 'MD024', - 'no-duplicate-heading', + 'MD036', + 'no-emphasis-as-heading', ], }, { - errorContext: 'BBB', + errorContext: 'Section 3: oh no more sections...', errorDetail: null, errorRange: null, fixInfo: null, - lineNumber: 94, - ruleDescription: 'Multiple headings with the same content', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', + lineNumber: 30, + ruleDescription: 'Emphasis used instead of a heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md', ruleNames: [ - 'MD024', - 'no-duplicate-heading', + 'MD036', + 'no-emphasis-as-heading', ], }, { - errorContext: 'A', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 3, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', - ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 1, + 1, ], - }, - { - errorContext: 'A', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 43, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '*', + }, + lineNumber: 30, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', + 'MD049', + 'emphasis-style', ], }, { - errorContext: 'Heading duplicate content sibl...', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 55, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 48, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 48, + insertText: '*', + }, + lineNumber: 30, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', + 'MD049', + 'emphasis-style', ], }, { - errorContext: 'AA', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 59, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 1, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '**', + }, + lineNumber: 12, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', + 'MD050', + 'strong-style', ], }, { - errorContext: 'BB', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 78, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 47, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 47, + insertText: '**', + }, + lineNumber: 12, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', + 'MD050', + 'strong-style', ], }, ], - fixed: `# Heading duplicate content siblings only␊ - ␊ - # A␊ - ␊ - {MD025:3}␊ - ␊ - ## B␊ - ␊ - ### C␊ - ␊ - ## B␊ - ␊ - {MD024:11}␊ - ␊ - ### C␊ - ␊ - ## D␊ - ␊ - ### C␊ - ␊ - ### E␊ - ␊ - ### C␊ - ␊ - {MD024:23}␊ - ␊ - ##### F␊ - ␊ - {MD001:27}␊ - ␊ - #### G␊ - ␊ - ##### F␊ - ␊ - #### G␊ - ␊ - {MD024:35}␊ - ␊ - ### E␊ - ␊ - {MD024:39}␊ - ␊ - # A␊ - ␊ - {MD024:43} {MD025:43}␊ - ␊ - ## B␊ - ␊ - ### C␊ - ␊ - ## B␊ - ␊ - {MD024:51}␊ - ␊ - # Heading duplicate content siblings only␊ - ␊ - {MD024:55} {MD025:55}␊ - ␊ - AA␊ - ==␊ - ␊ - {MD025:59}␊ - ␊ - AA␊ - --␊ - ␊ - BB␊ - --␊ - ␊ - CC␊ - --␊ - ␊ - BB␊ - --␊ - ␊ - {MD024:73}␊ - ␊ - BB␊ - ==␊ - ␊ - {MD025:78}␊ - ␊ - BB␊ - --␊ - ␊ - ## AAA ##␊ - ␊ - ### BBB ###␊ - ␊ - ## BBB ##␊ - ␊ - ### BBB ###␊ - ␊ - ## BBB ##␊ + fixed: `# emphasis_instead_of_headings␊ ␊ - {MD024:94}␊ + **Section 1: the first section {MD036}**␊ ␊ - ␊ - `, - } - -## headings-with-emoji.md - -> Snapshot 1 - - { - errors: [], - fixed: `# headings-with-emoji␊ + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor␊ + incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis␊ + nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.␊ + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore␊ + eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt␊ + in culpa qui officia deserunt mollit anim id est laborum.␊ ␊ - ## Known Issues :bug:␊ + **Section 1.1: another section {MD036} {MD050}**␊ ␊ - ## Love :heartpulse:␊ + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor␊ + incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis␊ + nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.␊ + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore␊ + eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt␊ + in culpa qui officia deserunt mollit anim id est laborum.␊ ␊ - ## :tada:␊ + *Section 2: yet more sections {MD036}*␊ ␊ - ## :checkered_flag:␊ + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor␊ + incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis␊ + nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.␊ + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore␊ + eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt␊ + in culpa qui officia deserunt mollit anim id est laborum.␊ ␊ - ## :clock930:␊ + *Section 3: oh no more sections {MD036} {MD049}*␊ ␊ - ## :t-rex:␊ + This is a normal paragraph␊ + **that just happens to have emphasized text in**␊ + even though the emphasized text is on its own line.␊ ␊ - ## Boba:bubble_tea:␊ + This is another **normal** paragraph with some text in it. This also should␊ + not trigger the rule.␊ ␊ - ␊ + **This is an entire paragraph that has been emphasized, and shouldn't be␊ + detected as a heading because it's on multiple lines**␊ ␊ - ## Fix the :bug: ##␊ + **This also shouldn't be detected as a heading as it ends in punctuation.**␊ ␊ - Another :heartpulse:␊ - --------------------␊ + **This shouldn't be detected as a heading as it ends in full-width punctuation。**␊ ␊ - :eyes:␊ - ------␊ + **[This as well since it is a link](https://example.com)**␊ `, } -## headings-with-html-entities.md +## emphasis_style_asterisk.md > Snapshot 1 @@ -12775,2225 +11494,1867 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Punctuation: \';\'', + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ - 31, + 1, 1, ], fixInfo: { deleteCount: 1, - editColumn: 31, + editColumn: 1, + insertText: '*', }, - lineNumber: 24, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 9, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD049', + 'emphasis-style', ], }, { errorContext: null, - errorDetail: 'Punctuation: \';\'', + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ - 34, + 6, 1, ], fixInfo: { deleteCount: 1, - editColumn: 34, + editColumn: 6, + insertText: '*', }, - lineNumber: 26, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 9, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD049', + 'emphasis-style', ], }, { errorContext: null, - errorDetail: 'Punctuation: \';\'', + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ - 31, + 6, 1, ], fixInfo: { deleteCount: 1, - editColumn: 31, + editColumn: 6, + insertText: '*', }, - lineNumber: 28, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 11, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD049', + 'emphasis-style', ], }, - ], - fixed: `# headings-with-html-entities␊ - ␊ - ␊ - ␊ - ## Copyright © 2000␊ - ␊ - ## Copyright 2001 ©␊ - ␊ - ## Copyright 2002©␊ - ␊ - ## Copyright 2003 ©␊ - ␊ - ## Copyright 2004 ©␊ - ␊ - ## Copyright 2004 ©␊ - ␊ - ## Copyright 2005 ©␊ - ␊ - ## Copyright 2006 © ##␊ - ␊ - Copyright 2007 ©␊ - ---------------------␊ - ␊ - ## Copyright 2008 {MD026} copy␊ - ␊ - ## Copyright 2009 {MD026} #x000A9␊ - ␊ - ## Copyright 2010 {MD026} #169␊ - `, - } - -## headings-with-invalid-spaces.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '## Non-breaking space {MD018}', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ + 9, 1, - 3, ], fixInfo: { - editColumn: 3, - insertText: ' ', + deleteCount: 1, + editColumn: 9, + insertText: '*', }, - lineNumber: 7, - ruleDescription: 'No space after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md', + lineNumber: 11, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD018', - 'no-missing-space-atx', + 'MD049', + 'emphasis-style', ], }, { - errorContext: '##  Extra non-breaking space {...', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ + 9, 1, - 3, ], fixInfo: { - editColumn: 3, - insertText: ' ', + deleteCount: 1, + editColumn: 9, + insertText: '*', }, - lineNumber: 25, - ruleDescription: 'No space after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md', + lineNumber: 13, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD018', - 'no-missing-space-atx', + 'MD049', + 'emphasis-style', ], }, { - errorContext: '## Extra normal space {MD019}', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ - 4, + 13, 1, ], fixInfo: { deleteCount: 1, - editColumn: 4, + editColumn: 13, + insertText: '*', }, - lineNumber: 23, - ruleDescription: 'Multiple spaces after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', + lineNumber: 13, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD019', - 'no-multiple-space-atx', + 'MD049', + 'emphasis-style', ], }, + ], + fixed: `# Emphasis style asterisk␊ + ␊ + *This* is fine␊ + ␊ + This *is* fine␊ + ␊ + This is *fine*␊ + ␊ + *This* is not␊ + ␊ + This *is* not␊ + ␊ + This is *not*␊ + ␊ + {MD049:-2} {MD049:-4} {MD049:-6}␊ + ␊ + Internal emphasis is preserved:␊ + apple*banana*cherry, apple*banana*, *banana*cherry␊ + apple_banana_cherry, apple_banana_, _banana_cherry␊ + ␊ + ␊ + `, + } + +## emphasis_style_underscore.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '## Extra Tab {MD019}', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ - 4, 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 4, - }, - lineNumber: 27, - ruleDescription: 'Multiple spaces after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', - ruleNames: [ - 'MD019', - 'no-multiple-space-atx', - ], - }, - { - errorContext: '## Non-breaking space (left) {...', - errorDetail: null, - errorRange: [ 1, - 3, - ], - fixInfo: { - deleteCount: 39, - editColumn: 1, - insertText: '##  Non-breaking space (left) {MD020} ##', - }, - lineNumber: 15, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', - ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', - ], - }, - { - errorContext: '...aking space (right) {MD020} ##', - errorDetail: null, - errorRange: [ - 38, - 3, ], fixInfo: { - deleteCount: 40, + deleteCount: 1, editColumn: 1, - insertText: '## Non-breaking space (right) {MD020}  ##', + insertText: '_', }, - lineNumber: 19, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + lineNumber: 9, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', + 'MD049', + 'emphasis-style', ], }, { - errorContext: '##  Extra non-breaking space (...', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ + 6, 1, - 3, - ], - fixInfo: { - deleteCount: 46, - editColumn: 1, - insertText: '##   Extra non-breaking space (left) {MD020} ##', - }, - lineNumber: 31, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', - ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', - ], - }, - { - errorContext: '...king space (right) {MD020}  ##', - errorDetail: null, - errorRange: [ - 45, - 3, ], fixInfo: { - deleteCount: 47, - editColumn: 1, - insertText: '## Extra non-breaking space (right) {MD020}   ##', + deleteCount: 1, + editColumn: 6, + insertText: '_', }, - lineNumber: 35, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + lineNumber: 9, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', + 'MD049', + 'emphasis-style', ], }, { - errorContext: '## Extra Normal space (both) ...', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ - 4, + 6, 1, ], fixInfo: { deleteCount: 1, - editColumn: 4, + editColumn: 6, + insertText: '_', }, - lineNumber: 29, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 11, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD049', + 'emphasis-style', ], }, { - errorContext: '...ormal space (both) {MD021} ##', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ - 39, + 9, 1, ], fixInfo: { deleteCount: 1, - editColumn: 39, + editColumn: 9, + insertText: '_', }, - lineNumber: 29, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 11, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD049', + 'emphasis-style', ], }, { - errorContext: '## Extra tab (left) {MD021} #...', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ - 4, + 9, 1, ], fixInfo: { deleteCount: 1, - editColumn: 4, + editColumn: 9, + insertText: '_', }, - lineNumber: 33, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 13, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD049', + 'emphasis-style', ], }, { - errorContext: '... Extra tab (right) {MD021} ##', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ - 30, + 13, 1, ], fixInfo: { deleteCount: 1, - editColumn: 30, + editColumn: 13, + insertText: '_', }, - lineNumber: 37, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 13, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD049', + 'emphasis-style', ], }, ], - fixed: `# Headings with invalid spaces␊ - ␊ - ## Normal space␊ - ␊ - ##  Normal outer non-breaking inner space␊ - ␊ - ##  Non-breaking space {MD018}␊ - ␊ - ## Tab␊ - ␊ - ## Normal space (both) ##␊ - ␊ - ##  Normal outer non-breaking inner space (both)  ##␊ - ␊ - ##  Non-breaking space (left) {MD020} ##␊ - ␊ - ## Tab (left) ##␊ - ␊ - ## Non-breaking space (right) {MD020}  ##␊ - ␊ - ## Tab (right) ##␊ + fixed: `# Emphasis style underscore␊ ␊ - ## Extra normal space {MD019}␊ + _This_ is fine␊ ␊ - ##   Extra non-breaking space {MD018}␊ + This _is_ fine␊ ␊ - ## Extra Tab {MD019}␊ + This is _fine_␊ ␊ - ## Extra Normal space (both) {MD021} ##␊ + _This_ is not␊ ␊ - ##   Extra non-breaking space (left) {MD020} ##␊ + This _is_ not␊ ␊ - ## Extra tab (left) {MD021} ##␊ + This is _not_␊ ␊ - ## Extra non-breaking space (right) {MD020}   ##␊ + {MD049:-2} {MD049:-4} {MD049:-6}␊ ␊ - ## Extra tab (right) {MD021} ##␊ + Internal emphasis is preserved:␊ + apple*banana*cherry, apple*banana*, *banana*cherry␊ + apple_banana_cherry, apple_banana_, _banana_cherry␊ ␊ ␊ `, } -## headings-without-content.md +## empty-links.md > Snapshot 1 { errors: [ { - errorContext: '#', + errorContext: '[text]()', errorDetail: null, errorRange: [ - 3, 1, + 8, ], - fixInfo: { - deleteCount: 1, - editColumn: 3, - }, - lineNumber: 10, - ruleDescription: 'Multiple spaces after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', + fixInfo: null, + lineNumber: 5, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD019', - 'no-multiple-space-atx', + 'MD042', + 'no-empty-links', ], }, { - errorContext: '#', + errorContext: '[text](<>)', errorDetail: null, errorRange: [ - 3, - 2, + 1, + 10, ], - fixInfo: { - deleteCount: 2, - editColumn: 3, - }, - lineNumber: 12, - ruleDescription: 'Multiple spaces after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', + fixInfo: null, + lineNumber: 7, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD019', - 'no-multiple-space-atx', + 'MD042', + 'no-empty-links', ], }, { - errorContext: '##', + errorContext: '[text]( <> )', errorDetail: null, errorRange: [ - 4, 1, + 12, ], - fixInfo: { - deleteCount: 1, - editColumn: 4, - }, - lineNumber: 18, - ruleDescription: 'Multiple spaces after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', + fixInfo: null, + lineNumber: 9, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD019', - 'no-multiple-space-atx', + 'MD042', + 'no-empty-links', ], }, { - errorContext: '##', + errorContext: '[text](<> "title")', errorDetail: null, errorRange: [ - 4, - 2, + 1, + 18, ], - fixInfo: { - deleteCount: 2, - editColumn: 4, - }, - lineNumber: 20, - ruleDescription: 'Multiple spaces after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', + fixInfo: null, + lineNumber: 11, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD019', - 'no-multiple-space-atx', + 'MD042', + 'no-empty-links', ], }, - ], - fixed: `# Headings Without Content␊ - ␊ - ␊ - ␊ - ␊ - #␊ - ␊ - # ␊ - ␊ - # ␊ - ␊ - # ␊ - ␊ - ##␊ - ␊ - ## ␊ - ␊ - ## ␊ - ␊ - ## ␊ - ␊ - {MD019:10} {MD019:12} {MD019:18} {MD019:20}␊ - `, - } - -## headings_bad.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Expected: h2; Actual: h3', - errorRange: null, + errorContext: '[text]( <> "title" )', + errorDetail: null, + errorRange: [ + 1, + 20, + ], 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/md001.md', + lineNumber: 13, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD001', - 'heading-increment', + 'MD042', + 'no-empty-links', ], }, { - errorContext: null, - errorDetail: 'Expected: h3; Actual: h4', - errorRange: null, + errorContext: '[text](#)', + errorDetail: null, + errorRange: [ + 1, + 9, + ], fixInfo: null, - lineNumber: 7, - ruleDescription: 'Heading levels should only increment by one level at a time', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md', + lineNumber: 15, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD001', - 'heading-increment', + 'MD042', + 'no-empty-links', ], }, - ], - fixed: `# Heading␊ - ␊ - ### Heading 3 {MD001}␊ - ␊ - ## Heading 2␊ - ␊ - #### Heading 4 {MD001}␊ - ␊ -

␊ - ###### Not heading␊ -

␊ - ␊ - ␊ - `, - } - -## headings_good.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Heading 1␊ - ␊ - ## Heading 2␊ - ␊ - ## Heading 3␊ - `, - } - -## headings_good_setext_with_atx.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Expected: setext; Actual: atx', - errorRange: null, + errorContext: '[text]( # )', + errorDetail: null, + errorRange: [ + 1, + 11, + ], fixInfo: null, - lineNumber: 7, - ruleDescription: 'Heading style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', + lineNumber: 17, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD003', - 'heading-style', + 'MD042', + 'no-empty-links', ], }, { - errorContext: null, - errorDetail: 'Expected: atx; Actual: atx_closed', - errorRange: null, + errorContext: '[text](# "title")', + errorDetail: null, + errorRange: [ + 1, + 17, + ], fixInfo: null, - lineNumber: 11, - ruleDescription: 'Heading style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', + lineNumber: 19, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD003', - 'heading-style', + 'MD042', + 'no-empty-links', ], }, - ], - fixed: `Heading 1␊ - =========␊ - ␊ - Heading 2␊ - ---------␊ - ␊ - ## Heading 2 {MD003}␊ - ␊ - ### Heading 3␊ - ␊ - #### Heading 4 {MD003} ####␊ - ␊ - ␊ - `, - } - -## headings_good_setext_with_atx_closed.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Expected: setext; Actual: atx_closed', - errorRange: null, - fixInfo: null, - lineNumber: 7, - ruleDescription: 'Heading style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', - ruleNames: [ - 'MD003', - 'heading-style', + errorContext: '[text]( # "title" )', + errorDetail: null, + errorRange: [ + 1, + 19, ], - }, - { - errorContext: null, - errorDetail: 'Expected: atx_closed; Actual: atx', - errorRange: null, fixInfo: null, - lineNumber: 11, - ruleDescription: 'Heading style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', - ruleNames: [ - 'MD003', - 'heading-style', - ], - }, - ], - fixed: `Heading 1␊ - =========␊ - ␊ - Heading 2␊ - ---------␊ - ␊ - ## Heading 2 {MD003} ##␊ - ␊ - ### Heading 3 ###␊ - ␊ - #### Heading 4 {MD003}␊ - ␊ - ␊ - `, - } - -## headings_good_with_issue_numbers.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Heading 1␊ - ␊ - ## Heading 2␊ - ␊ - See the following issues:␊ - ␊ - * #1234␊ - * #5678 (and related)␊ - * #5678␊ - * #9101␊ - ␊ - ## Heading 3␊ - `, - } - -## headings_surrounding_space_atx.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: '## Heading 2 {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 4, - }, - lineNumber: 3, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - ], - }, - { - errorContext: '## Heading 3 {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 5, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - ], - }, - { - errorContext: '## Heading 3 {MD022}', - 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/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - ], - }, - { - errorContext: '## Heading 4 {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 7, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - ], - }, - ], - fixed: `# Heading 1␊ - ␊ - ## Heading 2 {MD022}␊ - ␊ - Some text␊ - ␊ - ## Heading 3 {MD022}␊ - ␊ - Some text␊ - ␊ - ## Heading 4 {MD022}␊ - ␊ - ## Heading 5␊ - ␊ - * This shouldn't trigger MD022, but did because of some bug where we tried to␊ - #catch headings that kramdown didn't parse correctly.␊ - `, - } - -## headings_surrounding_space_setext.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: 'Heading 2 {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 6, - }, - lineNumber: 4, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 21, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD042', + 'no-empty-links', ], }, { - errorContext: 'Some text {MD022} {MD025}', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 6, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', + errorContext: '[text][frag]', + errorDetail: null, + errorRange: [ + 1, + 12, ], - }, - { - errorContext: 'Some text {MD022} {MD025}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 9, - }, - lineNumber: 6, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + fixInfo: null, + lineNumber: 23, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD042', + 'no-empty-links', ], }, { - errorContext: 'Some text {MD022} {MD025}', - 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/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', + errorContext: '[text][ frag ]', + errorDetail: null, + errorRange: [ + 1, + 14, ], - }, - { - errorContext: 'Some text {MD022} {MD025}', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 12, - }, - lineNumber: 9, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + fixInfo: null, + lineNumber: 25, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD042', + 'no-empty-links', ], }, { - errorContext: 'Some text {MD022} {MD025} Head...', + errorContext: '[frag][]', errorDetail: null, - errorRange: null, + errorRange: [ + 1, + 8, + ], fixInfo: null, - lineNumber: 6, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', + lineNumber: 27, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', + 'MD042', + 'no-empty-links', ], }, { - errorContext: 'Some text {MD022} {MD025} Head...', + errorContext: '[frag]', errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 9, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', - ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', + errorRange: [ + 1, + 6, ], - }, - ], - fixed: `Heading 1␊ - =========␊ - ␊ - Heading 2 {MD022}␊ - -----------------␊ - ␊ - Some text {MD022} {MD025}␊ - Heading 3␊ - =================␊ - ␊ - Some text {MD022} {MD025}␊ - Heading 4␊ - =================␊ - ␊ - Some text␊ - ␊ - Heading 5␊ - ---------␊ - `, - } - -## headings_with_spaces_at_the_beginning.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: '# Test {MD022} Valid heading for CommonMark (see section 5.2)', - errorDetail: 'Expected: 1; Actual: 0; 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/md022.md', + fixInfo: null, + lineNumber: 29, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD042', + 'no-empty-links', ], }, { - errorContext: '# Test {MD022} Valid heading for CommonMark (see section 5.2)', - errorDetail: 'Expected: 1; Actual: 0; Below', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 20, - }, - lineNumber: 19, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', + errorContext: '[text]()', + errorDetail: null, + errorRange: [ + 1, + 8, ], - }, - { - errorContext: '# Test {MD022} {MD023} Also valid heading for CommonMark', - errorDetail: 'Expected: 1; Actual: 0; Above', - errorRange: null, - fixInfo: { - insertText: `␊ - `, - }, - lineNumber: 20, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + fixInfo: null, + lineNumber: 74, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD042', + 'no-empty-links', ], }, { - errorContext: ' # Heading 1 {MD023}', + errorContext: '[text]()', errorDetail: null, errorRange: [ 1, - 1, + 8, ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - }, - lineNumber: 3, - ruleDescription: 'Headings must start at the beginning of the line', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md', + fixInfo: null, + lineNumber: 78, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD023', - 'heading-start-left', + 'MD042', + 'no-empty-links', ], }, { - errorContext: ' Setext style fully indented {...', + errorContext: '[text]()', errorDetail: null, errorRange: [ 1, - 1, + 8, ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - }, - lineNumber: 5, - ruleDescription: 'Headings must start at the beginning of the line', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md', + fixInfo: null, + lineNumber: 80, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD023', - 'heading-start-left', + 'MD042', + 'no-empty-links', ], }, { - errorContext: ' Setext style title only inden...', + errorContext: '[text]()', errorDetail: null, errorRange: [ 1, - 1, + 8, ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - }, - lineNumber: 8, - ruleDescription: 'Headings must start at the beginning of the line', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md', + fixInfo: null, + lineNumber: 83, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD023', - 'heading-start-left', + 'MD042', + 'no-empty-links', ], }, { - errorContext: ' # Test {MD022} {MD023} Als...', + errorContext: '[text]()', errorDetail: null, errorRange: [ - 3, - 2, + 1, + 8, ], - fixInfo: { - deleteCount: 2, - editColumn: 3, - }, - lineNumber: 20, - ruleDescription: 'Headings must start at the beginning of the line', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md', + fixInfo: null, + lineNumber: 85, + ruleDescription: 'No empty links', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', ruleNames: [ - 'MD023', - 'heading-start-left', + 'MD042', + 'no-empty-links', ], }, ], - fixed: `Some text␊ + fixed: `# Heading␊ ␊ - # Heading 1 {MD023}␊ + ## Empty links␊ ␊ - Setext style fully indented {MD023}␊ - ===================================␊ + [text]() {MD042}␊ ␊ - Setext style title only indented {MD023}␊ - =========================================␊ + [text](<>) {MD042}␊ ␊ - * Test situations in which MD023 shouldn't be triggered.␊ + [text]( <> ) {MD042}␊ ␊ - \`\`\`rb␊ - # This shouldn't trigger MD023 as it is a code comment.␊ - foo = "And here is some code"␊ - \`\`\`␊ + [text](<> "title") {MD042}␊ ␊ - * This is another case where MD023 shouldn't be triggered␊ + [text]( <> "title" ) {MD042}␊ ␊ - # Test {MD022} Valid heading for CommonMark (see section 5.2)␊ + [text](#) {MD042}␊ ␊ - # Test {MD022} {MD023} Also valid heading for CommonMark␊ + [text]( # ) {MD042}␊ ␊ - ␊ + [text](# "title") {MD042}␊ + ␊ + [text]( # "title" ) {MD042}␊ + ␊ + [text][frag] {MD042}␊ + ␊ + [text][ frag ] {MD042}␊ + ␊ + [frag][] {MD042}␊ + ␊ + [frag] {MD042}␊ + ␊ + [frag]: #␊ + ␊ + ## Non-empty links␊ + ␊ + ### frag␊ + ␊ + [text](link)␊ + ␊ + [text]( link )␊ + ␊ + [text](link "title")␊ + ␊ + [text]( link "title" )␊ + ␊ + [text]()␊ + ␊ + [text]( )␊ + ␊ + [text]( "title")␊ + ␊ + [text]( "title" )␊ + ␊ + [text](#frag)␊ + ␊ + [text]( #frag )␊ + ␊ + [text](#frag "title")␊ + ␊ + [text]( #frag "title" )␊ + ␊ + [text][ref]␊ + ␊ + [text][ ref ]␊ + ␊ + [ref]: link␊ + ␊ + [text]␊ + ␊ + [text]: link␊ + ␊ + ## Inline of links with empty link (#308)␊ + ␊ + [text](link-1)␊ + [text]() {MD042}␊ + [text](link-3)␊ + ␊ + [text](link-1)␊ + [text]() {MD042}␊ + [text](link-3)␊ + [text]() {MD042}␊ + ␊ + [text](link-1)␊ + [text]() {MD042}␊ + [text](link-3)␊ + [text]() {MD042}␊ + [text](link-5)␊ `, } -## heading_duplicate_content.md +## empty_doc.md > Snapshot 1 { - errors: [ - { - errorContext: 'Heading 1', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Multiple headings with the same content', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', - ruleNames: [ - 'MD024', - 'no-duplicate-heading', - ], - }, - { - errorContext: 'Heading 2', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 7, - ruleDescription: 'Multiple headings with the same content', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', - ruleNames: [ - 'MD024', - 'no-duplicate-heading', - ], - }, - ], - fixed: `# Heading 1␊ + errors: [], + fixed: '', + } + +## escaped-emphasis-markers.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Heading␊ ␊ - ## Heading 2␊ + ## Single-character markers␊ ␊ - ## Heading 1␊ + None are valid emphasis without spaces.␊ ␊ - ### Heading 2␊ + Escaped asterisks \\* should \\* be ignored by MD037.␊ ␊ - ## Heading 3␊ + Escaped asterisks \\* should * be ignored by MD037.␊ ␊ - {MD024:5} {MD024:7}␊ + Escaped asterisks * should \\* be ignored by MD037.␊ + ␊ + Escaped underscores \\_ should \\_ be ignored by MD037.␊ + ␊ + Escaped underscores \\_ should _ be ignored by MD037.␊ + ␊ + Escaped underscores _ should \\_ be ignored by MD037.␊ + ␊ + ## Double-character markers, start␊ + ␊ + All *could* be reported because they are valid single-character␊ + marker emphasis when no spaces are present.␊ + ␊ + Escaped asterisks \\** should ** be ignored by MD037.␊ + ␊ + Escaped asterisks *\\* should ** be ignored by MD037.␊ + ␊ + Escaped underscores \\__ should __ be ignored by MD037.␊ + ␊ + Escaped underscores _\\_ should __ be ignored by MD037.␊ + ␊ + ## Double-character markers, end␊ + ␊ + All should be reported, but are ignored because they look like␊ + the start of an embedded emphasis.␊ + ␊ + Escaped asterisks ** should \\** be ignored by MD037.␊ + ␊ + Escaped asterisks ** should *\\* be ignored by MD037.␊ + ␊ + Escaped underscores __ should \\__ be ignored by MD037.␊ + ␊ + Escaped underscores __ should _\\_ be ignored by MD037.␊ `, } -## heading_duplicate_content_different_nesting.md +## every-markdown-syntax.md > Snapshot 1 { errors: [], - fixed: `# Change log␊ + fixed: `Every Markdown Syntax␊ + =====================␊ ␊ - ## 2.0.0␊ + ## Level 2 ATX Heading␊ ␊ - ### Bug fixes␊ + ### Level 3 Closed ATX Heading ###␊ ␊ - ### Features␊ + ---␊ ␊ - ## 1.0.0␊ + Text *emphasized* **strong** ___emphasized+strong___.␊ + Text \`code\` html .␊ + Text [link](https://example.com/page) [link][] [link] ![image][link].␊ + Text https://example.com/page.␊ ␊ - ### Bug fixes␊ + Hard ␊ + line break␊ + ␊ + [link]: https://example.com/page "Title"␊ + ␊ + > Block quote␊ + > > Nested␊ + ␊ + - Unordered␊ + - List␊ + - Items␊ + Indented␊ + ␊ + Content␊ + ␊ + 1. Ordered␊ + 2. List␊ + 1. Items␊ + Indented␊ + ␊ + Content␊ + ␊ + \`\`\`markdown options␊ + Fenced code block␊ + \`\`\`␊ + ␊ + Indented code block␊ + ␊ +

␊ + HTML block␊ +

␊ + ␊ + | Table | Heading |␊ + | ----- | ------- |␊ + | Table | Cell |␊ + ␊ + ␊ + `, + } + +## fenced-code-in-list.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Heading␊ + ␊ + - Item␊ + ␊ + \`\`\`javascript␊ + debugger;␊ + ␊ + ␊ + debugger;␊ + \`\`\`␊ + ␊ + text␊ + ␊ + - Item␊ + ␊ + - Subitem␊ + ␊ + \`\`\`javascript␊ + debugger;␊ + ␊ + ␊ + debugger;␊ + \`\`\`␊ + ␊ + text␊ + ␊ + - Subitem␊ + ␊ + - Item␊ + ␊ + - Subitem␊ + ␊ + \`\`\`javascript␊ + debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger;␊ + \`\`\`␊ ␊ ␊ `, } -## heading_duplicate_content_no_different_nesting.md +## fenced-code-unmatched.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Heading␊ + ␊ + Text␊ + ␊ + \`\`\`code\`\`\`␊ + ␊ + Text␊ + ␊ + \`\`\`javascript␊ + var x = 5;␊ + \`\`\`␊ + ␊ + Text␊ + `, + } + +## fenced_code_blocks.md > Snapshot 1 { errors: [ { - errorContext: 'Bug fixes', + errorContext: '```', errorDetail: null, errorRange: null, fixInfo: null, - lineNumber: 11, - ruleDescription: 'Multiple headings with the same content', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', + lineNumber: 25, + ruleDescription: 'Fenced code blocks should have a language specified', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', ruleNames: [ - 'MD024', - 'no-duplicate-heading', + 'MD040', + 'fenced-code-language', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: backtick; Actual: tilde', + errorRange: null, + fixInfo: null, + lineNumber: 15, + ruleDescription: 'Code fence style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', + ruleNames: [ + 'MD048', + 'code-fence-style', ], }, ], - fixed: `# Change log␊ + fixed: `# fenced_code_blocks␊ ␊ - ## 2.0.0␊ + This is a GFM-style fenced code block:␊ ␊ - ### Bug fixes␊ + \`\`\` bash␊ + #!/bin/bash␊ ␊ - ### Features␊ + # Print something to stdout:␊ + echo "Hello"␊ + echo "World"␊ + \`\`\`␊ ␊ - ## 1.0.0␊ + This is a kramdown-style fenced code block:␊ ␊ - ### Bug fixes␊ + ~~~ bash␊ + #!/bin/bash␊ ␊ - {MD024:11}␊ + # Print something to stdout:␊ + echo "Hello"␊ + echo "World"␊ + ~~~␊ + ␊ + None of the above should trigger any heading related rules.␊ + ␊ + \`\`\`␊ + Code block without a language specifier␊ + \`\`\`␊ + ␊ + {MD040:25} {MD048:15}␊ `, } -## heading_multiple_toplevel.md +## fenced_code_blocks_in_lists.md > Snapshot 1 { errors: [ { - errorContext: 'Heading 2 {MD025}', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: fenced; Actual: indented', errorRange: null, fixInfo: null, - lineNumber: 3, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', + lineNumber: 17, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', + 'MD046', + 'code-block-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: fenced; Actual: indented', + errorRange: null, + fixInfo: null, + lineNumber: 23, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', + ruleNames: [ + 'MD046', + 'code-block-style', ], }, ], - fixed: `# Heading 1␊ + fixed: `# test doc␊ ␊ - # Heading 2 {MD025}␊ + this is some text␊ ␊ -

␊ - # Not heading␊ -

␊ + * This is a list item␊ ␊ - ␊ - `, - } - -## heading_mutliple_h1_no_toplevel.md - -> Snapshot 1 - - { - errors: [], - fixed: `Some introductory text␊ + \`\`\`fenced␊ + this is a code block within the list item.␊ + \`\`\`␊ ␊ - # Heading 1␊ + with more text here␊ ␊ - # Heading 2␊ + * and another list item here␊ ␊ - ␊ + And another paragraph.␊ + ␊ + But this code block {MD046}␊ + ␊ + is *NOT* in a list and should error.␊ + ␊ + And in addition to that...␊ + ␊ + \`\`\`text␊ + This code block is both indented␊ + and fenced and should *also* error.␊ + \`\`\`␊ + ␊ + And finally:␊ + ␊ + \`\`\`text␊ + This is a code block␊ + ␊ + And this is a code block in a code block and should *not* error␊ + ␊ + More stuff here␊ + \`\`\`␊ + ␊ + all␊ + ␊ + {MD046:23}␊ `, } -## heading_trailing_punctuation.md +## fenced_code_with_nesting.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Punctuation: \' .\'', - errorRange: [ - 19, - 2, - ], + errorContext: '```fence', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 19, + insertText: `␊ + `, + lineNumber: 4, }, - lineNumber: 3, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 4, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \' ,\'', - errorRange: [ - 19, - 2, - ], + errorContext: '```', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 19, + insertText: `␊ + `, + lineNumber: 7, }, - lineNumber: 5, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 6, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \' ;\'', - errorRange: [ - 19, - 2, - ], + errorContext: '~~~fence', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 19, + insertText: `␊ + `, + lineNumber: 8, }, - lineNumber: 7, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 8, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \' :\'', - errorRange: [ - 19, - 2, - ], + errorContext: '~~~', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 19, + insertText: `␊ + `, + lineNumber: 11, }, - lineNumber: 9, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 10, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \' !\'', - errorRange: [ - 19, - 2, - ], + errorContext: '```fence', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 19, + insertText: `␊ + `, + lineNumber: 12, }, - lineNumber: 11, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 12, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \' 。\'', - errorRange: [ - 30, - 2, - ], + errorContext: '```', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 30, + insertText: `␊ + `, + lineNumber: 17, }, - lineNumber: 15, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 16, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \' ,\'', - errorRange: [ - 30, - 2, - ], + errorContext: '~~~fence', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 30, + insertText: `␊ + `, + lineNumber: 18, }, - lineNumber: 17, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 18, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \' ;\'', - errorRange: [ - 30, - 2, - ], + errorContext: '~~~', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 30, + insertText: `␊ + `, + lineNumber: 23, }, - lineNumber: 19, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 22, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \' :\'', - errorRange: [ - 30, - 2, - ], + errorContext: '```fence', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 30, + insertText: `␊ + `, + lineNumber: 24, }, - lineNumber: 21, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 24, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \' !\'', - errorRange: [ - 30, - 2, - ], + errorContext: '```', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 30, + insertText: `␊ + `, + lineNumber: 31, }, - lineNumber: 23, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 30, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \' !\'', - errorRange: [ - 29, - 2, - ], + errorContext: '~~~fence', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 29, + insertText: `␊ + `, + lineNumber: 32, }, - lineNumber: 29, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 32, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \' !\'', - errorRange: [ - 30, - 2, - ], + errorContext: '~~~', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 30, + insertText: `␊ + `, + lineNumber: 39, }, - lineNumber: 31, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 38, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, - ], - fixed: `# Heading Trailing Punctuation␊ - ␊ - ## Heading {MD026}␊ - ␊ - ## Heading {MD026}␊ - ␊ - ## Heading {MD026}␊ - ␊ - ## Heading {MD026}␊ - ␊ - ## Heading {MD026}␊ - ␊ - ## Heading?␊ - ␊ - ## Heading/Full-Width {MD026}␊ - ␊ - ## Heading/Full-Width {MD026}␊ - ␊ - ## Heading/Full-Width {MD026}␊ - ␊ - ## Heading/Full-Width {MD026}␊ - ␊ - ## Heading/Full-Width {MD026}␊ - ␊ - ## Heading/Full-Width?␊ - ␊ - ␊ - ␊ - ## Heading {MD026} alternate ##␊ - ␊ - Heading {MD026} alternate too␊ - -------------------------------␊ - `, - } - -## heading_trailing_punctuation_customized.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Punctuation: \'.\'', - errorRange: [ - 20, - 1, - ], + errorContext: '```fence', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 20, + insertText: `␊ + `, + lineNumber: 40, }, - lineNumber: 1, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 40, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \',\'', - errorRange: [ - 21, - 1, - ], + errorContext: '```', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 21, + insertText: `␊ + `, + lineNumber: 44, }, - lineNumber: 3, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 43, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \':\'', - errorRange: [ - 21, - 1, - ], + errorContext: '~~~fence', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 21, + insertText: `␊ + `, + lineNumber: 45, }, - lineNumber: 7, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 45, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \';\'', - errorRange: [ - 21, - 1, - ], + errorContext: '~~~', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 21, + insertText: `␊ + `, + lineNumber: 49, }, - lineNumber: 9, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 48, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \'?\'', - errorRange: [ - 21, - 1, - ], + errorContext: '````fence', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 21, + insertText: `␊ + `, + lineNumber: 50, }, - lineNumber: 11, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 50, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Punctuation: \']\'', - errorRange: [ - 21, - 1, - ], + errorContext: '````', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 21, + insertText: `␊ + `, + lineNumber: 55, }, - lineNumber: 13, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + lineNumber: 54, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD026', - 'no-trailing-punctuation', + 'MD031', + 'blanks-around-fences', ], }, - ], - fixed: `# Heading 1 {MD026}␊ - ␊ - ## Heading 2 {MD026}␊ - ␊ - ## Heading 3!␊ - ␊ - ## Heading 4 {MD026}␊ - ␊ - ## Heading 5 {MD026}␊ - ␊ - ## Heading 6 {MD026}␊ - ␊ - ## Heading 7 {MD026}␊ - ␊ - The rule has been customized to allow exclamation point while disallowing␊ - everything else.␊ - ␊ - ␊ - `, - } - -## heading_trailing_punctuation_empty.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Heading Trailing Punctuation␊ - ␊ - ## Heading .␊ - ␊ - ## Heading ,␊ - ␊ - ## Heading ;␊ - ␊ - ## Heading :␊ - ␊ - ## Heading !␊ - ␊ - ## Heading ?␊ - ␊ - ␊ - `, - } - -## hr-in-blockquote-dash.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ***', + errorContext: '~~~~fence', + errorDetail: null, errorRange: null, - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + fixInfo: { + insertText: `␊ + `, + lineNumber: 56, + }, + lineNumber: 56, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ___', + errorContext: '~~~~', + errorDetail: null, errorRange: null, - fixInfo: null, - lineNumber: 7, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + fixInfo: { + insertText: `␊ + `, + lineNumber: 61, + }, + lineNumber: 60, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ***', + errorContext: '````fence', + errorDetail: null, errorRange: null, - fixInfo: null, - lineNumber: 15, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + fixInfo: { + insertText: `␊ + `, + lineNumber: 62, + }, + lineNumber: 62, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ___', + errorContext: '`````', + errorDetail: null, errorRange: null, - fixInfo: null, - lineNumber: 17, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: - - -', - errorRange: null, - fixInfo: null, - lineNumber: 23, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ***', - errorRange: null, - fixInfo: null, - lineNumber: 31, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + fixInfo: { + insertText: `␊ + `, + lineNumber: 67, + }, + lineNumber: 66, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ___', + errorContext: '~~~~fence', + errorDetail: null, errorRange: null, - fixInfo: null, - lineNumber: 33, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + fixInfo: { + insertText: `␊ + `, + lineNumber: 68, + }, + lineNumber: 68, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD031', + 'blanks-around-fences', ], }, - ], - fixed: `# HR in Blockquote, Dash␊ - ␊ - ---␊ - ␊ - ***␊ - ␊ - ___␊ - ␊ - {MD035:5} {MD035:7}␊ - ␊ - > Text␊ - >␊ - > ---␊ - >␊ - > ***␊ - >␊ - > ___␊ - >␊ - > Text␊ - ␊ - {MD035:15} {MD035:17}␊ - ␊ - - - -␊ - ␊ - > Text␊ - >␊ - > > Text␊ - > >␊ - > > ---␊ - > >␊ - > > ***␊ - > >␊ - > > ___␊ - > >␊ - > > Text␊ - >␊ - > Text␊ - ␊ - {MD035:23} {MD035:31} {MD035:33}␊ - `, - } - -## hr-in-blockquote-star.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Expected: ***; Actual: ___', + errorContext: '~~~~~', + errorDetail: null, errorRange: null, - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + fixInfo: { + insertText: `␊ + `, + lineNumber: 73, + }, + lineNumber: 72, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD031', + 'blanks-around-fences', ], }, { errorContext: null, - errorDetail: 'Expected: ***; Actual: ---', + errorDetail: 'Expected: backtick; Actual: tilde', errorRange: null, fixInfo: null, - lineNumber: 7, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 8, + ruleDescription: 'Code fence style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD048', + 'code-fence-style', ], }, { errorContext: null, - errorDetail: 'Expected: ***; Actual: ---', + errorDetail: 'Expected: backtick; Actual: tilde', errorRange: null, fixInfo: null, - lineNumber: 13, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 18, + ruleDescription: 'Code fence style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD048', + 'code-fence-style', ], }, { errorContext: null, - errorDetail: 'Expected: ***; Actual: ___', + errorDetail: 'Expected: backtick; Actual: tilde', errorRange: null, fixInfo: null, - lineNumber: 17, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 32, + ruleDescription: 'Code fence style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD048', + 'code-fence-style', ], }, { errorContext: null, - errorDetail: 'Expected: ***; Actual: * * *', + errorDetail: 'Expected: backtick; Actual: tilde', errorRange: null, fixInfo: null, - lineNumber: 23, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 45, + ruleDescription: 'Code fence style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD048', + 'code-fence-style', ], }, { errorContext: null, - errorDetail: 'Expected: ***; Actual: ---', + errorDetail: 'Expected: backtick; Actual: tilde', errorRange: null, fixInfo: null, - lineNumber: 29, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 56, + ruleDescription: 'Code fence style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD048', + 'code-fence-style', ], }, { errorContext: null, - errorDetail: 'Expected: ***; Actual: ___', + errorDetail: 'Expected: backtick; Actual: tilde', errorRange: null, fixInfo: null, - lineNumber: 33, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 68, + ruleDescription: 'Code fence style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD048', + 'code-fence-style', ], }, ], - fixed: `# HR in Blockquote, Star␊ + fixed: `# heading␊ ␊ - ***␊ + text {MD031:4}␊ ␊ - ___␊ + \`\`\`fence␊ + code {MD031:6}␊ + \`\`\`␊ ␊ - ---␊ + text {MD031:8} {MD048:8}␊ ␊ - {MD035:5} {MD035:7}␊ + ~~~fence␊ + code␊ + ~~~␊ ␊ - > Text␊ - >␊ - > ---␊ - >␊ - > ***␊ - >␊ - > ___␊ - >␊ - > Text␊ + text {MD031:10} {MD031:12}␊ ␊ - {MD035:13} {MD035:17}␊ + \`\`\`fence␊ + ~~~fence␊ + code␊ + ~~~␊ + \`\`\`␊ ␊ - * * *␊ + text {MD031:16} {MD031:18} {MD048:18}␊ ␊ - > Text␊ - >␊ - > > Text␊ - > >␊ - > > ---␊ - > >␊ - > > ***␊ - > >␊ - > > ___␊ - > >␊ - > > Text␊ - >␊ - > Text␊ + ~~~fence␊ + \`\`\`fence␊ + code␊ + \`\`\`␊ + ~~~␊ ␊ - {MD035:23} {MD035:29} {MD035:33}␊ + text {MD031:22} {MD031:24}␊ + ␊ + \`\`\`fence␊ + ␊ + ~~~fence␊ + code␊ + ~~~␊ + ␊ + \`\`\`␊ + ␊ + text {MD031:30} {MD031:32} {MD048:32}␊ + ␊ + ~~~fence␊ + ␊ + \`\`\`fence␊ + code␊ + \`\`\`␊ + ␊ + ~~~␊ + ␊ + text {MD031:38} {MD031:40}␊ + ␊ + \`\`\`fence␊ + code␊ + ~~~␊ + \`\`\`␊ + ␊ + text {MD031:43} {MD031:45} {MD048:45}␊ + ␊ + ~~~fence␊ + code␊ + \`\`\`␊ + ~~~␊ + ␊ + text {MD031:48} {MD031:50}␊ + ␊ + \`\`\`\`fence␊ + \`\`\`fence␊ + code␊ + \`\`\`␊ + \`\`\`\`␊ + ␊ + text {MD031:54} {MD031:56} {MD048:56}␊ + ␊ + ~~~~fence␊ + ~~~fence␊ + code␊ + ~~~␊ + ~~~~␊ + ␊ + text {MD031:60} {MD031:62}␊ + ␊ + \`\`\`\`fence␊ + \`\`\`fence␊ + code␊ + \`\`\`␊ + \`\`\`\`\`␊ + ␊ + text {MD031:66} {MD031:68} {MD048:68}␊ + ␊ + ~~~~fence␊ + ~~~fence␊ + code␊ + ~~~␊ + ~~~~~␊ + ␊ + text {MD031:72}␊ `, } -## hr-in-blockquote-under.md +## fenced_code_without_blank_lines.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Expected: ___; Actual: ---', - errorRange: null, - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ___; Actual: ***', + errorContext: '```', + errorDetail: null, errorRange: null, - fixInfo: null, - lineNumber: 7, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + fixInfo: { + insertText: `␊ + `, + lineNumber: 12, + }, + lineNumber: 12, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Expected: ___; Actual: ---', + errorContext: '```', + errorDetail: null, errorRange: null, - fixInfo: null, - lineNumber: 13, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + fixInfo: { + insertText: `␊ + `, + lineNumber: 15, + }, + lineNumber: 14, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Expected: ___; Actual: ***', + errorContext: '```', + errorDetail: null, errorRange: null, - fixInfo: null, - lineNumber: 15, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + fixInfo: { + insertText: `␊ + `, + lineNumber: 20, + }, + lineNumber: 19, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Expected: ___; Actual: _ _ _', + errorContext: '```', + errorDetail: null, errorRange: null, - fixInfo: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 23, + }, lineNumber: 23, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD031', + 'blanks-around-fences', ], }, { errorContext: null, - errorDetail: 'Expected: ___; Actual: ---', - errorRange: null, - fixInfo: null, - lineNumber: 29, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', + errorDetail: null, + errorRange: [ + 3, + 1, ], - }, - { - errorContext: null, - errorDetail: 'Expected: ___; Actual: ***', - errorRange: null, - fixInfo: null, - lineNumber: 31, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + fixInfo: { + editColumn: 4, + insertText: `␊ + `, + }, + lineNumber: 47, + ruleDescription: 'Files should end with a single newline character', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD047', + 'single-trailing-newline', ], }, ], - fixed: `# HR in Blockquote, Under␊ + fixed: `\`\`\`␊ + code at start of file␊ + \`\`\`␊ ␊ - ___␊ + text␊ ␊ - ---␊ + \`\`\`ruby␊ + code␊ + \`\`\`␊ ␊ - ***␊ + text␊ ␊ - {MD035:5} {MD035:7}␊ + \`\`\`␊ + code␊ + \`\`\`␊ ␊ - > Text␊ - >␊ - > ---␊ - >␊ - > ***␊ - >␊ - > ___␊ - >␊ - > Text␊ + text {MD031:12} {MD031:14}␊ ␊ - {MD035:13} {MD035:15}␊ + \`\`\`␊ + code␊ + \`\`\`␊ ␊ - _ _ _␊ + text {MD031:19}␊ ␊ - > Text␊ - >␊ - > > Text␊ - > >␊ - > > ---␊ - > >␊ - > > ***␊ - > >␊ - > > ___␊ - > >␊ - > > Text␊ - >␊ - > Text␊ + text {MD031:23}␊ ␊ - {MD035:23} {MD035:29} {MD035:31}␊ - `, - } - -## hr-in-list-dash.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ***', - errorRange: null, - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ___', - errorRange: null, - fixInfo: null, - lineNumber: 7, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: - ---', - errorRange: null, - fixInfo: null, - lineNumber: 14, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ***', - errorRange: null, - fixInfo: null, - lineNumber: 16, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ___', - errorRange: null, - fixInfo: null, - lineNumber: 18, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: * ***', - errorRange: null, - fixInfo: null, - lineNumber: 26, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ___', - errorRange: null, - fixInfo: null, - lineNumber: 28, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - ], - fixed: `# HR in List, Dash␊ + \`\`\`␊ + code␊ + \`\`\`␊ ␊ - ---␊ + text␊ ␊ - ***␊ + \`\`\`js␊ + code␊ + code␊ + code␊ + \`\`\`␊ ␊ - ___␊ + \`\`\`html␊ + \`\`\`␊ ␊ - {MD035:5} {MD035:7}␊ + text␊ ␊ - ␊ + ␊ ␊ - - list␊ - - ---␊ - - list␊ - - ***␊ - - list␊ - - ___␊ - - list␊ + \`\`\`␊ + code at end of file without newline {MD047:47}␊ + \`\`\`␊ + `, + } + +## first_heading_bad_atx.md + +> Snapshot 1 + + { + errors: [], + fixed: `## Heading␊ ␊ - {MD035:14} {MD035:16} {MD035:18}␊ + ␊ + `, + } + +## first_heading_bad_setext.md + +> Snapshot 1 + + { + errors: [], + fixed: `Heading␊ + -------␊ ␊ - * list␊ - * ---␊ - * list␊ - * ***␊ - * list␊ - * ___␊ - * list␊ + ␊ + `, + } + +## first_heading_good_atx.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Heading␊ + `, + } + +## first_heading_good_setext.md + +> Snapshot 1 + + { + errors: [], + fixed: `Heading␊ + =======␊ + `, + } + +## first_line_top_level_heading_atx.md + +> Snapshot 1 + + { + errors: [], + fixed: `# First line is a top level heading␊ ␊ - {MD035:26} {MD035:28}␊ + This shouldn't trigger MD041␊ `, } -## hr-in-list-star.md +## first_line_top_level_heading_setext.md + +> Snapshot 1 + + { + errors: [], + fixed: `First line top level heading␊ + ============================␊ + ␊ + This shouldn't trigger MD041␊ + `, + } + +## fix_102_extra_nodes_in_link_text.md + +> Snapshot 1 + + { + errors: [], + fixed: `# fix_102_extra_nodes_in_link_text␊ + ␊ + [test _test_ test](www.test.com)␊ + [test \`test\` test](www.test.com)␊ + [test *test* test](www.test.com)␊ + [test *test* *test* test](www.test.com)␊ + [test *test* *test* *test* test](www.test.com)␊ + [test **test** test](www.test.com)␊ + [test __test__ test](www.test.com)␊ + [this should not raise](www.shouldnotraise.com)␊ + ␊ + ␊ + `, + } + +## fixing-with-front-matter.md > Snapshot 1 @@ -15001,131 +13362,213 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: ***; Actual: ___', - errorRange: null, - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', + errorDetail: 'Expected: 0 or 2; Actual: 3', + errorRange: [ + 23, + 3, ], - }, - { - errorContext: null, - errorDetail: 'Expected: ***; Actual: ---', - errorRange: null, - fixInfo: null, - lineNumber: 7, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + fixInfo: { + deleteCount: 3, + editColumn: 23, + }, + lineNumber: 6, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD009', + 'no-trailing-spaces', ], }, { - errorContext: null, - errorDetail: 'Expected: ***; Actual: - ---', + errorContext: '# Fixing with Front Matter {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Below', errorRange: null, - fixInfo: null, - lineNumber: 14, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + 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/md022.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Expected: ***; Actual: ___', + errorContext: '## Nested Heading {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Above', errorRange: null, - fixInfo: null, - lineNumber: 18, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + fixInfo: { + insertText: `␊ + `, + }, + lineNumber: 9, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Expected: ***; Actual: ---', - errorRange: null, - fixInfo: null, - lineNumber: 24, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + 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/md039.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD039', + 'no-space-in-links', ], }, { errorContext: null, - errorDetail: 'Expected: ***; Actual: * ***', - errorRange: null, - fixInfo: null, - lineNumber: 26, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + errorDetail: null, + errorRange: [ + 12, + 1, + ], + fixInfo: { + editColumn: 13, + insertText: `␊ + `, + }, + lineNumber: 11, + ruleDescription: 'Files should end with a single newline character', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD047', + 'single-trailing-newline', ], }, + ], + fixed: `---␊ + front: matter␊ + ignore: this␊ + ---␊ + # Fixing with Front Matter {MD022}␊ + ␊ + Text text text {MD009}␊ + ␊ + Text [link](url) text {MD039}␊ + ␊ + ## Nested Heading {MD022}␊ + ␊ + Text {MD047}␊ + `, + } + +## front-matter-alt-title-h1.md + +> Snapshot 1 + + { + errors: [ { - errorContext: null, - errorDetail: 'Expected: ***; Actual: ___', + errorContext: 'Top level heading {MD025}', + errorDetail: null, errorRange: null, fixInfo: null, - lineNumber: 28, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 4, + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD025', + 'single-title', + 'single-h1', ], }, ], - fixed: `# HR in List, Star␊ - ␊ - ***␊ - ␊ - ___␊ - ␊ + fixed: `---␊ + alternate="Welcome to Jekyll!"␊ ---␊ + # Top level heading {MD025}␊ ␊ - {MD035:5} {MD035:7}␊ + Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ - ␊ + ␊ + `, + } + +## front-matter-alt-title-json.md + +> Snapshot 1 + + { + errors: [], + fixed: `{␊ + "date": "2017-01-26T22:17:00+02:00",␊ + "alternate": "My document title and heading"␊ + }␊ ␊ - - list␊ - - ---␊ - - list␊ - - ***␊ - - list␊ - - ___␊ - - list␊ + Some plain text here.␊ ␊ - {MD035:14} {MD035:18}␊ + ␊ + `, + } + +## front-matter-alt-title-no-h1.md + +> Snapshot 1 + + { + errors: [], + fixed: `---␊ + alternate="Welcome to Jekyll!"␊ + ---␊ + Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ - * list␊ - * ---␊ - * list␊ - * ***␊ - * list␊ - * ___␊ - * list␊ + ␊ + `, + } + +## front-matter-alt-title-toml.md + +> Snapshot 1 + + { + errors: [], + fixed: `+++␊ + date = "2017-01-26T22:17:00+02:00"␊ + alternate = "My document title and heading"␊ + +++␊ ␊ - {MD035:24} {MD035:26} {MD035:28}␊ + Some plain text here.␊ + ␊ + ␊ `, } -## hr-in-list-under.md +## front-matter-alternate.md > Snapshot 1 @@ -15133,118 +13576,54 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: ___; Actual: ---', - errorRange: null, - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + errorDetail: 'Expected: 0; Actual: 1', + errorRange: [ + 13, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 13, + }, + lineNumber: 6, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD009', + 'no-trailing-spaces', ], }, { - errorContext: null, - errorDetail: 'Expected: ___; Actual: ***', + errorContext: 'Text {MD041}', + errorDetail: null, errorRange: null, fixInfo: null, - lineNumber: 7, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + 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/md041.md', ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ___; Actual: - ---', - errorRange: null, - fixInfo: null, - lineNumber: 14, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ___; Actual: ***', - errorRange: null, - fixInfo: null, - lineNumber: 16, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ___; Actual: ---', - errorRange: null, - fixInfo: null, - lineNumber: 24, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ___; Actual: * ***', - errorRange: null, - fixInfo: null, - lineNumber: 26, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', + 'MD041', + 'first-line-heading', + 'first-line-h1', ], }, ], - fixed: `# HR in List, Under␊ - ␊ - ___␊ - ␊ + fixed: `---␊ + front: matter␊ ---␊ + Text {MD041}␊ ␊ - ***␊ - ␊ - {MD035:5} {MD035:7}␊ - ␊ - ␊ - ␊ - - list␊ - - ---␊ - - list␊ - - ***␊ - - list␊ - - ___␊ - - list␊ - ␊ - {MD035:14} {MD035:16}␊ - ␊ - * list␊ - * ---␊ - * list␊ - * ***␊ - * list␊ - * ___␊ - * list␊ + Text {MD009}␊ ␊ - {MD035:24} {MD035:26}␊ + ␊ `, } -## hr-style-custom.md +## front-matter-embedded.md > Snapshot 1 @@ -15252,1159 +13631,1266 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: - - -; Actual: ---', - errorRange: null, - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', + errorDetail: 'Column: 6', + errorRange: [ + 6, + 1, ], - }, - { - errorContext: null, - errorDetail: 'Expected: - - -; Actual: - - -', - errorRange: null, - fixInfo: null, - lineNumber: 10, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + fixInfo: { + deleteCount: 1, + editColumn: 6, + insertText: ' ', + }, + lineNumber: 5, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: null, - errorDetail: 'Expected: - - -; Actual: ***', + errorContext: 'layout: post {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Above', errorRange: null, - fixInfo: null, - lineNumber: 19, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + fixInfo: { + insertText: `␊ + `, + }, + lineNumber: 4, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD022', + 'blanks-around-headings', ], }, ], - fixed: `# HR Style Custom␊ - ␊ - Text␊ + fixed: `Text text text␊ ␊ ---␊ - {MD035:5}␊ - ␊ - Text␊ - ␊ - - - -␊ - {MD035:10}␊ - ␊ - Text␊ - ␊ - - - -␊ ␊ - Text␊ - ␊ - ***␊ - {MD035:19}␊ + layout: post {MD022}␊ + hard: tab {MD010}␊ + title: embedded␊ + ---␊ ␊ - Text␊ + Text text text␊ ␊ ␊ `, } -## hr_style_dashes.md +## front-matter-empty-title-no-h1.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ***', - errorRange: null, - fixInfo: null, - lineNumber: 3, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: * * *', - errorRange: null, - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: *****', + errorContext: 'Front matter from [Jekyll docu...', + errorDetail: null, errorRange: null, fixInfo: null, lineNumber: 7, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - 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/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: -----', - errorRange: null, - fixInfo: null, - lineNumber: 13, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ___', - errorRange: null, - fixInfo: null, - lineNumber: 15, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: _ _ _', - errorRange: null, - fixInfo: null, - lineNumber: 17, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: _____', - errorRange: null, - fixInfo: null, - lineNumber: 19, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ---; Actual: ***', - errorRange: null, - fixInfo: null, - lineNumber: 21, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleDescription: 'First line in a file should be a top-level heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD041', + 'first-line-heading', + 'first-line-h1', ], }, ], - fixed: `# hr_style_dashes␊ - ␊ - ***␊ - ␊ - * * *␊ - ␊ - *****␊ - ␊ + fixed: `---␊ + layout: post␊ + title: "Welcome to Jekyll!"␊ + date: 2015-11-17 16:16:01 -0600␊ + categories: jekyll update␊ ---␊ - ␊ - - - -␊ - ␊ - -----␊ - ␊ - ___␊ - ␊ - _ _ _␊ - ␊ - _____␊ - ␊ - ***␊ - ␊ - {MD035:3} {MD035:5} {MD035:7} {MD035:11} {MD035:13}␊ - {MD035:15} {MD035:17} {MD035:19} {MD035:21}␊ + Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}␊ ␊ ␊ `, } -## hr_style_inconsistent.md +## front-matter-empty.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Expected: ***; Actual: * * *', + errorContext: 'Another {MD025}', + errorDetail: null, errorRange: null, fixInfo: null, lineNumber: 5, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD025', + 'single-title', + 'single-h1', ], }, + ], + fixed: `---␊ + ---␊ + # Heading␊ + ␊ + # Another {MD025}␊ + `, + } + +## front-matter-no-crlf.md + +> Snapshot 1 + + { + errors: [], + fixed: `---␊ + front: matter␊ + ---`, + } + +## front-matter-no-title-h1.md + +> Snapshot 1 + + { + errors: [], + fixed: `---␊ + layout: post␊ + notitle: "Welcome to Jekyll!"␊ + date: 2015-11-17 16:16:01 -0600␊ + categories: jekyll update␊ + ---␊ + # Top level heading␊ + ␊ + Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ + ␊ + ␊ + `, + } + +## front-matter-no-title-no-h1.md + +> Snapshot 1 + + { + errors: [ { - errorContext: null, - errorDetail: 'Expected: ***; Actual: *****', + errorContext: 'Front matter from [Jekyll docu...', + errorDetail: null, errorRange: null, fixInfo: null, lineNumber: 7, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ***; Actual: ---', - errorRange: null, - fixInfo: null, - lineNumber: 9, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - 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/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ***; Actual: -----', - errorRange: null, - fixInfo: null, - lineNumber: 13, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ***; Actual: ___', - errorRange: null, - fixInfo: null, - lineNumber: 15, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ***; Actual: _ _ _', - errorRange: null, - fixInfo: null, - lineNumber: 17, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: ***; Actual: _____', - errorRange: null, - fixInfo: null, - lineNumber: 19, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleDescription: 'First line in a file should be a top-level heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD041', + 'first-line-heading', + 'first-line-h1', ], }, ], - fixed: `# hr_style_inconsistent␊ - ␊ - ***␊ - ␊ - * * *␊ - ␊ - *****␊ - ␊ + fixed: `---␊ + layout: post␊ + notitle: "Welcome to Jekyll!"␊ + date: 2015-11-17 16:16:01 -0600␊ + categories: jekyll update␊ ---␊ + Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}␊ ␊ - - - -␊ - ␊ - -----␊ - ␊ - ___␊ - ␊ - _ _ _␊ - ␊ - _____␊ - ␊ - ***␊ - ␊ - {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19}␊ + ␊ `, } -## hr_style_long.md +## front-matter-title-h1.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Expected: _____; Actual: ***', + errorContext: 'Top level heading {MD025}', + errorDetail: null, errorRange: null, fixInfo: null, - lineNumber: 3, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 7, + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD025', + 'single-title', + 'single-h1', ], }, + ], + fixed: `---␊ + layout: post␊ + title: "Welcome to Jekyll!"␊ + date: 2015-11-17 16:16:01 -0600␊ + categories: jekyll update␊ + ---␊ + # Top level heading {MD025}␊ + ␊ + Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ + ␊ + ␊ + `, + } + +## front-matter-title-h2.md + +> Snapshot 1 + + { + errors: [], + fixed: `---␊ + layout: post␊ + title: "Welcome to Jekyll!"␊ + date: 2015-11-17 16:16:01 -0600␊ + categories: jekyll update␊ + ---␊ + ## Secondary heading␊ + ␊ + Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ + ␊ + ␊ + `, + } + +## front-matter-title-json-spaces.md + +> Snapshot 1 + + { + errors: [], + fixed: `{␊ + "date": "2017-01-26T22:17:00+02:00",␊ + "title": "My document title and heading"␊ + } ␊ + ␊ + Some plain text here.␊ + `, + } + +## front-matter-title-json.md + +> Snapshot 1 + + { + errors: [], + fixed: `{␊ + "date": "2017-01-26T22:17:00+02:00",␊ + "title": "My document title and heading"␊ + }␊ + ␊ + Some plain text here.␊ + `, + } + +## front-matter-title-no-h1.md + +> Snapshot 1 + + { + errors: [], + fixed: `---␊ + layout: post␊ + title: "Welcome to Jekyll!"␊ + date: 2015-11-17 16:16:01 -0600␊ + categories: jekyll update␊ + ---␊ + Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ + ␊ + ␊ + `, + } + +## front-matter-title-pandoc-spaces.md + +> Snapshot 1 + + { + errors: [], + fixed: `+++ ␊ + title: "Welcome to pandoc!"␊ + date: 2015-11-17 16:16:01 -0600␊ + ... ␊ + ␊ + Some plain text here.␊ + `, + } + +## front-matter-title-pandoc.md + +> Snapshot 1 + + { + errors: [], + fixed: `+++␊ + title: "Welcome to pandoc!"␊ + date: 2015-11-17 16:16:01 -0600␊ + ...␊ + ␊ + Some plain text here.␊ + `, + } + +## front-matter-title-spaces.md + +> Snapshot 1 + + { + errors: [], + fixed: `--- ␊ + layout: post␊ + title: "Welcome to Jekyll!"␊ + date: 2015-11-17 16:16:01 -0600␊ + categories: jekyll update␊ + --- ␊ + ␊ + Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ + ␊ + ␊ + `, + } + +## front-matter-title-toml-spaces.md + +> Snapshot 1 + + { + errors: [], + fixed: `+++ ␊ + date = "2017-01-26T22:17:00+02:00"␊ + title = "My document title and heading"␊ + +++ ␊ + ␊ + Some plain text here.␊ + `, + } + +## front-matter-title-toml.md + +> Snapshot 1 + + { + errors: [], + fixed: `+++␊ + date = "2017-01-26T22:17:00+02:00"␊ + title = "My document title and heading"␊ + +++␊ + ␊ + Some plain text here.␊ + `, + } + +## front-matter-with-dashes.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Expected: _____; Actual: * * *', - errorRange: null, - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + errorDetail: 'Column: 1', + errorRange: [ + 1, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 10, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD010', + 'no-hard-tabs', ], }, + ], + fixed: `---␊ + layout: post␊ + title: Title with ---␊ + tags: front matter␊ + ---␊ + ## Heading␊ + ␊ + ---␊ + ␊ + Hard tab {MD010}␊ + `, + } + +## front-matter-with-disable-next-line.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Expected: _____; Actual: *****', - errorRange: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 7, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 10, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: _____; Actual: ---', - errorRange: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 9, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 15, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: _____; Actual: - - -', - errorRange: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 11, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 16, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: _____; Actual: -----', - errorRange: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 13, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 19, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: _____; Actual: ___', - errorRange: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 15, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 20, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: _____; Actual: _ _ _', - errorRange: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 17, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 22, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: _____; Actual: ***', - errorRange: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 21, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 23, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD033', + 'no-inline-html', ], }, - ], - fixed: `# hr_style_long␊ - ␊ - ***␊ - ␊ - * * *␊ - ␊ - *****␊ - ␊ - ---␊ - ␊ - - - -␊ - ␊ - -----␊ - ␊ - ___␊ - ␊ - _ _ _␊ - ␊ - _____␊ - ␊ - ***␊ - ␊ - {MD035:3} {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15}␊ - {MD035:17} {MD035:21}␊ - ␊ - ␊ - `, - } - -## hr_style_stars.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: ***; Actual: * * *', - errorRange: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 5, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 25, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: ***; Actual: *****', - errorRange: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 7, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 26, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: ***; Actual: ---', - errorRange: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 9, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 28, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: ***; Actual: - - -', - errorRange: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 11, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 29, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: ***; Actual: -----', - errorRange: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 13, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 31, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: ***; Actual: ___', - errorRange: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 15, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 32, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: ***; Actual: _ _ _', - errorRange: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 17, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 34, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: ***; Actual: _____', - errorRange: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 19, - ruleDescription: 'Horizontal rule style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + lineNumber: 35, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD035', - 'hr-style', + 'MD033', + 'no-inline-html', ], }, ], - fixed: `# hr_style_stars␊ - ␊ - ***␊ - ␊ - * * *␊ - ␊ - *****␊ - ␊ + fixed: `---␊ + front: matter␊ ---␊ ␊ - - - -␊ - ␊ - -----␊ - ␊ - ___␊ + # Front Matter with Disable-Next-Line␊ ␊ - _ _ _␊ + ␊ +
␊ ␊ - _____␊ +
{MD033}␊ ␊ - ***␊ + ␊ +
␊ ␊ - {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19}␊ +
{MD033}␊ +
{MD033}␊ + ␊ +
␊ +
{MD033}␊ +
{MD033}␊ ␊ - ␊ +
{MD033}␊ +
{MD033}␊ +
␊ +
{MD033}␊ +
{MD033}␊ +
␊ +
{MD033}␊ +
{MD033}␊ +
␊ +
{MD033}␊ +
{MD033}␊ +
␊ +
{MD033}␊ +
{MD033}␊ `, } -## html-comment-in-code-and-table.md +## front-matter-yaml-in-html-comment.md > Snapshot 1 { - errors: [ - { - errorContext: '`{MD038} `', - errorDetail: null, - errorRange: [ - 1, - 10, - ], - fixInfo: { - deleteCount: 8, - editColumn: 2, - insertText: '{MD038}', - }, - lineNumber: 3, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', - ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - { - errorContext: '`{MD038} `', - errorDetail: null, - errorRange: [ - 3, - 10, - ], - fixInfo: { - deleteCount: 8, - editColumn: 4, - insertText: '{MD038}', - }, - lineNumber: 15, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', - ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - { - errorContext: '`{MD038} `', - errorDetail: null, - errorRange: [ - 3, - 10, - ], - fixInfo: { - deleteCount: 8, - editColumn: 4, - insertText: '{MD038}', - }, - lineNumber: 19, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', - ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - { - errorContext: '`{MD038} `', - errorDetail: null, - errorRange: [ - 5, - 10, - ], - fixInfo: { - deleteCount: 8, - editColumn: 6, - insertText: '{MD038}', - }, - lineNumber: 39, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', - ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - ], - fixed: `# HTML Comment in Code and Table␊ - ␊ - \`{MD038}\`␊ - ␊ - ␊ - ␊ - \`\`\`text␊ - ␊ - \`\`\`␊ - ␊ - ␊ - ␊ - | Table |␊ - |------------|␊ - | \`{MD038}\` |␊ - ␊ - * item␊ - ␊ - \`{MD038}\`␊ + errors: [], + fixed: `␊ ␊ - * item␊ + # Front Matter YAML in HTML Comment␊ ␊ - ␊ + Text text text␊ + `, + } + +## front-matter.md + +> Snapshot 1 + + { + errors: [], + fixed: `---␊ + front: matter␊ + ---␊ + # Heading 1␊ ␊ - * item␊ + ## Heading 2␊ + `, + } + +## github-footnote-syntax.md + +> Snapshot 1 + + { + errors: [], + fixed: `# GitHub Footnote Syntax␊ ␊ - \`\`\`text␊ - ␊ - \`\`\`␊ + > Example from ␊ ␊ - * item␊ + Here is a simple footnote[^1].␊ ␊ - ␊ + A footnote can also have multiple lines[^2].␊ ␊ - * item␊ + You can also use words, to fit your writing style more closely[^note].␊ ␊ - | Table |␊ - |------------|␊ - | \`{MD038}\` |␊ + [^1]: My reference.␊ + [^2]: Every new line should be prefixed with 2 spaces.␊ + This allows you to have a footnote with multiple lines.␊ + [^note]:␊ + Named footnotes will still render with numbers instead of the text but allow easier identification and linking.␊ + This footnote also has been made with a different syntax using 4 spaces for new lines.␊ ␊ ␊ `, } -## html-comment-in-list-item.md +## h1-as-top-level-heading.md > Snapshot 1 { errors: [], - fixed: `# HTML Comment in List Item␊ - ␊ - - item␊ - ␊ - ␊ - ␊ - - item␊ - ␊ - x␊ - ␊ - - item␊ - ␊ - x␊ - ␊ - - item␊ - ␊ - xx␊ - ␊ - - item␊ + fixed: `

H1 as Top-Level Heading

␊ ␊ - \`\`\`html␊ - ␊ - \`\`\`␊ + Text␊ ␊ - - item␊ + ␊ + `, + } + +## h1-image-as-top-level-heading.md + +> Snapshot 1 + + { + errors: [], + fixed: `

A kitten

␊ ␊ - \`\`\`html␊ - x␊ - \`\`\`␊ + Text␊ ␊ - - item␊ + ␊ + `, + } + +## h2-as-top-level-heading.md + +> Snapshot 1 + + { + errors: [], + fixed: `

H2 as Top-Level Heading

␊ ␊ - \`\`\`html␊ - x␊ - \`\`\`␊ + Text␊ ␊ - - item␊ + ␊ + `, + } + +## h3-as-top-level-heading.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: '

H3 as Top-Level Heading {M...', + 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/md041.md', + ruleNames: [ + 'MD041', + 'first-line-heading', + 'first-line-h1', + ], + }, + ], + fixed: `

H3 as Top-Level Heading {MD041}

␊ ␊ - \`\`\`html␊ - xx␊ - \`\`\`␊ + Text␊ ␊ - - item␊ + ␊ `, } -## html-comment-in-markdown-table.md +## hard-line-breaks.md > Snapshot 1 { errors: [ { - errorContext: '`{MD038} `', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 4', errorRange: [ - 3, - 10, + 5, + 4, ], fixInfo: { - deleteCount: 8, - editColumn: 4, - insertText: '{MD038}', + deleteCount: 4, + editColumn: 5, }, - lineNumber: 16, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 9, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD009', + 'no-trailing-spaces', ], }, { - errorContext: '`{MD038} `', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 2', errorRange: [ - 3, - 10, + 6, + 2, ], fixInfo: { - deleteCount: 8, - editColumn: 4, - insertText: '{MD038}', + deleteCount: 2, + editColumn: 6, }, - lineNumber: 22, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 24, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD009', + 'no-trailing-spaces', ], }, { - errorContext: '`{MD038} `', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 2', errorRange: [ - 3, - 10, + 4, + 2, ], fixInfo: { - deleteCount: 8, + deleteCount: 2, editColumn: 4, - insertText: '{MD038}', }, - lineNumber: 28, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 32, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD009', + 'no-trailing-spaces', ], }, { - errorContext: '`{MD038} `', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 2', errorRange: [ - 11, - 10, + 8, + 2, ], fixInfo: { - deleteCount: 8, - editColumn: 12, - insertText: '{MD038}', + deleteCount: 2, + editColumn: 8, }, - lineNumber: 40, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 36, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD009', + 'no-trailing-spaces', ], }, { - errorContext: '`{MD038} `', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 2', errorRange: [ - 11, - 10, + 1, + 2, ], fixInfo: { - deleteCount: 8, - editColumn: 12, - insertText: '{MD038}', + deleteCount: 2, + editColumn: 1, }, - lineNumber: 46, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 39, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD009', + 'no-trailing-spaces', ], }, { - errorContext: '`{MD038} `', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 2', + errorRange: [ + 1, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 1, + }, + lineNumber: 41, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + ruleNames: [ + 'MD009', + 'no-trailing-spaces', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 4', + errorRange: [ + 1, + 4, + ], + fixInfo: { + deleteCount: 4, + editColumn: 1, + }, + lineNumber: 43, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + ruleNames: [ + 'MD009', + 'no-trailing-spaces', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 2', errorRange: [ - 11, 10, + 2, ], fixInfo: { - deleteCount: 8, - editColumn: 12, - insertText: '{MD038}', + deleteCount: 2, + editColumn: 10, }, - lineNumber: 52, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 48, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD009', + 'no-trailing-spaces', ], }, - ], - fixed: `# HTML Comment in Markdown Table␊ - ␊ - \`\`\`xml␊ - ␊ - \`\`\`␊ - ␊ - | Table |␊ - |-------|␊ - | |␊ - ␊ - | Table |␊ - |------------|␊ - | |␊ - ␊ - | Table |␊ - |----------------|␊ - | |␊ - | cell |␊ - ␊ - | Table |␊ - |----------------|␊ - | |␊ - | cell |␊ - ␊ - | Table | Table |␊ - |-------|-------|␊ - | cell | |␊ - ␊ - | Table | Table |␊ - |-------|------------|␊ - | cell | |␊ - ␊ - | Table | Table |␊ - |-------|----------------|␊ - | cell | |␊ - | cell | cell |␊ - ␊ - | Table | Table |␊ - |-------|----------------|␊ - | cell | |␊ - | cell | cell |␊ - ␊ - ␊ - `, - } - -## html-comments.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '} *', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 2', errorRange: [ - 15, - 3, + 5, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 16, + deleteCount: 2, + editColumn: 5, }, - lineNumber: 51, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 54, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD009', + 'no-trailing-spaces', ], }, { - errorContext: '} *', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 2', errorRange: [ - 16, - 3, + 11, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 17, + deleteCount: 2, + editColumn: 11, }, - lineNumber: 53, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 58, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD009', + 'no-trailing-spaces', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 2', + errorRange: [ + 11, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 11, + }, + lineNumber: 61, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + ruleNames: [ + 'MD009', + 'no-trailing-spaces', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 2', + errorRange: [ + 10, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 10, + }, + lineNumber: 62, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + ruleNames: [ + 'MD009', + 'no-trailing-spaces', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 2', + errorRange: [ + 11, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 11, + }, + lineNumber: 63, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + ruleNames: [ + 'MD009', + 'no-trailing-spaces', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 2', + errorRange: [ + 10, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 10, + }, + lineNumber: 65, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + ruleNames: [ + 'MD009', + 'no-trailing-spaces', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 2', + errorRange: [ + 22, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 22, + }, + lineNumber: 67, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + ruleNames: [ + 'MD009', + 'no-trailing-spaces', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 2', + errorRange: [ + 10, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 10, + }, + lineNumber: 71, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + ruleNames: [ + 'MD009', + 'no-trailing-spaces', ], }, ], - fixed: `# HTML Comments␊ + fixed: `# Hard Line Breaks␊ ␊ - ## Block Comments␊ + hard ␊ + break␊ ␊ - ␊ + hard\\␊ + break␊ ␊ - ␊ + hard␊ + break␊ ␊ - text␊ + hard ␊ + break␊ ␊ - ␊ + hard\\␊ + break␊ ␊ - ␊ + *hard ␊ + break*␊ ␊ - ␊ + *hard\\␊ + break*␊ ␊ - ␊ + \`code␊ + span\`␊ ␊ - *text * -->␊ + \`code\\␊ + span\`␊ ␊ - *text * -->␊ + not\\␊ ␊ - ␊ + not␊ ␊ - ␊ + ## not\\␊ ␊ - ␊ + ### not␊ ␊ - ## Inline Comments␊ + - Item␊ ␊ - ␊ + - Item␊ ␊ - t␊ + - Item␊ ␊ - ttext␊ + - Item␊ ␊ - t␊ + Text text␊ + text \`code␊ + span code␊ + span\` text␊ + text␊ ␊ - t␊ + Text text␊ + text text␊ + text␊ ␊ - t␊ + Text text␊ + text \`code␊ + span\` text␊ ␊ - t␊ + Text text␊ + text \`code␊ + span code␊ + span\` text␊ ␊ - t *{MD037}* -->␊ + Text text␊ ␊ - t *{MD037}* -->␊ + Text \`code span\` text␊ ␊ - t␊ + Text text ␊ + \`code span\` ␊ + text text␊ ␊ - t␊ + {MD009:9}␊ + {MD009:24}␊ + {MD009:32}␊ + {MD009:36}␊ + {MD009:39}␊ + {MD009:41}␊ + {MD009:43}␊ + {MD009:48}␊ + {MD009:54}␊ + {MD009:58}␊ + {MD009:61}␊ + {MD009:62}␊ + {MD009:63}␊ + {MD009:65}␊ + {MD009:67}␊ + {MD009:71}␊ ␊ - t␊ + ␊ `, } -## html-tags.md +## heading-duplicate-content-siblings-only.md > Snapshot 1 @@ -16412,568 +14898,432 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 1, - 4, - ], + errorDetail: 'Expected: h4; Actual: h5', + errorRange: null, fixInfo: null, - lineNumber: 5, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 27, + ruleDescription: 'Heading levels should only increment by one level at a time', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD001', + 'heading-increment', ], }, { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 6, - 4, - ], + errorContext: 'B', + errorDetail: null, + errorRange: null, fixInfo: null, - lineNumber: 7, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 11, + ruleDescription: 'Multiple headings with the same content', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD024', + 'no-duplicate-heading', ], }, { - errorContext: null, - errorDetail: 'Element: p', - errorRange: [ - 1, - 3, - ], + errorContext: 'C', + errorDetail: null, + errorRange: null, fixInfo: null, - lineNumber: 17, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 23, + ruleDescription: 'Multiple headings with the same content', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD024', + 'no-duplicate-heading', ], }, { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 7, - 4, - ], + errorContext: 'G', + errorDetail: null, + errorRange: null, fixInfo: null, - lineNumber: 19, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 35, + ruleDescription: 'Multiple headings with the same content', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD024', + 'no-duplicate-heading', ], }, { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 7, - 4, - ], + errorContext: 'E', + errorDetail: null, + errorRange: null, fixInfo: null, - lineNumber: 23, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 39, + ruleDescription: 'Multiple headings with the same content', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD024', + 'no-duplicate-heading', ], }, { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 36, - 4, - ], + errorContext: 'A', + errorDetail: null, + errorRange: null, fixInfo: null, - lineNumber: 24, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 43, + ruleDescription: 'Multiple headings with the same content', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD024', + 'no-duplicate-heading', ], }, { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 9, - 4, - ], + errorContext: 'B', + errorDetail: null, + errorRange: null, fixInfo: null, - lineNumber: 29, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 51, + ruleDescription: 'Multiple headings with the same content', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD024', + 'no-duplicate-heading', ], }, { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 14, - 4, - ], + errorContext: 'Heading duplicate content sibl...', + errorDetail: null, + errorRange: null, fixInfo: null, - lineNumber: 31, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 55, + ruleDescription: 'Multiple headings with the same content', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD024', + 'no-duplicate-heading', ], }, { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 1, - 4, - ], + errorContext: 'BB', + errorDetail: null, + errorRange: null, fixInfo: null, - lineNumber: 35, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 73, + ruleDescription: 'Multiple headings with the same content', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD024', + 'no-duplicate-heading', ], }, { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 6, - 4, - ], + errorContext: 'BBB', + errorDetail: null, + errorRange: null, fixInfo: null, - lineNumber: 37, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 94, + ruleDescription: 'Multiple headings with the same content', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', 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/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD024', + 'no-duplicate-heading', ], }, { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 56, - 4, - ], + errorContext: 'A', + errorDetail: null, + errorRange: null, fixInfo: null, - lineNumber: 41, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 3, + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD025', + 'single-title', + 'single-h1', ], }, { - errorContext: null, - errorDetail: 'Element: em', - errorRange: [ - 35, - 4, - ], + errorContext: 'A', + errorDetail: null, + errorRange: null, fixInfo: null, lineNumber: 43, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - 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/md033.md', + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD025', + 'single-title', + 'single-h1', ], }, { - errorContext: null, - errorDetail: 'Element: problem', - errorRange: [ - 8, - 9, - ], + errorContext: 'Heading duplicate content sibl...', + errorDetail: null, + errorRange: null, fixInfo: null, lineNumber: 55, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - 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/md033.md', - 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/md033.md', - 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/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: img', - errorRange: [ - 6, - 39, - ], - fixInfo: null, - lineNumber: 91, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - 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/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: details', - errorRange: [ - 1, - 9, - ], - fixInfo: null, - lineNumber: 109, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD025', + 'single-title', + 'single-h1', ], }, { - errorContext: null, - errorDetail: 'Element: details', - errorRange: [ - 2, - 9, - ], + errorContext: 'AA', + errorDetail: null, + errorRange: null, fixInfo: null, - lineNumber: 116, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 59, + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD025', + 'single-title', + 'single-h1', ], }, { - errorContext: null, - errorDetail: 'Element: custom-element', - errorRange: [ - 1, - 35, - ], + errorContext: 'BB', + errorDetail: null, + errorRange: null, fixInfo: null, - lineNumber: 120, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 78, + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD025', + 'single-title', + 'single-h1', ], }, ], - fixed: `# Detailed HTML Results␊ - ␊ - Text␊ - ␊ - Block block {MD033}␊ - ␊ - Text inline inline {MD033} text␊ - ␊ - Text␊ + fixed: `# Heading duplicate content siblings only␊ ␊ - Block block␊ + # A␊ ␊ - Text inline inline text␊ + {MD025:3}␊ ␊ - Text␊ + ## B␊ ␊ -

␊ - Block {MD033:17}␊ - block block {MD033} block␊ - block␊ - block block block␊ - block␊ - block block block block block {MD033}␊ - block block block block block {MD033}␊ -

␊ + ### C␊ ␊ - Text␊ + ## B␊ ␊ - Block block {MD033}␊ + {MD024:11}␊ ␊ - Text inline inline {MD033} text␊ + ### C␊ ␊ - Text␊ + ## D␊ ␊ - Block block {MD033}␊ + ### C␊ ␊ - Text inline inline {MD033} text␊ + ### E␊ ␊ - Text␊ + ### C␊ ␊ - Text inline text inline text inline text {MD033}␊ + {MD024:23}␊ ␊ - Text inline text inline text inline {MD033}␊ + ##### F␊ ␊ - Text␊ + {MD001:27}␊ ␊ - \\Block block\\␊ + #### G␊ ␊ - \\\\Block block {MD033}\\\\␊ + ##### F␊ ␊ - Block block␊ + #### G␊ ␊ - Text \\inline inline\\ text␊ + {MD024:35}␊ ␊ - Text \\\\inline inline {MD033}\\\\ text␊ + ### E␊ ␊ - Text inline inline text␊ + {MD024:39}␊ ␊ - Text␊ + # A␊ ␊ - > Text inline inline {MD033} text␊ - > text inline inline text␊ + {MD024:43} {MD025:43}␊ ␊ - Text␊ + ## B␊ ␊ - Text inline inline text␊ - text inline inline text␊ + ### C␊ ␊ - Text␊ + ## B␊ ␊ - \`\`\`html␊ - Text inline inline text␊ - text inline inline text␊ - \`\`\`␊ + {MD024:51}␊ ␊ - Text␊ + # Heading duplicate content siblings only␊ ␊ - \`\`␊ + {MD024:55} {MD025:55}␊ ␊ - Text \`\`\`\` text␊ + AA␊ + ==␊ ␊ - Text \`\` text \`\`\`\` text \`\`\`\`\`\` text␊ + {MD025:59}␊ ␊ - Text \`\` text inline {MD033} text␊ + AA␊ + --␊ ␊ - Text \`\`text text\`\` text␊ + BB␊ + --␊ ␊ - Text␊ + CC␊ + --␊ ␊ - Text inline {MD033} text␊ - text Description text {MD033}␊ + BB␊ + --␊ ␊ - Text␊ + {MD024:73}␊ ␊ - is an email autolink.␊ + BB␊ + ==␊ ␊ - Another email autolink: .␊ + {MD025:78}␊ ␊ - Text␊ + BB␊ + --␊ ␊ - is an HTML element. {MD033}␊ + ## AAA ##␊ ␊ - But is not an autolink or HTML element.␊ - And neither is .␊ - Nor <123abc>.␊ + ### BBB ###␊ ␊ - Text␊ + ## BBB ##␊ ␊ -
␊ + ### BBB ###␊ ␊ - {MD033:109}␊ + ## BBB ##␊ ␊ -
␊ + {MD024:94}␊ ␊ - - Item␊ -
␊ + ␊ + `, + } + +## heading_duplicate_content.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: 'Heading 1', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Multiple headings with the same content', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', + ruleNames: [ + 'MD024', + 'no-duplicate-heading', + ], + }, + { + errorContext: 'Heading 2', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Multiple headings with the same content', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', + ruleNames: [ + 'MD024', + 'no-duplicate-heading', + ], + }, + ], + fixed: `# Heading 1␊ ␊ - {MD033:116}␊ + ## Heading 2␊ ␊ - ␊ + ## Heading 1␊ ␊ - {MD033:120}␊ + ### Heading 2␊ ␊ - Text text.␊ + ## Heading 3␊ ␊ - ␊ + {MD024:5} {MD024:7}␊ `, } -## hugo-quickstart-example-blank.md +## heading_duplicate_content_different_nesting.md > Snapshot 1 { errors: [], - fixed: `+++␊ - date = "2016-02-14T16:11:58+05:30"␊ - draft = true␊ - title = "Good to Great Book Review"␊ + fixed: `# Change log␊ ␊ - +++␊ + ## 2.0.0␊ ␊ - # Heading 1␊ + ### Bug fixes␊ + ␊ + ### Features␊ + ␊ + ## 1.0.0␊ + ␊ + ### Bug fixes␊ ␊ ␊ `, } -## hugo-quickstart-example-clean.md +## heading_duplicate_content_no_different_nesting.md > Snapshot 1 { - errors: [], - fixed: `+++␊ - date = "2016-02-14T16:11:58+05:30"␊ - draft = true␊ - title = "Good to Great Book Review"␊ + errors: [ + { + errorContext: 'Bug fixes', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 11, + ruleDescription: 'Multiple headings with the same content', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md', + ruleNames: [ + 'MD024', + 'no-duplicate-heading', + ], + }, + ], + fixed: `# Change log␊ ␊ - +++␊ - # Heading 1␊ + ## 2.0.0␊ ␊ - ␊ + ### Bug fixes␊ + ␊ + ### Features␊ + ␊ + ## 1.0.0␊ + ␊ + ### Bug fixes␊ + ␊ + {MD024:11}␊ `, } -## hugo-quickstart-example-json.md +## heading_multiple_toplevel.md > Snapshot 1 { errors: [ { - errorContext: 'Heading {MD025}', + errorContext: 'Heading 2 {MD025}', errorDetail: null, errorRange: null, fixInfo: null, - lineNumber: 13, + lineNumber: 3, ruleDescription: 'Multiple top-level headings in the same document', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ @@ -16983,328 +15333,307 @@ Generated by [AVA](https://avajs.dev). ], }, ], - fixed: `{␊ - "title": "Another Hugo Post",␊ - "description": "Nothing special, but one post is boring.",␊ - "date": "2014-09-02",␊ - "categories": [ "example", "configuration" ],␊ - "tags": [␊ - "example",␊ - "hugo",␊ - "toml"␊ - ],␊ - }␊ + fixed: `# Heading 1␊ ␊ - # Heading {MD025}␊ + # Heading 2 {MD025}␊ + ␊ +

␊ + # Not heading␊ +

␊ + ␊ + ␊ `, } -## ignore-comments.md +## heading_mutliple_h1_no_toplevel.md > Snapshot 1 { - errors: [ - { - errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 1', - errorRange: [ - 30, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 30, - }, - lineNumber: 29, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + errors: [], + fixed: `Some introductory text␊ + ␊ + # Heading 1␊ + ␊ + # Heading 2␊ + ␊ + ␊ + `, + } + +## heading_trailing_punctuation.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Punctuation: \' .\'', + errorRange: [ + 19, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 19, + }, + lineNumber: 3, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD026', + 'no-trailing-punctuation', ], }, { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 1', + errorDetail: 'Punctuation: \' ,\'', errorRange: [ - 14, - 1, + 19, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 14, + deleteCount: 2, + editColumn: 19, }, - lineNumber: 39, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 5, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD026', + 'no-trailing-punctuation', ], }, { errorContext: null, - errorDetail: 'Column: 5', + errorDetail: 'Punctuation: \' ;\'', errorRange: [ - 5, - 1, + 19, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', + deleteCount: 2, + editColumn: 19, }, - lineNumber: 3, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 7, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD026', + 'no-trailing-punctuation', ], }, { errorContext: null, - errorDetail: 'Column: 5', + errorDetail: 'Punctuation: \' :\'', errorRange: [ - 5, - 1, + 19, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', + deleteCount: 2, + editColumn: 19, }, - lineNumber: 5, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 9, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD026', + 'no-trailing-punctuation', ], }, { errorContext: null, - errorDetail: 'Column: 10', + errorDetail: 'Punctuation: \' !\'', errorRange: [ - 10, + 19, 2, ], fixInfo: { deleteCount: 2, - editColumn: 10, - insertText: ' ', + editColumn: 19, }, - lineNumber: 5, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 11, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD026', + 'no-trailing-punctuation', ], }, { errorContext: null, - errorDetail: 'Column: 16', + errorDetail: 'Punctuation: \' 。\'', errorRange: [ - 16, - 3, + 30, + 2, ], fixInfo: { - deleteCount: 3, - editColumn: 16, - insertText: ' ', + deleteCount: 2, + editColumn: 30, }, - lineNumber: 5, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 15, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD026', + 'no-trailing-punctuation', ], }, { errorContext: null, - errorDetail: 'Column: 5', + errorDetail: 'Punctuation: \' ,\'', errorRange: [ - 5, - 1, + 30, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', + deleteCount: 2, + editColumn: 30, }, - lineNumber: 22, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 17, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD026', + 'no-trailing-punctuation', ], }, { errorContext: null, - errorDetail: 'Column: 5', + errorDetail: 'Punctuation: \' ;\'', errorRange: [ - 5, - 1, + 30, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', + deleteCount: 2, + editColumn: 30, }, - lineNumber: 24, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 19, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD026', + 'no-trailing-punctuation', ], }, - ], - fixed: `# ignore-comments.md␊ - ␊ - Hard tab {MD010}␊ - ␊ - Hard tabs hard tabs {MD010}␊ - ␊ - ␊ - ␊ - ␊ - ␊ - ␊ - ␊ - ␊ - ␊ - Text comment␊ - Hard tab {MD010}␊ - --> text␊ - ␊ - Text␊ - ␊ - Text {MD009}␊ - ␊ - Text␊ - ␊ - Text␊ - ␊ - Text {MD009}␊ - ␊ - Text␊ - ␊ - ␊ - ␊ - Hard tab␊ - `, - } - -## ignore-html-block.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Element: style', + errorDetail: 'Punctuation: \' :\'', errorRange: [ - 1, - 7, + 30, + 2, ], - fixInfo: null, - lineNumber: 3, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 2, + editColumn: 30, + }, + lineNumber: 21, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD026', + 'no-trailing-punctuation', ], }, - ], - fixed: `# ignore-html-block.md␊ - ␊ - ␊ - `, - } - -## inconsistent_bullet_indent_same_level.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: 4; Actual: 2', + errorDetail: 'Punctuation: \' !\'', errorRange: [ - 1, - 4, + 30, + 2, ], - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 2, + editColumn: 30, + }, + lineNumber: 23, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD026', + 'no-trailing-punctuation', ], }, { errorContext: null, - errorDetail: 'Expected: 2; Actual: 4', + errorDetail: 'Punctuation: \' !\'', errorRange: [ - 1, - 6, + 29, + 2, ], fixInfo: { deleteCount: 2, - editColumn: 1, - insertText: '', + editColumn: 29, }, - lineNumber: 4, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 29, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD026', + 'no-trailing-punctuation', + ], + }, + { + errorContext: null, + errorDetail: 'Punctuation: \' !\'', + errorRange: [ + 30, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 30, + }, + lineNumber: 31, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + ruleNames: [ + 'MD026', + 'no-trailing-punctuation', ], }, ], - fixed: `# Inconsistent Bullet Indent Same Level␊ + fixed: `# Heading Trailing Punctuation␊ ␊ - * Item␊ - * Item {MD007}␊ - * Item {MD005}␊ - * Item␊ + ## Heading {MD026}␊ + ␊ + ## Heading {MD026}␊ + ␊ + ## Heading {MD026}␊ + ␊ + ## Heading {MD026}␊ + ␊ + ## Heading {MD026}␊ + ␊ + ## Heading?␊ + ␊ + ## Heading/Full-Width {MD026}␊ + ␊ + ## Heading/Full-Width {MD026}␊ + ␊ + ## Heading/Full-Width {MD026}␊ + ␊ + ## Heading/Full-Width {MD026}␊ + ␊ + ## Heading/Full-Width {MD026}␊ + ␊ + ## Heading/Full-Width?␊ + ␊ + ␊ + ␊ + ## Heading {MD026} alternate ##␊ + ␊ + Heading {MD026} alternate too␊ + -------------------------------␊ `, } -## inconsistent_bullet_styles_asterisk.md +## heading_trailing_punctuation_customized.md > Snapshot 1 @@ -17312,533 +15641,757 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: plus', + errorDetail: 'Punctuation: \'.\'', errorRange: [ + 20, 1, - 4, ], fixInfo: { deleteCount: 1, - editColumn: 3, - insertText: '*', + editColumn: 20, }, - lineNumber: 4, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 1, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD026', + 'no-trailing-punctuation', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: dash', + errorDetail: 'Punctuation: \',\'', errorRange: [ + 21, 1, - 4, ], fixInfo: { deleteCount: 1, - editColumn: 3, - insertText: '*', + editColumn: 21, }, - lineNumber: 5, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 3, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD026', + 'no-trailing-punctuation', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: plus', + errorDetail: 'Punctuation: \':\'', errorRange: [ + 21, 1, - 6, ], fixInfo: { deleteCount: 1, - editColumn: 5, - insertText: '*', + editColumn: 21, }, - lineNumber: 9, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 7, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD026', + 'no-trailing-punctuation', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: dash', + errorDetail: 'Punctuation: \';\'', errorRange: [ + 21, 1, - 6, ], fixInfo: { deleteCount: 1, - editColumn: 5, - insertText: '*', + editColumn: 21, }, - lineNumber: 10, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 9, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD026', + 'no-trailing-punctuation', ], }, - ], - fixed: `# inconsistent_bullet_styles_asterisk␊ - ␊ - * Item␊ - * Item {MD004}␊ - * Item {MD004}␊ - * Item␊ - ␊ - > * Item␊ - > * Item {MD004}␊ - > * Item {MD004}␊ - > * Item␊ - `, - } - -## inconsistent_bullet_styles_dash.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: dash; Actual: asterisk', + errorDetail: 'Punctuation: \'?\'', errorRange: [ + 21, 1, - 4, ], fixInfo: { deleteCount: 1, - editColumn: 3, - insertText: '-', + editColumn: 21, }, - lineNumber: 4, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 11, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD026', + 'no-trailing-punctuation', ], }, { errorContext: null, - errorDetail: 'Expected: dash; Actual: plus', + errorDetail: 'Punctuation: \']\'', errorRange: [ + 21, 1, - 4, ], fixInfo: { deleteCount: 1, - editColumn: 3, - insertText: '-', + editColumn: 21, }, - lineNumber: 5, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 13, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD026', + 'no-trailing-punctuation', ], }, - { - errorContext: null, - errorDetail: 'Expected: dash; Actual: asterisk', - errorRange: [ - 1, - 6, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: '-', + ], + fixed: `# Heading 1 {MD026}␊ + ␊ + ## Heading 2 {MD026}␊ + ␊ + ## Heading 3!␊ + ␊ + ## Heading 4 {MD026}␊ + ␊ + ## Heading 5 {MD026}␊ + ␊ + ## Heading 6 {MD026}␊ + ␊ + ## Heading 7 {MD026}␊ + ␊ + The rule has been customized to allow exclamation point while disallowing␊ + everything else.␊ + ␊ + ␊ + `, + } + +## heading_trailing_punctuation_empty.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Heading Trailing Punctuation␊ + ␊ + ## Heading .␊ + ␊ + ## Heading ,␊ + ␊ + ## Heading ;␊ + ␊ + ## Heading :␊ + ␊ + ## Heading !␊ + ␊ + ## Heading ?␊ + ␊ + ␊ + `, + } + +## headings-with-emoji.md + +> Snapshot 1 + + { + errors: [], + fixed: `# headings-with-emoji␊ + ␊ + ## Known Issues :bug:␊ + ␊ + ## Love :heartpulse:␊ + ␊ + ## :tada:␊ + ␊ + ## :checkered_flag:␊ + ␊ + ## :clock930:␊ + ␊ + ## :t-rex:␊ + ␊ + ## Boba:bubble_tea:␊ + ␊ + ␊ + ␊ + ## Fix the :bug: ##␊ + ␊ + Another :heartpulse:␊ + --------------------␊ + ␊ + :eyes:␊ + ------␊ + `, + } + +## headings-with-html-entities.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Punctuation: \';\'', + errorRange: [ + 31, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 31, }, - lineNumber: 9, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 24, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD026', + 'no-trailing-punctuation', ], }, { errorContext: null, - errorDetail: 'Expected: dash; Actual: plus', + errorDetail: 'Punctuation: \';\'', errorRange: [ + 34, 1, - 6, ], fixInfo: { deleteCount: 1, - editColumn: 5, - insertText: '-', + editColumn: 34, }, - lineNumber: 10, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 26, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD026', + 'no-trailing-punctuation', + ], + }, + { + errorContext: null, + errorDetail: 'Punctuation: \';\'', + errorRange: [ + 31, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 31, + }, + lineNumber: 28, + ruleDescription: 'Trailing punctuation in heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', + ruleNames: [ + 'MD026', + 'no-trailing-punctuation', ], }, ], - fixed: `# inconsistent_bullet_styles_dash␊ + fixed: `# headings-with-html-entities␊ ␊ - - Item␊ - - Item {MD004}␊ - - Item {MD004}␊ - - Item␊ + ␊ ␊ - > - Item␊ - > - Item {MD004}␊ - > - Item {MD004}␊ - > - Item␊ + ## Copyright © 2000␊ + ␊ + ## Copyright 2001 ©␊ + ␊ + ## Copyright 2002©␊ + ␊ + ## Copyright 2003 ©␊ + ␊ + ## Copyright 2004 ©␊ + ␊ + ## Copyright 2004 ©␊ + ␊ + ## Copyright 2005 ©␊ + ␊ + ## Copyright 2006 © ##␊ + ␊ + Copyright 2007 ©␊ + ---------------------␊ + ␊ + ## Copyright 2008 {MD026} copy␊ + ␊ + ## Copyright 2009 {MD026} #x000A9␊ + ␊ + ## Copyright 2010 {MD026} #169␊ `, } -## inconsistent_bullet_styles_plus.md +## headings-with-invalid-spaces.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorContext: '## Non-breaking space {MD018}', + errorDetail: null, errorRange: [ 1, - 4, + 3, ], fixInfo: { - deleteCount: 1, editColumn: 3, - insertText: '+', + insertText: ' ', }, - lineNumber: 4, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 7, + ruleDescription: 'No space after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD018', + 'no-missing-space-atx', ], }, { - errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorContext: '##  Extra non-breaking space {...', + errorDetail: null, errorRange: [ 1, - 4, + 3, ], fixInfo: { - deleteCount: 1, editColumn: 3, - insertText: '+', + insertText: ' ', }, - lineNumber: 5, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 25, + ruleDescription: 'No space after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD018', + 'no-missing-space-atx', ], }, { - errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorContext: '## Extra normal space {MD019}', + errorDetail: null, errorRange: [ + 4, 1, - 6, ], fixInfo: { deleteCount: 1, - editColumn: 5, - insertText: '+', + editColumn: 4, }, - lineNumber: 9, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 23, + ruleDescription: 'Multiple spaces after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD019', + 'no-multiple-space-atx', ], }, { - errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorContext: '## Extra Tab {MD019}', + errorDetail: null, errorRange: [ + 4, 1, - 6, ], fixInfo: { deleteCount: 1, - editColumn: 5, - insertText: '+', + editColumn: 4, }, - lineNumber: 10, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 27, + ruleDescription: 'Multiple spaces after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD019', + 'no-multiple-space-atx', ], }, - ], - fixed: `# inconsistent_bullet_styles_plus␊ - ␊ - + Item␊ - + Item {MD004}␊ - + Item {MD004}␊ - + Item␊ - ␊ - > + Item␊ - > + Item {MD004}␊ - > + Item {MD004}␊ - > + Item␊ - `, - } - -## incorrect_bullet_style_asterisk.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: dash', + errorContext: '## Non-breaking space (left) {...', + errorDetail: null, errorRange: [ 1, - 4, + 3, ], fixInfo: { - deleteCount: 1, - editColumn: 3, - insertText: '*', + deleteCount: 39, + editColumn: 1, + insertText: '##  Non-breaking space (left) {MD020} ##', }, - lineNumber: 4, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 15, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD020', + 'no-missing-space-closed-atx', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: plus', + errorContext: '...aking space (right) {MD020} ##', + errorDetail: null, + errorRange: [ + 38, + 3, + ], + fixInfo: { + deleteCount: 40, + editColumn: 1, + insertText: '## Non-breaking space (right) {MD020}  ##', + }, + lineNumber: 19, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + ruleNames: [ + 'MD020', + 'no-missing-space-closed-atx', + ], + }, + { + errorContext: '##  Extra non-breaking space (...', + errorDetail: null, errorRange: [ 1, - 4, + 3, ], fixInfo: { - deleteCount: 1, - editColumn: 3, - insertText: '*', + deleteCount: 46, + editColumn: 1, + insertText: '##   Extra non-breaking space (left) {MD020} ##', }, - lineNumber: 5, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 31, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD020', + 'no-missing-space-closed-atx', ], }, - ], - fixed: `# incorrect_bullet_style_asterisk␊ - ␊ - * Item␊ - * Item {MD004}␊ - * Item {MD004}␊ - ␊ - ␊ - `, - } - -## incorrect_bullet_style_dash.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Expected: dash; Actual: asterisk', + errorContext: '...king space (right) {MD020}  ##', + errorDetail: null, + errorRange: [ + 45, + 3, + ], + fixInfo: { + deleteCount: 47, + editColumn: 1, + insertText: '## Extra non-breaking space (right) {MD020}   ##', + }, + lineNumber: 35, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + ruleNames: [ + 'MD020', + 'no-missing-space-closed-atx', + ], + }, + { + errorContext: '## Extra Normal space (both) ...', + errorDetail: null, errorRange: [ + 4, 1, - 2, ], fixInfo: { deleteCount: 1, - editColumn: 1, - insertText: '-', + editColumn: 4, }, - lineNumber: 3, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 29, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD021', + 'no-multiple-space-closed-atx', ], }, { - errorContext: null, - errorDetail: 'Expected: dash; Actual: plus', + errorContext: '...ormal space (both) {MD021} ##', + errorDetail: null, errorRange: [ + 39, 1, - 4, ], fixInfo: { deleteCount: 1, - editColumn: 3, - insertText: '-', + editColumn: 39, }, - lineNumber: 5, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 29, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD021', + 'no-multiple-space-closed-atx', ], }, - ], - fixed: `# incorrect_bullet_style_dash␊ - ␊ - - Item {MD004}␊ - - Item␊ - - Item {MD004}␊ - ␊ - ␊ - `, - } - -## incorrect_bullet_style_plus.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorContext: '## Extra tab (left) {MD021} #...', + errorDetail: null, errorRange: [ + 4, 1, - 2, ], fixInfo: { deleteCount: 1, - editColumn: 1, - insertText: '+', + editColumn: 4, }, - lineNumber: 3, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 33, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD021', + 'no-multiple-space-closed-atx', ], }, { - errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorContext: '... Extra tab (right) {MD021} ##', + errorDetail: null, errorRange: [ + 30, 1, - 4, ], fixInfo: { deleteCount: 1, - editColumn: 3, - insertText: '+', + editColumn: 30, }, - lineNumber: 4, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 37, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD021', + 'no-multiple-space-closed-atx', ], }, ], - fixed: `# incorrect_bullet_style_plus␊ + fixed: `# Headings with invalid spaces␊ ␊ - + Item {MD004}␊ - + Item {MD004}␊ - + Item␊ + ## Normal space␊ ␊ - ␊ - `, - } - -## incorrect_heading_atx.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Expected: atx; Actual: atx_closed', - errorRange: null, - fixInfo: null, - lineNumber: 1, - ruleDescription: 'Heading style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', + ##  Normal outer non-breaking inner space␊ + ␊ + ##  Non-breaking space {MD018}␊ + ␊ + ## Tab␊ + ␊ + ## Normal space (both) ##␊ + ␊ + ##  Normal outer non-breaking inner space (both)  ##␊ + ␊ + ##  Non-breaking space (left) {MD020} ##␊ + ␊ + ## Tab (left) ##␊ + ␊ + ## Non-breaking space (right) {MD020}  ##␊ + ␊ + ## Tab (right) ##␊ + ␊ + ## Extra normal space {MD019}␊ + ␊ + ##   Extra non-breaking space {MD018}␊ + ␊ + ## Extra Tab {MD019}␊ + ␊ + ## Extra Normal space (both) {MD021} ##␊ + ␊ + ##   Extra non-breaking space (left) {MD020} ##␊ + ␊ + ## Extra tab (left) {MD021} ##␊ + ␊ + ## Extra non-breaking space (right) {MD020}   ##␊ + ␊ + ## Extra tab (right) {MD021} ##␊ + ␊ + ␊ + `, + } + +## headings-without-content.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: '#', + errorDetail: null, + errorRange: [ + 3, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 3, + }, + lineNumber: 10, + ruleDescription: 'Multiple spaces after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', ruleNames: [ - 'MD003', - 'heading-style', + 'MD019', + 'no-multiple-space-atx', + ], + }, + { + errorContext: '#', + errorDetail: null, + errorRange: [ + 3, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 3, + }, + lineNumber: 12, + ruleDescription: 'Multiple spaces after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', + ruleNames: [ + 'MD019', + 'no-multiple-space-atx', + ], + }, + { + errorContext: '##', + errorDetail: null, + errorRange: [ + 4, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 4, + }, + lineNumber: 18, + ruleDescription: 'Multiple spaces after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', + ruleNames: [ + 'MD019', + 'no-multiple-space-atx', + ], + }, + { + errorContext: '##', + errorDetail: null, + errorRange: [ + 4, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 4, + }, + lineNumber: 20, + ruleDescription: 'Multiple spaces after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', + ruleNames: [ + 'MD019', + 'no-multiple-space-atx', + ], + }, + ], + fixed: `# Headings Without Content␊ + ␊ + ␊ + ␊ + ␊ + #␊ + ␊ + # ␊ + ␊ + # ␊ + ␊ + # ␊ + ␊ + ##␊ + ␊ + ## ␊ + ␊ + ## ␊ + ␊ + ## ␊ + ␊ + {MD019:10} {MD019:12} {MD019:18} {MD019:20}␊ + `, + } + +## headings_bad.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Expected: h2; Actual: h3', + 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/md001.md', + ruleNames: [ + 'MD001', + 'heading-increment', ], }, { errorContext: null, - errorDetail: 'Expected: atx; Actual: setext', + errorDetail: 'Expected: h3; Actual: h4', errorRange: null, fixInfo: null, - lineNumber: 5, - ruleDescription: 'Heading style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', + lineNumber: 7, + ruleDescription: 'Heading levels should only increment by one level at a time', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md', ruleNames: [ - 'MD003', - 'heading-style', + 'MD001', + 'heading-increment', ], }, ], - fixed: `# Heading 1 {MD003} #␊ + fixed: `# Heading␊ + ␊ + ### Heading 3 {MD001}␊ ␊ ## Heading 2␊ ␊ - Heading 3 {MD003}␊ - -----------------␊ + #### Heading 4 {MD001}␊ ␊ - ␊ +

␊ + ###### Not heading␊ +

␊ + ␊ + ␊ `, } -## incorrect_heading_atx_closed.md +## headings_good.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Heading 1␊ + ␊ + ## Heading 2␊ + ␊ + ## Heading 3␊ + `, + } + +## headings_good_setext_with_atx.md > Snapshot 1 @@ -17846,10 +16399,10 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: atx_closed; Actual: atx', + errorDetail: 'Expected: setext; Actual: atx', errorRange: null, fixInfo: null, - lineNumber: 3, + lineNumber: 7, ruleDescription: 'Heading style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', ruleNames: [ @@ -17859,10 +16412,10 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: atx_closed; Actual: setext', + errorDetail: 'Expected: atx; Actual: atx_closed', errorRange: null, fixInfo: null, - lineNumber: 5, + lineNumber: 11, ruleDescription: 'Heading style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', ruleNames: [ @@ -17871,22 +16424,27 @@ Generated by [AVA](https://avajs.dev). ], }, ], - fixed: `# Heading 1 #␊ + fixed: `Heading 1␊ + =========␊ + ␊ + Heading 2␊ + ---------␊ ␊ ## Heading 2 {MD003}␊ ␊ - Heading 3 {MD003}␊ - -----------------␊ + ### Heading 3␊ + ␊ + #### Heading 4 {MD003} ####␊ ␊ ␊ `, } -## incorrect_heading_setext.md +## headings_good_setext_with_atx_closed.md > Snapshot 1 @@ -17897,7 +16455,7 @@ Generated by [AVA](https://avajs.dev). errorDetail: 'Expected: setext; Actual: atx_closed', errorRange: null, fixInfo: null, - lineNumber: 1, + lineNumber: 7, ruleDescription: 'Heading style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', ruleNames: [ @@ -17907,10 +16465,10 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: setext; Actual: atx', + errorDetail: 'Expected: atx_closed; Actual: atx', errorRange: null, fixInfo: null, - lineNumber: 3, + lineNumber: 11, ruleDescription: 'Heading style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', ruleNames: [ @@ -17919,703 +16477,581 @@ Generated by [AVA](https://avajs.dev). ], }, ], - fixed: `# Heading 1 {MD003} #␊ - ␊ - ## Heading 2 {MD003}␊ + fixed: `Heading 1␊ + =========␊ ␊ - Heading 3␊ + Heading 2␊ ---------␊ ␊ + ## Heading 2 {MD003} ##␊ + ␊ + ### Heading 3 ###␊ + ␊ + #### Heading 4 {MD003}␊ + ␊ ␊ `, } -## inline-capture-restore.md +## headings_good_with_issue_numbers.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Heading 1␊ + ␊ + ## Heading 2␊ + ␊ + See the following issues:␊ + ␊ + * #1234␊ + * #5678 (and related)␊ + * #5678␊ + * #9101␊ + ␊ + ## Heading 3␊ + `, + } + +## headings_surrounding_space_atx.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], + errorContext: '## Heading 2 {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', + insertText: `␊ + `, + lineNumber: 4, }, - lineNumber: 52, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 3, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], + errorContext: '## Heading 3 {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', + insertText: `␊ + `, }, - lineNumber: 64, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 5, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], + errorContext: '## Heading 3 {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', + insertText: `␊ + `, + lineNumber: 6, }, - lineNumber: 70, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 5, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], + errorContext: '## Heading 4 {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', + insertText: `␊ + `, }, - lineNumber: 76, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 7, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, + ], + fixed: `# Heading 1␊ + ␊ + ## Heading 2 {MD022}␊ + ␊ + Some text␊ + ␊ + ## Heading 3 {MD022}␊ + ␊ + Some text␊ + ␊ + ## Heading 4 {MD022}␊ + ␊ + ## Heading 5␊ + ␊ + * This shouldn't trigger MD022, but did because of some bug where we tried to␊ + #catch headings that kramdown didn't parse correctly.␊ + `, + } + +## headings_surrounding_space_setext.md + +> Snapshot 1 + + { + errors: [ { - errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], + errorContext: 'Heading 2 {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', + insertText: `␊ + `, + lineNumber: 6, }, - lineNumber: 82, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 4, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], + errorContext: 'Some text {MD022} {MD025}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', + insertText: `␊ + `, }, - lineNumber: 88, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 6, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], + errorContext: 'Some text {MD022} {MD025}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', + insertText: `␊ + `, + lineNumber: 9, }, - lineNumber: 94, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 6, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], + errorContext: 'Some text {MD022} {MD025}', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', + insertText: `␊ + `, }, - lineNumber: 104, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 9, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 116, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', - ruleNames: [ - 'MD010', - 'no-hard-tabs', - ], - }, - { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 9, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 10, - }, - lineNumber: 4, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', - ruleNames: [ - 'MD037', - 'no-space-in-emphasis', - ], - }, - { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 9, - 3, - ], + errorContext: 'Some text {MD022} {MD025}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 10, + insertText: `␊ + `, + lineNumber: 12, }, - lineNumber: 14, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 9, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: 'n *', + errorContext: 'Some text {MD022} {MD025} Head...', errorDetail: null, - errorRange: [ - 9, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 10, - }, - lineNumber: 30, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + errorRange: null, + fixInfo: null, + lineNumber: 6, + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD025', + 'single-title', + 'single-h1', ], }, { - errorContext: 'n *', + errorContext: 'Some text {MD022} {MD025} Head...', errorDetail: null, - errorRange: [ - 9, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 10, - }, - lineNumber: 83, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + errorRange: null, + fixInfo: null, + lineNumber: 9, + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD025', + 'single-title', + 'single-h1', ], }, + ], + fixed: `Heading 1␊ + =========␊ + ␊ + Heading 2 {MD022}␊ + -----------------␊ + ␊ + Some text {MD022} {MD025}␊ + Heading 3␊ + =================␊ + ␊ + Some text {MD022} {MD025}␊ + Heading 4␊ + =================␊ + ␊ + Some text␊ + ␊ + Heading 5␊ + ---------␊ + `, + } + +## headings_with_spaces_at_the_beginning.md + +> Snapshot 1 + + { + errors: [ { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 9, - 3, - ], + errorContext: '# Test {MD022} Valid heading for CommonMark (see section 5.2)', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 10, + insertText: `␊ + `, }, - lineNumber: 117, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 19, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: '`in `', - errorDetail: null, - errorRange: [ - 7, - 5, - ], + errorContext: '# Test {MD022} Valid heading for CommonMark (see section 5.2)', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 3, - editColumn: 8, - insertText: 'in', + insertText: `␊ + `, + lineNumber: 20, }, - lineNumber: 5, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 19, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: '`in `', - errorDetail: null, - errorRange: [ - 7, - 5, - ], + errorContext: '# Test {MD022} {MD023} Also valid heading for CommonMark', + errorDetail: 'Expected: 1; Actual: 0; Above', + errorRange: null, fixInfo: { - deleteCount: 3, - editColumn: 8, - insertText: 'in', + insertText: `␊ + `, }, - lineNumber: 15, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 20, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD022', + 'blanks-around-headings', ], }, { - errorContext: '`in `', + errorContext: ' # Heading 1 {MD023}', errorDetail: null, errorRange: [ - 7, - 5, + 1, + 1, ], fixInfo: { - deleteCount: 3, - editColumn: 8, - insertText: 'in', + deleteCount: 1, + editColumn: 1, }, - lineNumber: 21, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 3, + ruleDescription: 'Headings must start at the beginning of the line', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD023', + 'heading-start-left', ], }, { - errorContext: '`in `', + errorContext: ' Setext style fully indented {...', errorDetail: null, errorRange: [ - 7, - 5, + 1, + 1, ], fixInfo: { - deleteCount: 3, - editColumn: 8, - insertText: 'in', + deleteCount: 1, + editColumn: 1, }, - lineNumber: 31, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 5, + ruleDescription: 'Headings must start at the beginning of the line', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD023', + 'heading-start-left', ], }, { - errorContext: '`in `', + errorContext: ' Setext style title only inden...', errorDetail: null, errorRange: [ - 7, - 5, + 1, + 1, ], fixInfo: { - deleteCount: 3, - editColumn: 8, - insertText: 'in', + deleteCount: 1, + editColumn: 1, }, - lineNumber: 37, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 8, + ruleDescription: 'Headings must start at the beginning of the line', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD023', + 'heading-start-left', ], }, { - errorContext: '`in `', + errorContext: ' # Test {MD022} {MD023} Als...', errorDetail: null, errorRange: [ - 7, - 5, + 3, + 2, ], fixInfo: { - deleteCount: 3, - editColumn: 8, - insertText: 'in', + deleteCount: 2, + editColumn: 3, }, - lineNumber: 48, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 20, + ruleDescription: 'Headings must start at the beginning of the line', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD023', + 'heading-start-left', ], }, + ], + fixed: `Some text␊ + ␊ + # Heading 1 {MD023}␊ + ␊ + Setext style fully indented {MD023}␊ + ===================================␊ + ␊ + Setext style title only indented {MD023}␊ + =========================================␊ + ␊ + * Test situations in which MD023 shouldn't be triggered.␊ + ␊ + \`\`\`rb␊ + # This shouldn't trigger MD023 as it is a code comment.␊ + foo = "And here is some code"␊ + \`\`\`␊ + ␊ + * This is another case where MD023 shouldn't be triggered␊ + ␊ + # Test {MD022} Valid heading for CommonMark (see section 5.2)␊ + ␊ + # Test {MD022} {MD023} Also valid heading for CommonMark␊ + ␊ + ␊ + `, + } + +## hr-in-blockquote-dash.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '`in `', - errorDetail: null, - errorRange: [ - 7, - 5, - ], - fixInfo: { - deleteCount: 3, - editColumn: 8, - insertText: 'in', - }, - lineNumber: 54, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + errorContext: null, + errorDetail: 'Expected: ---; Actual: ***', + errorRange: null, + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD035', + 'hr-style', ], }, { - errorContext: '`in `', - errorDetail: null, - errorRange: [ - 7, - 5, - ], - fixInfo: { - deleteCount: 3, - editColumn: 8, - insertText: 'in', - }, - lineNumber: 60, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + errorContext: null, + errorDetail: 'Expected: ---; Actual: ___', + errorRange: null, + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD035', + 'hr-style', ], }, { - errorContext: '`in `', - errorDetail: null, - errorRange: [ - 7, - 5, - ], - fixInfo: { - deleteCount: 3, - editColumn: 8, - insertText: 'in', - }, - lineNumber: 66, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + errorContext: null, + errorDetail: 'Expected: ---; Actual: ***', + errorRange: null, + fixInfo: null, + lineNumber: 15, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD035', + 'hr-style', ], }, { - errorContext: '`in `', - errorDetail: null, - errorRange: [ - 7, - 5, - ], - fixInfo: { - deleteCount: 3, - editColumn: 8, - insertText: 'in', - }, - lineNumber: 72, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + errorContext: null, + errorDetail: 'Expected: ---; Actual: ___', + errorRange: null, + fixInfo: null, + lineNumber: 17, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD035', + 'hr-style', ], }, { - errorContext: '`in `', - errorDetail: null, - errorRange: [ - 7, - 5, - ], - fixInfo: { - deleteCount: 3, - editColumn: 8, - insertText: 'in', - }, - lineNumber: 78, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + errorContext: null, + errorDetail: 'Expected: ---; Actual: - - -', + errorRange: null, + fixInfo: null, + lineNumber: 23, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD035', + 'hr-style', ], }, { - errorContext: '`in `', - errorDetail: null, - errorRange: [ - 7, - 5, - ], - fixInfo: { - deleteCount: 3, - editColumn: 8, - insertText: 'in', - }, - lineNumber: 84, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + errorContext: null, + errorDetail: 'Expected: ---; Actual: ***', + errorRange: null, + fixInfo: null, + lineNumber: 31, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD035', + 'hr-style', ], }, { - errorContext: '`in `', - errorDetail: null, - errorRange: [ - 7, - 5, - ], - fixInfo: { - deleteCount: 3, - editColumn: 8, - insertText: 'in', - }, - lineNumber: 90, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + errorContext: null, + errorDetail: 'Expected: ---; Actual: ___', + errorRange: null, + fixInfo: null, + lineNumber: 33, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD035', + 'hr-style', ], }, ], - fixed: `# Inline Capture/Restore␊ + fixed: `# HR in Blockquote, Dash␊ ␊ - hard tab␊ - space *in* emphasis {MD037}␊ - space \`in\` code {MD038}␊ + ---␊ ␊ - ␊ - hard tab␊ - space *in * emphasis␊ - space \`in \` code␊ - ␊ + ***␊ ␊ - hard tab␊ - space *in* emphasis {MD037}␊ - space \`in\` code {MD038}␊ - ␊ - ␊ - ␊ - hard tab␊ - space *in * emphasis␊ - space \`in\` code {MD038}␊ - ␊ - ␊ - hard tab␊ - space *in * emphasis␊ - space \`in \` code␊ - ␊ - ␊ - hard tab␊ - space *in* emphasis {MD037}␊ - space \`in\` code {MD038}␊ - ␊ - ␊ - ␊ - hard tab␊ - space *in * emphasis␊ - space \`in\` code {MD038}␊ - ␊ - ␊ - ␊ - hard tab␊ - space *in * emphasis␊ - space \`in \` code␊ - ␊ - ␊ - hard tab␊ - space *in * emphasis␊ - space \`in\` code {MD038}␊ - ␊ - ␊ - ␊ - hard tab {MD010}␊ - space *in * emphasis␊ - space \`in\` code {MD038}␊ - ␊ - ␊ - ␊ - hard tab␊ - space *in * emphasis␊ - space \`in\` code {MD038}␊ - ␊ - ␊ - ␊ - hard tab {MD010}␊ - space *in * emphasis␊ - space \`in\` code {MD038}␊ - ␊ - ␊ - ␊ - hard tab {MD010}␊ - space *in * emphasis␊ - space \`in\` code {MD038}␊ - ␊ - ␊ - ␊ - hard tab {MD010}␊ - space *in * emphasis␊ - space \`in\` code {MD038}␊ - ␊ - ␊ - ␊ - hard tab {MD010}␊ - space *in* emphasis {MD037}␊ - space \`in\` code {MD038}␊ - ␊ - ␊ - ␊ - hard tab {MD010}␊ - space *in * emphasis␊ - space \`in\` code {MD038}␊ - ␊ - ␊ - ␊ - hard tab {MD010}␊ - space *in * emphasis␊ - space \`in \` code␊ - ␊ - ␊ - hard tab␊ - space *in * emphasis␊ - space \`in \` code␊ - ␊ - ␊ - hard tab {MD010}␊ - space *in * emphasis␊ - space \`in \` code␊ - ␊ - ␊ + ___␊ ␊ - hard tab␊ - space *in * emphasis␊ - space \`in \` code␊ + {MD035:5} {MD035:7}␊ ␊ - ␊ + > Text␊ + >␊ + > ---␊ + >␊ + > ***␊ + >␊ + > ___␊ + >␊ + > Text␊ ␊ - hard tab {MD010}␊ - space *in* emphasis {MD037}␊ - space \`in \` code␊ + {MD035:15} {MD035:17}␊ ␊ - ␊ - `, - } - -## inline-configure-file-invalid.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Inline Configure File Invalid␊ + - - -␊ ␊ - Not normally too long of a line, but it would have been from an inline config.␊ + > Text␊ + >␊ + > > Text␊ + > >␊ + > > ---␊ + > >␊ + > > ***␊ + > >␊ + > > ___␊ + > >␊ + > > Text␊ + >␊ + > Text␊ ␊ - ␊ + {MD035:23} {MD035:31} {MD035:33}␊ `, } -## inline-configure-file-multiple-instances.md +## hr-in-blockquote-star.md > Snapshot 1 @@ -18623,10 +17059,10 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: ---; Actual: ***', + errorDetail: 'Expected: ***; Actual: ___', errorRange: null, fixInfo: null, - lineNumber: 3, + lineNumber: 5, ruleDescription: 'Horizontal rule style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ @@ -18636,7 +17072,33 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: ---; Actual: ***', + errorDetail: 'Expected: ***; Actual: ---', + errorRange: null, + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: ***; Actual: ---', + errorRange: null, + fixInfo: null, + lineNumber: 13, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: ***; Actual: ___', errorRange: null, fixInfo: null, lineNumber: 17, @@ -18649,10 +17111,36 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: ---; Actual: ***', + errorDetail: 'Expected: ***; Actual: * * *', errorRange: null, fixInfo: null, - lineNumber: 30, + lineNumber: 23, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: ***; Actual: ---', + errorRange: null, + fixInfo: null, + lineNumber: 29, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: ***; Actual: ___', + errorRange: null, + fixInfo: null, + lineNumber: 33, ruleDescription: 'Horizontal rule style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ @@ -18661,43 +17149,49 @@ Generated by [AVA](https://avajs.dev). ], }, ], - fixed: `# Inline Configure File Multiple Instances␊ + fixed: `# HR in Blockquote, Star␊ ␊ ***␊ - {MD035:3}␊ ␊ - Trailing spaces: ␊ + ___␊ ␊ - ␊ + ---␊ ␊ - ***␊ - {MD035:17}␊ + {MD035:5} {MD035:7}␊ ␊ - Trailing spaces: ␊ + > Text␊ + >␊ + > ---␊ + >␊ + > ***␊ + >␊ + > ___␊ + >␊ + > Text␊ ␊ - ␊ + {MD035:13} {MD035:17}␊ ␊ - ***␊ - {MD035:30}␊ + * * *␊ ␊ - Trailing spaces: ␊ + > Text␊ + >␊ + > > Text␊ + > >␊ + > > ---␊ + > >␊ + > > ***␊ + > >␊ + > > ___␊ + > >␊ + > > Text␊ + >␊ + > Text␊ + ␊ + {MD035:23} {MD035:29} {MD035:33}␊ `, } -## inline-configure-file-multiple-lines.md +## hr-in-blockquote-under.md > Snapshot 1 @@ -18705,10 +17199,10 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: ---; Actual: ***', + errorDetail: 'Expected: ___; Actual: ---', errorRange: null, fixInfo: null, - lineNumber: 3, + lineNumber: 5, ruleDescription: 'Horizontal rule style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ @@ -18718,10 +17212,10 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: ---; Actual: ***', + errorDetail: 'Expected: ___; Actual: ***', errorRange: null, fixInfo: null, - lineNumber: 17, + lineNumber: 7, ruleDescription: 'Horizontal rule style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ @@ -18729,136 +17223,115 @@ Generated by [AVA](https://avajs.dev). 'hr-style', ], }, - ], - fixed: `# Inline Configure File Multiple Lines␊ - ␊ - ***␊ - {MD035:3}␊ - ␊ - Trailing spaces: ␊ - ␊ - ␊ - ␊ - ***␊ - {MD035:17}␊ - ␊ - Trailing spaces: ␊ - `, - } - -## inline-configure-file-single-line.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: 70; Actual: 78', - errorRange: [ - 71, - 8, - ], + errorDetail: 'Expected: ___; Actual: ---', + errorRange: null, fixInfo: null, - lineNumber: 3, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 13, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Expected: 70; Actual: 85', - errorRange: [ - 71, - 15, - ], + errorDetail: 'Expected: ___; Actual: ***', + errorRange: null, fixInfo: null, - lineNumber: 5, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 15, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD035', + 'hr-style', ], }, - ], - fixed: `# Inline Configure File Single Line␊ - ␊ - Not normally too long of a line, but it is here from an inline config. {MD013}␊ - ␊ - {MD013}␊ - `, - } - -## inline-configure-file-violations.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '* w', - errorDetail: null, - errorRange: [ - 10, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 11, - }, - lineNumber: 3, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + errorContext: null, + errorDetail: 'Expected: ___; Actual: _ _ _', + errorRange: null, + fixInfo: null, + lineNumber: 23, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'h *', - errorDetail: null, - errorRange: [ - 15, - 3, + errorContext: null, + errorDetail: 'Expected: ___; Actual: ---', + errorRange: null, + fixInfo: null, + lineNumber: 29, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', ], - fixInfo: { - deleteCount: 1, - editColumn: 16, - }, - lineNumber: 3, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + }, + { + errorContext: null, + errorDetail: 'Expected: ___; Actual: ***', + errorRange: null, + fixInfo: null, + lineNumber: 31, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, ], - fixed: `# Inline Configure File Violations␊ + fixed: `# HR in Blockquote, Under␊ ␊ - Emphasis *with* spaces {MD037}␊ + ___␊ ␊ - Trailing spaces: ␊ + ---␊ ␊ - ␊ + ***␊ + ␊ + {MD035:5} {MD035:7}␊ + ␊ + > Text␊ + >␊ + > ---␊ + >␊ + > ***␊ + >␊ + > ___␊ + >␊ + > Text␊ + ␊ + {MD035:13} {MD035:15}␊ + ␊ + _ _ _␊ + ␊ + > Text␊ + >␊ + > > Text␊ + > >␊ + > > ---␊ + > >␊ + > > ***␊ + > >␊ + > > ___␊ + > >␊ + > > Text␊ + >␊ + > Text␊ + ␊ + {MD035:23} {MD035:29} {MD035:31}␊ `, } -## inline-disable-enable-file.md +## hr-in-list-dash.md > Snapshot 1 @@ -18866,181 +17339,131 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 3, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ---; Actual: ***', + errorRange: null, + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 9, - 3, + errorContext: null, + errorDetail: 'Expected: ---; Actual: ___', + errorRange: null, + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', ], - fixInfo: { - deleteCount: 1, - editColumn: 10, - }, - lineNumber: 5, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + }, + { + errorContext: null, + errorDetail: 'Expected: ---; Actual: - ---', + errorRange: null, + fixInfo: null, + lineNumber: 14, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 9, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 10, - }, - lineNumber: 13, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', - ruleNames: [ - 'MD037', - 'no-space-in-emphasis', - ], - }, - { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 9, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 10, - }, - lineNumber: 21, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + errorContext: null, + errorDetail: 'Expected: ---; Actual: ***', + errorRange: null, + fixInfo: null, + lineNumber: 16, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 9, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 10, - }, - lineNumber: 30, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + errorContext: null, + errorDetail: 'Expected: ---; Actual: ___', + errorRange: null, + fixInfo: null, + lineNumber: 18, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: '`in `', - errorDetail: null, - errorRange: [ - 7, - 5, - ], - fixInfo: { - deleteCount: 3, - editColumn: 8, - insertText: 'in', - }, - lineNumber: 23, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + errorContext: null, + errorDetail: 'Expected: ---; Actual: * ***', + errorRange: null, + fixInfo: null, + lineNumber: 26, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD035', + 'hr-style', ], }, { - errorContext: '`in `', - errorDetail: null, - errorRange: [ - 7, - 5, - ], - fixInfo: { - deleteCount: 3, - editColumn: 8, - insertText: 'in', - }, - lineNumber: 32, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + errorContext: null, + errorDetail: 'Expected: ---; Actual: ___', + errorRange: null, + fixInfo: null, + lineNumber: 28, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD035', + 'hr-style', ], }, ], - fixed: `# Heading␊ - ␊ - hard tab {MD010}␊ - ␊ - space *in* emphasis {MD037}␊ - ␊ - space \`in \` code␊ - ␊ - ␊ - ␊ - hard tab␊ - ␊ - space *in* emphasis {MD037}␊ - ␊ - space \`in \` code␊ + fixed: `# HR in List, Dash␊ ␊ - ␊ + ---␊ ␊ - hard tab␊ + ***␊ ␊ - space *in* emphasis {MD037}␊ + ___␊ ␊ - space \`in\` code {MD038}␊ + {MD035:5} {MD035:7}␊ ␊ - ␊ - ␊ + ␊ ␊ - hard tab␊ + - list␊ + - ---␊ + - list␊ + - ***␊ + - list␊ + - ___␊ + - list␊ ␊ - space *in* emphasis {MD037}␊ + {MD035:14} {MD035:16} {MD035:18}␊ ␊ - space \`in\` code {MD038}␊ + * list␊ + * ---␊ + * list␊ + * ***␊ + * list␊ + * ___␊ + * list␊ ␊ - ␊ + {MD035:26} {MD035:28}␊ `, } -## inline-disable-enable.md +## hr-in-list-star.md > Snapshot 1 @@ -19048,968 +17471,1320 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 3, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ***; Actual: ___', + errorRange: null, + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 11, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ***; Actual: ---', + errorRange: null, + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 19, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ***; Actual: - ---', + errorRange: null, + fixInfo: null, + lineNumber: 14, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 27, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ***; Actual: ___', + errorRange: null, + fixInfo: null, + lineNumber: 18, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 35, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ***; Actual: ---', + errorRange: null, + fixInfo: null, + lineNumber: 24, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 43, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ***; Actual: * ***', + errorRange: null, + fixInfo: null, + lineNumber: 26, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 45, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ***; Actual: ___', + errorRange: null, + fixInfo: null, + lineNumber: 28, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, + ], + fixed: `# HR in List, Star␊ + ␊ + ***␊ + ␊ + ___␊ + ␊ + ---␊ + ␊ + {MD035:5} {MD035:7}␊ + ␊ + ␊ + ␊ + - list␊ + - ---␊ + - list␊ + - ***␊ + - list␊ + - ___␊ + - list␊ + ␊ + {MD035:14} {MD035:18}␊ + ␊ + * list␊ + * ---␊ + * list␊ + * ***␊ + * list␊ + * ___␊ + * list␊ + ␊ + {MD035:24} {MD035:26} {MD035:28}␊ + `, + } + +## hr-in-list-under.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 47, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ___; Actual: ---', + errorRange: null, + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 52, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ___; Actual: ***', + errorRange: null, + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 55, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ___; Actual: - ---', + errorRange: null, + fixInfo: null, + lineNumber: 14, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 61, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ___; Actual: ***', + errorRange: null, + fixInfo: null, + lineNumber: 16, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 64, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ___; Actual: ---', + errorRange: null, + fixInfo: null, + lineNumber: 24, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 67, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ___; Actual: * ***', + errorRange: null, + fixInfo: null, + lineNumber: 26, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, - { - errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 73, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ], + fixed: `# HR in List, Under␊ + ␊ + ___␊ + ␊ + ---␊ + ␊ + ***␊ + ␊ + {MD035:5} {MD035:7}␊ + ␊ + ␊ + ␊ + - list␊ + - ---␊ + - list␊ + - ***␊ + - list␊ + - ___␊ + - list␊ + ␊ + {MD035:14} {MD035:16}␊ + ␊ + * list␊ + * ---␊ + * list␊ + * ***␊ + * list␊ + * ___␊ + * list␊ + ␊ + {MD035:24} {MD035:26}␊ + `, + } + +## hr-style-custom.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Expected: - - -; Actual: ---', + errorRange: null, + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 76, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: - - -; Actual: - - -', + errorRange: null, + fixInfo: null, + lineNumber: 10, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 77, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: - - -; Actual: ***', + errorRange: null, + fixInfo: null, + lineNumber: 19, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, + ], + fixed: `# HR Style Custom␊ + ␊ + Text␊ + ␊ + ---␊ + {MD035:5}␊ + ␊ + Text␊ + ␊ + - - -␊ + {MD035:10}␊ + ␊ + Text␊ + ␊ + - - -␊ + ␊ + Text␊ + ␊ + ***␊ + {MD035:19}␊ + ␊ + Text␊ + ␊ + ␊ + `, + } + +## hr_style_dashes.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 79, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ---; Actual: ***', + errorRange: null, + fixInfo: null, + lineNumber: 3, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 82, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ---; Actual: * * *', + errorRange: null, + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 85, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ---; Actual: *****', + errorRange: null, + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 93, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ---; Actual: - - -', + errorRange: null, + fixInfo: null, + lineNumber: 11, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 95, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ---; Actual: -----', + errorRange: null, + fixInfo: null, + lineNumber: 13, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 97, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ---; Actual: ___', + errorRange: null, + fixInfo: null, + lineNumber: 15, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 99, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ---; Actual: _ _ _', + errorRange: null, + fixInfo: null, + lineNumber: 17, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', - }, - lineNumber: 101, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + errorDetail: 'Expected: ---; Actual: _____', + errorRange: null, + fixInfo: null, + lineNumber: 19, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD035', + 'hr-style', ], }, { errorContext: null, - errorDetail: 'Element: b', - errorRange: [ - 10, - 3, - ], + errorDetail: 'Expected: ---; Actual: ***', + errorRange: null, fixInfo: null, - lineNumber: 69, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 21, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD035', + 'hr-style', ], }, + ], + fixed: `# hr_style_dashes␊ + ␊ + ***␊ + ␊ + * * *␊ + ␊ + *****␊ + ␊ + ---␊ + ␊ + - - -␊ + ␊ + -----␊ + ␊ + ___␊ + ␊ + _ _ _␊ + ␊ + _____␊ + ␊ + ***␊ + ␊ + {MD035:3} {MD035:5} {MD035:7} {MD035:11} {MD035:13}␊ + {MD035:15} {MD035:17} {MD035:19} {MD035:21}␊ + ␊ + ␊ + `, + } + +## hr_style_inconsistent.md + +> Snapshot 1 + + { + errors: [ { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 28, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 29, - }, - lineNumber: 3, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + errorContext: null, + errorDetail: 'Expected: ***; Actual: * * *', + errorRange: null, + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 28, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 29, - }, - lineNumber: 11, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + errorContext: null, + errorDetail: 'Expected: ***; Actual: *****', + errorRange: null, + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 20, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 21, - }, - lineNumber: 15, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + errorContext: null, + errorDetail: 'Expected: ***; Actual: ---', + errorRange: null, + fixInfo: null, + lineNumber: 9, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 28, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 29, - }, - lineNumber: 19, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + 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/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 20, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 21, - }, - lineNumber: 23, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + errorContext: null, + errorDetail: 'Expected: ***; Actual: -----', + errorRange: null, + fixInfo: null, + lineNumber: 13, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 28, - 3, + errorContext: null, + errorDetail: 'Expected: ***; Actual: ___', + errorRange: null, + fixInfo: null, + lineNumber: 15, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', ], - fixInfo: { - deleteCount: 1, - editColumn: 29, - }, - lineNumber: 27, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + }, + { + errorContext: null, + errorDetail: 'Expected: ***; Actual: _ _ _', + errorRange: null, + fixInfo: null, + lineNumber: 17, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 20, - 3, + errorContext: null, + errorDetail: 'Expected: ***; Actual: _____', + errorRange: null, + fixInfo: null, + lineNumber: 19, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', ], - fixInfo: { - deleteCount: 1, - editColumn: 21, - }, - lineNumber: 31, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + }, + ], + fixed: `# hr_style_inconsistent␊ + ␊ + ***␊ + ␊ + * * *␊ + ␊ + *****␊ + ␊ + ---␊ + ␊ + - - -␊ + ␊ + -----␊ + ␊ + ___␊ + ␊ + _ _ _␊ + ␊ + _____␊ + ␊ + ***␊ + ␊ + {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19}␊ + `, + } + +## hr_style_long.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Expected: _____; Actual: ***', + errorRange: null, + fixInfo: null, + lineNumber: 3, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 28, - 3, + errorContext: null, + errorDetail: 'Expected: _____; Actual: * * *', + errorRange: null, + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', ], - fixInfo: { - deleteCount: 1, - editColumn: 29, - }, - lineNumber: 35, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + }, + { + errorContext: null, + errorDetail: 'Expected: _____; Actual: *****', + errorRange: null, + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 20, - 3, + errorContext: null, + errorDetail: 'Expected: _____; Actual: ---', + errorRange: null, + fixInfo: null, + lineNumber: 9, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', ], - fixInfo: { - deleteCount: 1, - editColumn: 21, - }, - lineNumber: 39, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + }, + { + 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/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 28, - 3, + errorContext: null, + errorDetail: 'Expected: _____; Actual: -----', + errorRange: null, + fixInfo: null, + lineNumber: 13, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', ], - fixInfo: { - deleteCount: 1, - editColumn: 29, - }, - lineNumber: 43, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + }, + { + errorContext: null, + errorDetail: 'Expected: _____; Actual: ___', + errorRange: null, + fixInfo: null, + lineNumber: 15, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 28, - 3, + errorContext: null, + errorDetail: 'Expected: _____; Actual: _ _ _', + errorRange: null, + fixInfo: null, + lineNumber: 17, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', ], - fixInfo: { - deleteCount: 1, - editColumn: 29, - }, - lineNumber: 47, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + }, + { + errorContext: null, + errorDetail: 'Expected: _____; Actual: ***', + errorRange: null, + fixInfo: null, + lineNumber: 21, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', + ], + }, + ], + fixed: `# hr_style_long␊ + ␊ + ***␊ + ␊ + * * *␊ + ␊ + *****␊ + ␊ + ---␊ + ␊ + - - -␊ + ␊ + -----␊ + ␊ + ___␊ + ␊ + _ _ _␊ + ␊ + _____␊ + ␊ + ***␊ + ␊ + {MD035:3} {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15}␊ + {MD035:17} {MD035:21}␊ + ␊ + ␊ + `, + } + +## hr_style_stars.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Expected: ***; Actual: * * *', + errorRange: null, + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 28, - 3, + errorContext: null, + errorDetail: 'Expected: ***; Actual: *****', + errorRange: null, + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', ], - fixInfo: { - deleteCount: 1, - editColumn: 29, - }, - lineNumber: 52, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + }, + { + errorContext: null, + errorDetail: 'Expected: ***; Actual: ---', + errorRange: null, + fixInfo: null, + lineNumber: 9, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 28, - 3, + 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/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', ], - fixInfo: { - deleteCount: 1, - editColumn: 29, - }, - lineNumber: 55, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + }, + { + errorContext: null, + errorDetail: 'Expected: ***; Actual: -----', + errorRange: null, + fixInfo: null, + lineNumber: 13, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 28, - 3, + errorContext: null, + errorDetail: 'Expected: ***; Actual: ___', + errorRange: null, + fixInfo: null, + lineNumber: 15, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', ], - fixInfo: { - deleteCount: 1, - editColumn: 29, - }, - lineNumber: 61, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + }, + { + errorContext: null, + errorDetail: 'Expected: ***; Actual: _ _ _', + errorRange: null, + fixInfo: null, + lineNumber: 17, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD035', + 'hr-style', ], }, { - errorContext: 'n *', + errorContext: null, + errorDetail: 'Expected: ***; Actual: _____', + errorRange: null, + fixInfo: null, + lineNumber: 19, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', + ], + }, + ], + fixed: `# hr_style_stars␊ + ␊ + ***␊ + ␊ + * * *␊ + ␊ + *****␊ + ␊ + ---␊ + ␊ + - - -␊ + ␊ + -----␊ + ␊ + ___␊ + ␊ + _ _ _␊ + ␊ + _____␊ + ␊ + ***␊ + ␊ + {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19}␊ + ␊ + ␊ + `, + } + +## html-comment-in-code-and-table.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: '`{MD038} `', errorDetail: null, errorRange: [ - 28, - 3, + 1, + 10, ], fixInfo: { - deleteCount: 1, - editColumn: 29, + deleteCount: 8, + editColumn: 2, + insertText: '{MD038}', }, - lineNumber: 64, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 3, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: 'n *', + errorContext: '`{MD038} `', errorDetail: null, errorRange: [ - 28, 3, + 10, ], fixInfo: { - deleteCount: 1, - editColumn: 29, + deleteCount: 8, + editColumn: 4, + insertText: '{MD038}', }, - lineNumber: 67, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 15, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: 'n *', + errorContext: '`{MD038} `', errorDetail: null, errorRange: [ - 28, 3, + 10, ], fixInfo: { - deleteCount: 1, - editColumn: 29, + deleteCount: 8, + editColumn: 4, + insertText: '{MD038}', }, - lineNumber: 73, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 19, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: 'n *', + errorContext: '`{MD038} `', errorDetail: null, errorRange: [ - 28, - 3, + 5, + 10, ], fixInfo: { - deleteCount: 1, - editColumn: 29, + deleteCount: 8, + editColumn: 6, + insertText: '{MD038}', }, - lineNumber: 76, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 39, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD038', + 'no-space-in-code', ], }, + ], + fixed: `# HTML Comment in Code and Table␊ + ␊ + \`{MD038}\`␊ + ␊ + ␊ + ␊ + \`\`\`text␊ + ␊ + \`\`\`␊ + ␊ + ␊ + ␊ + | Table |␊ + |------------|␊ + | \`{MD038}\` |␊ + ␊ + * item␊ + ␊ + \`{MD038}\`␊ + ␊ + * item␊ + ␊ + ␊ + ␊ + * item␊ + ␊ + \`\`\`text␊ + ␊ + \`\`\`␊ + ␊ + * item␊ + ␊ + ␊ + ␊ + * item␊ + ␊ + | Table |␊ + |------------|␊ + | \`{MD038}\` |␊ + ␊ + ␊ + `, + } + +## html-comment-in-list-item.md + +> Snapshot 1 + + { + errors: [], + fixed: `# HTML Comment in List Item␊ + ␊ + - item␊ + ␊ + ␊ + ␊ + - item␊ + ␊ + x␊ + ␊ + - item␊ + ␊ + x␊ + ␊ + - item␊ + ␊ + xx␊ + ␊ + - item␊ + ␊ + \`\`\`html␊ + ␊ + \`\`\`␊ + ␊ + - item␊ + ␊ + \`\`\`html␊ + x␊ + \`\`\`␊ + ␊ + - item␊ + ␊ + \`\`\`html␊ + x␊ + \`\`\`␊ + ␊ + - item␊ + ␊ + \`\`\`html␊ + xx␊ + \`\`\`␊ + ␊ + - item␊ + `, + } + +## html-comment-in-markdown-table.md + +> Snapshot 1 + + { + errors: [ { - errorContext: 'n *', + errorContext: '`{MD038} `', errorDetail: null, errorRange: [ - 28, 3, + 10, ], fixInfo: { - deleteCount: 1, - editColumn: 29, + deleteCount: 8, + editColumn: 4, + insertText: '{MD038}', }, - lineNumber: 77, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 16, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: 'n *', + errorContext: '`{MD038} `', errorDetail: null, errorRange: [ - 28, 3, + 10, ], fixInfo: { - deleteCount: 1, - editColumn: 29, + deleteCount: 8, + editColumn: 4, + insertText: '{MD038}', }, - lineNumber: 79, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 22, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: 'n *', + errorContext: '`{MD038} `', errorDetail: null, errorRange: [ - 20, 3, + 10, ], fixInfo: { - deleteCount: 1, - editColumn: 21, + deleteCount: 8, + editColumn: 4, + insertText: '{MD038}', }, - lineNumber: 81, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 28, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: 'n *', + errorContext: '`{MD038} `', errorDetail: null, errorRange: [ - 28, - 3, + 11, + 10, ], fixInfo: { - deleteCount: 1, - editColumn: 29, + deleteCount: 8, + editColumn: 12, + insertText: '{MD038}', }, - lineNumber: 82, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 40, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: 'n *', + errorContext: '`{MD038} `', errorDetail: null, errorRange: [ - 20, - 3, + 11, + 10, ], fixInfo: { - deleteCount: 1, - editColumn: 21, + deleteCount: 8, + editColumn: 12, + insertText: '{MD038}', }, - lineNumber: 84, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 46, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: 'n *', + errorContext: '`{MD038} `', errorDetail: null, errorRange: [ - 28, - 3, + 11, + 10, ], fixInfo: { - deleteCount: 1, - editColumn: 29, + deleteCount: 8, + editColumn: 12, + insertText: '{MD038}', }, - lineNumber: 85, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 52, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD038', + 'no-space-in-code', ], }, + ], + fixed: `# HTML Comment in Markdown Table␊ + ␊ + \`\`\`xml␊ + ␊ + \`\`\`␊ + ␊ + | Table |␊ + |-------|␊ + | |␊ + ␊ + | Table |␊ + |------------|␊ + | |␊ + ␊ + | Table |␊ + |----------------|␊ + | |␊ + | cell |␊ + ␊ + | Table |␊ + |----------------|␊ + | |␊ + | cell |␊ + ␊ + | Table | Table |␊ + |-------|-------|␊ + | cell | |␊ + ␊ + | Table | Table |␊ + |-------|------------|␊ + | cell | |␊ + ␊ + | Table | Table |␊ + |-------|----------------|␊ + | cell | |␊ + | cell | cell |␊ + ␊ + | Table | Table |␊ + |-------|----------------|␊ + | cell | |␊ + | cell | cell |␊ + ␊ + ␊ + `, + } + +## html-comments.md + +> Snapshot 1 + + { + errors: [ { - errorContext: 'n *', + errorContext: '} *', errorDetail: null, errorRange: [ - 20, + 15, 3, ], fixInfo: { deleteCount: 1, - editColumn: 21, + editColumn: 16, }, - lineNumber: 87, + lineNumber: 51, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -20018,17 +18793,17 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: 'n *', + errorContext: '} *', errorDetail: null, errorRange: [ - 20, + 16, 3, ], fixInfo: { deleteCount: 1, - editColumn: 21, + editColumn: 17, }, - lineNumber: 89, + lineNumber: 53, ruleDescription: 'Spaces inside emphasis markers', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ @@ -20036,847 +18811,918 @@ Generated by [AVA](https://avajs.dev). 'no-space-in-emphasis', ], }, + ], + fixed: `# HTML Comments␊ + ␊ + ## Block Comments␊ + ␊ + ␊ + ␊ + ␊ + ␊ + text␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + *text * -->␊ + ␊ + *text * -->␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ## Inline Comments␊ + ␊ + ␊ + ␊ + t␊ + ␊ + ttext␊ + ␊ + t␊ + ␊ + t␊ + ␊ + t␊ + ␊ + t␊ + ␊ + t *{MD037}* -->␊ + ␊ + t *{MD037}* -->␊ + ␊ + t␊ + ␊ + t␊ + ␊ + t␊ + `, + } + +## html-tags.md + +> Snapshot 1 + + { + errors: [ { - errorContext: 'n *', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: em', errorRange: [ - 20, - 3, + 1, + 4, ], - fixInfo: { - deleteCount: 1, - editColumn: 21, - }, - lineNumber: 90, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD033', + 'no-inline-html', ], }, { - errorContext: 'n *', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: em', errorRange: [ - 28, - 3, + 6, + 4, ], - fixInfo: { - deleteCount: 1, - editColumn: 29, - }, - lineNumber: 93, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD033', + 'no-inline-html', ], }, { - errorContext: 'n *', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: p', errorRange: [ - 28, + 1, 3, ], - fixInfo: { - deleteCount: 1, - editColumn: 29, - }, - lineNumber: 95, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + fixInfo: null, + lineNumber: 17, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD033', + 'no-inline-html', ], }, { - errorContext: 'n *', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: em', errorRange: [ - 28, - 3, + 7, + 4, ], - fixInfo: { - deleteCount: 1, - editColumn: 29, - }, - lineNumber: 97, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + fixInfo: null, + lineNumber: 19, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD033', + 'no-inline-html', ], }, { - errorContext: 'n *', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: em', errorRange: [ - 28, - 3, + 7, + 4, ], - fixInfo: { - deleteCount: 1, - editColumn: 29, - }, - lineNumber: 99, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', - ruleNames: [ - 'MD037', - 'no-space-in-emphasis', - ], - }, - { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 20, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 21, - }, - lineNumber: 100, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', - ruleNames: [ - 'MD037', - 'no-space-in-emphasis', - ], - }, - { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 28, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 29, - }, - lineNumber: 101, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', - ruleNames: [ - 'MD037', - 'no-space-in-emphasis', - ], - }, - { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 20, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 21, - }, - lineNumber: 103, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', - ruleNames: [ - 'MD037', - 'no-space-in-emphasis', - ], - }, - { - errorContext: 'n *', - errorDetail: null, - errorRange: [ - 20, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 21, - }, - lineNumber: 104, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + fixInfo: null, + lineNumber: 23, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD033', + 'no-inline-html', ], }, { - errorContext: 'n *', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: em', errorRange: [ - 20, - 3, + 36, + 4, ], - fixInfo: { - deleteCount: 1, - editColumn: 21, - }, - lineNumber: 105, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + fixInfo: null, + lineNumber: 24, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: em', errorRange: [ - 57, - 5, + 9, + 4, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 3, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 29, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: em', errorRange: [ - 57, - 5, + 14, + 4, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 11, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 31, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: em', errorRange: [ - 49, - 5, + 1, + 4, ], - fixInfo: { - deleteCount: 3, - editColumn: 50, - insertText: 'in', - }, - lineNumber: 15, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 35, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: em', errorRange: [ - 57, - 5, + 6, + 4, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 19, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 37, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: em', errorRange: [ - 57, - 5, + 6, + 4, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 27, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 41, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: em', errorRange: [ - 57, - 5, + 56, + 4, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 35, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 41, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: em', errorRange: [ - 57, - 5, + 35, + 4, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, + fixInfo: null, lineNumber: 43, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: problem', errorRange: [ - 57, - 5, + 3, + 9, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 47, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 49, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: problem', errorRange: [ - 57, - 5, + 8, + 9, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 52, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 55, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: em', errorRange: [ - 57, - 5, + 8, + 4, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 55, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 61, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: em', errorRange: [ - 57, - 5, + 18, + 4, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 61, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 84, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: a', errorRange: [ - 57, - 5, + 6, + 18, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 67, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 90, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: img', errorRange: [ - 57, - 5, + 6, + 39, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 73, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 91, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: foo-bar-baz', errorRange: [ - 57, - 5, + 1, + 13, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 76, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 101, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: details', errorRange: [ - 57, - 5, + 1, + 9, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 77, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 109, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: details', errorRange: [ - 57, - 5, + 2, + 9, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 79, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 116, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: custom-element', errorRange: [ - 57, - 5, + 1, + 35, ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 82, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 120, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD038', - 'no-space-in-code', - ], - }, - { - errorContext: '`in `', - errorDetail: null, - errorRange: [ - 57, - 5, - ], - fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', - }, - lineNumber: 85, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', - ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD033', + 'no-inline-html', ], }, + ], + fixed: `# Detailed HTML Results␊ + ␊ + Text␊ + ␊ + Block block {MD033}␊ + ␊ + Text inline inline {MD033} text␊ + ␊ + Text␊ + ␊ + Block block␊ + ␊ + Text inline inline text␊ + ␊ + Text␊ + ␊ +

␊ + Block {MD033:17}␊ + block block {MD033} block␊ + block␊ + block block block␊ + block␊ + block block block block block {MD033}␊ + block block block block block {MD033}␊ +

␊ + ␊ + Text␊ + ␊ + Block block {MD033}␊ + ␊ + Text inline inline {MD033} text␊ + ␊ + Text␊ + ␊ + Block block {MD033}␊ + ␊ + Text inline inline {MD033} text␊ + ␊ + Text␊ + ␊ + Text inline text inline text inline text {MD033}␊ + ␊ + Text inline text inline text inline {MD033}␊ + ␊ + Text␊ + ␊ + \\Block block\\␊ + ␊ + \\\\Block block {MD033}\\\\␊ + ␊ + Block block␊ + ␊ + Text \\inline inline\\ text␊ + ␊ + Text \\\\inline inline {MD033}\\\\ text␊ + ␊ + Text inline inline text␊ + ␊ + Text␊ + ␊ + > Text inline inline {MD033} 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 {MD033} text␊ + ␊ + Text \`\`text text\`\` text␊ + ␊ + Text␊ + ␊ + Text inline {MD033} text␊ + text Description text {MD033}␊ + ␊ + Text␊ + ␊ + is an email autolink.␊ + ␊ + Another email autolink: .␊ + ␊ + Text␊ + ␊ + is an HTML element. {MD033}␊ + ␊ + But is not an autolink or HTML element.␊ + And neither is .␊ + Nor <123abc>.␊ + ␊ + Text␊ + ␊ +
␊ + ␊ + {MD033:109}␊ + ␊ +
␊ + ␊ + - Item␊ +
␊ + ␊ + {MD033:116}␊ + ␊ + ␊ + ␊ + {MD033:120}␊ + ␊ + Text text.␊ + ␊ + ␊ + `, + } + +## hugo-quickstart-example-blank.md + +> Snapshot 1 + + { + errors: [], + fixed: `+++␊ + date = "2016-02-14T16:11:58+05:30"␊ + draft = true␊ + title = "Good to Great Book Review"␊ + ␊ + +++␊ + ␊ + # Heading 1␊ + ␊ + ␊ + `, + } + +## hugo-quickstart-example-clean.md + +> Snapshot 1 + + { + errors: [], + fixed: `+++␊ + date = "2016-02-14T16:11:58+05:30"␊ + draft = true␊ + title = "Good to Great Book Review"␊ + ␊ + +++␊ + # Heading 1␊ + ␊ + ␊ + `, + } + +## hugo-quickstart-example-json.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '`in `', + errorContext: 'Heading {MD025}', errorDetail: null, - errorRange: [ - 49, - 5, - ], - fixInfo: { - deleteCount: 3, - editColumn: 50, - insertText: 'in', - }, - lineNumber: 87, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + errorRange: null, + fixInfo: null, + lineNumber: 13, + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD025', + 'single-title', + 'single-h1', ], }, + ], + fixed: `{␊ + "title": "Another Hugo Post",␊ + "description": "Nothing special, but one post is boring.",␊ + "date": "2014-09-02",␊ + "categories": [ "example", "configuration" ],␊ + "tags": [␊ + "example",␊ + "hugo",␊ + "toml"␊ + ],␊ + }␊ + ␊ + # Heading {MD025}␊ + `, + } + +## ignore-comments.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 1', errorRange: [ - 49, - 5, + 30, + 1, ], fixInfo: { - deleteCount: 3, - editColumn: 50, - insertText: 'in', + deleteCount: 1, + editColumn: 30, }, - lineNumber: 90, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 29, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD009', + 'no-trailing-spaces', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 1', errorRange: [ - 57, - 5, + 14, + 1, ], fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', + deleteCount: 1, + editColumn: 14, }, - lineNumber: 93, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 39, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD009', + 'no-trailing-spaces', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ - 57, 5, + 1, ], fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', + deleteCount: 1, + editColumn: 5, + insertText: ' ', }, - lineNumber: 95, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 3, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ - 57, 5, + 1, ], fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', + deleteCount: 1, + editColumn: 5, + insertText: ' ', }, - lineNumber: 97, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 5, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 10', errorRange: [ - 57, - 5, + 10, + 2, ], fixInfo: { - deleteCount: 3, - editColumn: 58, - insertText: 'in', + deleteCount: 2, + editColumn: 10, + insertText: ' ', }, - lineNumber: 99, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 5, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 16', errorRange: [ - 57, - 5, + 16, + 3, ], fixInfo: { deleteCount: 3, - editColumn: 58, - insertText: 'in', + editColumn: 16, + insertText: ' ', }, - lineNumber: 101, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 5, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ - 49, 5, + 1, ], fixInfo: { - deleteCount: 3, - editColumn: 50, - insertText: 'in', + deleteCount: 1, + editColumn: 5, + insertText: ' ', }, - lineNumber: 103, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 22, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '`in `', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ - 49, 5, + 1, ], fixInfo: { - deleteCount: 3, - editColumn: 50, - insertText: 'in', + deleteCount: 1, + editColumn: 5, + insertText: ' ', }, - lineNumber: 105, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 24, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD010', + 'no-hard-tabs', ], }, ], - fixed: `# Heading␊ + fixed: `# ignore-comments.md␊ ␊ - hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + Hard tab {MD010}␊ ␊ - ␊ + Hard tabs hard tabs {MD010}␊ ␊ - hard tab / space *in * emphasis / space \`in \` code␊ + ␊ ␊ - ␊ + ␊ ␊ - hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ ␊ - ␊ + ␊ ␊ - ␊ + Text comment␊ + Hard tab {MD010}␊ + --> text␊ ␊ - hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + Text␊ ␊ - ␊ + Text {MD009}␊ ␊ - hard tab / space *in* emphasis {MD037} / space \`in \` code␊ + Text␊ ␊ - ␊ + Text␊ ␊ - hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + Text {MD009}␊ ␊ - before after␊ + Text␊ ␊ - hard tab / space *in* emphasis {MD037} / space \`in \` code␊ + ␊ ␊ - beforeafter␊ + Hard tab␊ + `, + } + +## ignore-html-block.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Element: style', + errorRange: [ + 1, + 7, + ], + fixInfo: null, + lineNumber: 3, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + ], + fixed: `# ignore-html-block.md␊ ␊ - hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + `, } -## inline_html-allowed_elements.md +## inconsistent_bullet_indent_same_level.md > Snapshot 1 @@ -20884,712 +19730,415 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Element: h2', + errorDetail: 'Expected: 4; Actual: 2', errorRange: [ 1, 4, ], fixInfo: null, lineNumber: 5, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Element: h2', + errorDetail: 'Expected: 2; Actual: 4', errorRange: [ - 10, - 4, + 1, + 6, ], - fixInfo: null, - lineNumber: 9, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 4, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD007', + 'ul-indent', ], }, + ], + fixed: `# Inconsistent Bullet Indent Same Level␊ + ␊ + * Item␊ + * Item {MD007}␊ + * Item {MD005}␊ + * Item␊ + `, + } + +## inconsistent_bullet_styles_asterisk.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Element: h2', + errorDetail: 'Expected: asterisk; Actual: plus', errorRange: [ - 10, + 1, 4, ], - fixInfo: null, - lineNumber: 11, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 3, + insertText: '*', + }, + lineNumber: 4, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Element: br', + errorDetail: 'Expected: asterisk; Actual: dash', errorRange: [ 1, 4, ], - fixInfo: null, - lineNumber: 17, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 3, + insertText: '*', + }, + lineNumber: 5, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Element: br', + errorDetail: 'Expected: asterisk; Actual: plus', errorRange: [ 1, - 5, + 6, ], - fixInfo: null, - lineNumber: 19, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: '*', + }, + lineNumber: 9, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Element: br', + errorDetail: 'Expected: asterisk; Actual: dash', errorRange: [ 1, - 5, + 6, ], - fixInfo: null, - lineNumber: 21, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: '*', + }, + lineNumber: 10, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD004', + 'ul-style', ], }, + ], + fixed: `# inconsistent_bullet_styles_asterisk␊ + ␊ + * Item␊ + * Item {MD004}␊ + * Item {MD004}␊ + * Item␊ + ␊ + > * Item␊ + > * Item {MD004}␊ + > * Item {MD004}␊ + > * Item␊ + `, + } + +## inconsistent_bullet_styles_dash.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Element: br', + errorDetail: 'Expected: dash; Actual: asterisk', errorRange: [ 1, - 6, + 4, ], - fixInfo: null, - lineNumber: 23, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 3, + insertText: '-', + }, + lineNumber: 4, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Element: br', + errorDetail: 'Expected: dash; Actual: plus', errorRange: [ 1, - 15, + 4, ], - fixInfo: null, - lineNumber: 25, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 3, + insertText: '-', + }, + lineNumber: 5, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Element: br', + errorDetail: 'Expected: dash; Actual: asterisk', errorRange: [ 1, - 16, + 6, ], - fixInfo: null, - lineNumber: 27, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: '-', + }, + lineNumber: 9, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Element: br', + errorDetail: 'Expected: dash; Actual: plus', errorRange: [ 1, - 23, + 6, ], - fixInfo: null, - lineNumber: 29, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: '-', + }, + lineNumber: 10, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD004', + 'ul-style', ], }, + ], + fixed: `# inconsistent_bullet_styles_dash␊ + ␊ + - Item␊ + - Item {MD004}␊ + - Item {MD004}␊ + - Item␊ + ␊ + > - Item␊ + > - Item {MD004}␊ + > - Item {MD004}␊ + > - Item␊ + `, + } + +## inconsistent_bullet_styles_plus.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Element: br', + errorDetail: 'Expected: plus; Actual: asterisk', errorRange: [ 1, - 24, + 4, ], - fixInfo: null, - lineNumber: 31, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 3, + insertText: '+', + }, + lineNumber: 4, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Element: article', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ 1, - 9, + 4, ], - fixInfo: null, - lineNumber: 37, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 3, + insertText: '+', + }, + lineNumber: 5, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Element: article', + errorDetail: 'Expected: plus; Actual: asterisk', errorRange: [ 1, - 9, + 6, ], - fixInfo: null, - lineNumber: 42, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: '+', + }, + lineNumber: 9, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Element: br', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ 1, - 5, + 6, ], - fixInfo: null, - lineNumber: 46, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: '+', + }, + lineNumber: 10, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD004', + 'ul-style', ], }, + ], + fixed: `# inconsistent_bullet_styles_plus␊ + ␊ + + Item␊ + + Item {MD004}␊ + + Item {MD004}␊ + + Item␊ + ␊ + > + Item␊ + > + Item {MD004}␊ + > + Item {MD004}␊ + > + Item␊ + `, + } + +## incorrect_bullet_style_asterisk.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Element: Article', + errorDetail: 'Expected: asterisk; Actual: dash', errorRange: [ 1, - 9, + 4, ], - fixInfo: null, - lineNumber: 50, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 3, + insertText: '*', + }, + lineNumber: 4, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Element: Br', + errorDetail: 'Expected: asterisk; Actual: plus', errorRange: [ 1, - 5, + 4, ], - fixInfo: null, - lineNumber: 54, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 3, + insertText: '*', + }, + lineNumber: 5, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD004', + 'ul-style', ], }, ], - fixed: `# inline_html-allowed_elements␊ - ␊ -

This is allowed.

␊ - ␊ -

This is not allowed. {MD033}

␊ - ␊ -

This is allowed.

␊ - ␊ -

This

is not

allowed. {MD033}␊ - ␊ -

This

is not

allowed. {MD033}␊ - ␊ -
␊ - ␊ -
␊ - ␊ -
{MD033}␊ - ␊ -
{MD033}␊ - ␊ -
{MD033}␊ - ␊ -
{MD033}␊ - ␊ -
{MD033}␊ - ␊ -
{MD033}␊ - ␊ -
{MD033}␊ - ␊ -
{MD033}␊ - ␊ -

␊ - This is allowed.␊ -

␊ + fixed: `# incorrect_bullet_style_asterisk␊ ␊ -
{MD033}␊ - This is not allowed.␊ -
␊ - ␊ -

␊ -

{MD033}␊ - This is not allowed.␊ -
␊ -
␊ -
{MD033}␊ -

␊ - ␊ -

␊ -

{MD033}␊ - This is not allowed.␊ -
␊ -
␊ -
{MD033}␊ -

␊ + * Item␊ + * Item {MD004}␊ + * Item {MD004}␊ ␊ ␊ `, } -## inline_html.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Element: h1', - errorRange: [ - 1, - 4, - ], - fixInfo: null, - lineNumber: 3, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: p', - errorRange: [ - 1, - 3, - ], - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: element', - errorRange: [ - 12, - 9, - ], - fixInfo: null, - lineNumber: 79, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: hr', - errorRange: [ - 1, - 4, - ], - fixInfo: null, - lineNumber: 88, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: hr', - errorRange: [ - 1, - 5, - ], - fixInfo: null, - lineNumber: 90, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: a', - errorRange: [ - 1, - 30, - ], - fixInfo: null, - lineNumber: 94, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: a', - errorRange: [ - 1, - 46, - ], - fixInfo: null, - lineNumber: 96, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: a', - errorRange: [ - 1, - 51, - ], - fixInfo: null, - lineNumber: 98, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: element', - errorRange: [ - 6, - 9, - ], - fixInfo: null, - lineNumber: 122, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: link-with', - errorRange: [ - 4, - 11, - ], - fixInfo: null, - lineNumber: 124, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: reference', - errorRange: [ - 16, - 11, - ], - fixInfo: null, - lineNumber: 128, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: null, - errorDetail: 'Element: reference', - errorRange: [ - 16, - 11, - ], - fixInfo: null, - lineNumber: 130, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', - ruleNames: [ - 'MD033', - 'no-inline-html', - ], - }, - { - errorContext: '`code Inline HTML Heading {MD033}␊ - ␊ -

More inline HTML {MD033}␊ - but this time on multiple lines␊ -

␊ - ␊ -

This shouldn't trigger as it's inside a code block

␊ - ␊ - \`\`\`text␊ -

Neither should this as it's also in a code block {MD046:11}

␊ - \`\`\`␊ - ␊ - ## Elements in code spans␊ - ␊ - Text \`\` text \\\` text␊ - Text \\\` text \`\` text␊ - Text \\\` text \\\` text \`\` text␊ - Text \\\` text \`\` text \`\` text␊ - Text \\\` text \`\` text \\\` text \`\` text␊ - Text \\\`\\\` text \`\` text␊ - Text \`\` text \\\` text \`\` text␊ - ␊ - ## Elements in multiple line code spans␊ - ␊ - Text \`code␊ - \`␊ - ␊ - \`code␊ - \`␊ - ␊ - \`code␊ - \` text␊ - ␊ - Text \`code␊ - code␊ - ␊ - \`␊ - ␊ - \`\`code \`\`\` \`\`\`\` \`␊ - code␊ - \`\`␊ - ␊ - Text \`code␊ - ␊ - code\` text␊ - ␊ - Text \`code code␊ - code \` text␊ - ␊ - Text \`code ␊ - code code\` text␊ - ␊ - Text \`code code␊ - code code␊ - code code\` text␊ - ␊ - Text \`\`\`\`code code␊ - code code␊ - code code\`\`\`\` text␊ - ␊ - Text \`code code␊ - code \` text␊ - text \`code code␊ - code code\` text␊ - ␊ - Text \`code code␊ - code code\` text␊ - text \`code code␊ - code \` text␊ - ␊ - Text \`code code␊ - code \` text␊ - text \`code code␊ - code \` text␊ - ␊ - Text \`code code␊ - code\` text text \`code {MD033}␊ - code code\` text␊ - ␊ - ## Slash in element name␊ - ␊ - Text **\\\\another\\directory\\\\** text␊ - ␊ - ## Self-closing elements␊ - ␊ -
{MD033}␊ - ␊ -
{MD033}␊ - ␊ - ## Links␊ - ␊ - Google {MD033}␊ - ␊ - Google {MD033}␊ - ␊ - Google {MD033}␊ - ␊ - ## Unterminated code span followed by element in code span␊ - ␊ - Text text \`text text␊ - ␊ - Text \`\` text␊ - ␊ - Text␊ - text \`text␊ - text␊ - ␊ - Text \`code code\` text␊ - ␊ - Text \`code code\` text {MD038}␊ - ␊ - \`\`\`lang␊ - code {MD046:114}␊ - ␊ - ␊ - \`\`\`␊ - ␊ - Text \`code code\` text␊ - ␊ - Text text {MD033}␊ - ␊ - A [][a-reference] is problematic. {MD033}␊ - ␊ - A [link with][a-] is okay.␊ - ␊ - A link with [a-][] is problematic. {MD033}␊ - ␊ - A link with [a-] is problematic. {MD033}␊ - ␊ - [a-reference]: https://example.com/␊ - [a-]: https://example.com/␊ - `, - } - -## invalid-ul-style-style.md +## incorrect_bullet_style_dash.md > Snapshot 1 @@ -21617,7 +20166,7 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: dash; Actual: asterisk', + errorDetail: 'Expected: dash; Actual: plus', errorRange: [ 1, 4, @@ -21627,7 +20176,7 @@ Generated by [AVA](https://avajs.dev). editColumn: 3, insertText: '-', }, - lineNumber: 4, + lineNumber: 5, ruleDescription: 'Unordered list style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ @@ -21635,9 +20184,30 @@ Generated by [AVA](https://avajs.dev). 'ul-style', ], }, + ], + fixed: `# incorrect_bullet_style_dash␊ + ␊ + - Item {MD004}␊ + - Item␊ + - Item {MD004}␊ + ␊ + ␊ + `, + } + +## incorrect_bullet_style_plus.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Expected: dash; Actual: plus', + errorDetail: 'Expected: plus; Actual: asterisk', errorRange: [ 1, 2, @@ -21645,9 +20215,9 @@ Generated by [AVA](https://avajs.dev). fixInfo: { deleteCount: 1, editColumn: 1, - insertText: '-', + insertText: '+', }, - lineNumber: 6, + lineNumber: 3, ruleDescription: 'Unordered list style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ @@ -21657,7 +20227,7 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: dash; Actual: plus', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ 1, 4, @@ -21665,9 +20235,9 @@ Generated by [AVA](https://avajs.dev). fixInfo: { deleteCount: 1, editColumn: 3, - insertText: '-', + insertText: '+', }, - lineNumber: 7, + lineNumber: 4, ruleDescription: 'Unordered list style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ @@ -21676,26 +20246,21 @@ Generated by [AVA](https://avajs.dev). ], }, ], - fixed: `# Invalid ul-style style␊ - ␊ - - Item {MD004}␊ - - Item {MD004}␊ - ␊ - - Item {MD004}␊ - - Item {MD004}␊ + fixed: `# incorrect_bullet_style_plus␊ ␊ - - Item␊ - - Item␊ + + Item {MD004}␊ + + Item {MD004}␊ + + Item␊ ␊ ␊ `, } -## jekyll_post.md +## incorrect_heading_atx.md > Snapshot 1 @@ -21703,52 +20268,47 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: h2; Actual: h3', + errorDetail: 'Expected: atx; Actual: atx_closed', errorRange: null, fixInfo: null, - lineNumber: 16, - ruleDescription: 'Heading levels should only increment by one level at a time', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md', + lineNumber: 1, + ruleDescription: 'Heading style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', ruleNames: [ - 'MD001', - 'heading-increment', + 'MD003', + 'heading-style', ], }, { - errorContext: 'heading1 {MD025}', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: atx; Actual: setext', errorRange: null, fixInfo: null, - lineNumber: 12, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', + lineNumber: 5, + ruleDescription: 'Heading style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', + 'MD003', + 'heading-style', ], }, ], - fixed: `---␊ - layout: post␊ - title: Hello World!␊ - category: Meta␊ - tags:␊ - - tag␊ - - another tag␊ - - one more tag␊ - url: https://example.com␊ - excerpt: Hello World! Vestibulum imperdiet adipiscing arcu, quis aliquam dolor condimentum dapibus. Aliquam fermentum leo aliquet quam volutpat et molestie mauris mattis. Suspendisse semper consequat velit in suscipit.␊ - ---␊ - # heading1 {MD025}␊ + fixed: `# Heading 1 {MD003} #␊ ␊ - This is just a sample post.␊ + ## Heading 2␊ ␊ - ### offending heading3 {MD001}␊ + Heading 3 {MD003}␊ + -----------------␊ + ␊ + ␊ `, } -## jekyll_post_2.md +## incorrect_heading_atx_closed.md > Snapshot 1 @@ -21756,4132 +20316,5158 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: h2; Actual: h3', + errorDetail: 'Expected: atx_closed; Actual: atx', errorRange: null, fixInfo: null, - lineNumber: 17, - ruleDescription: 'Heading levels should only increment by one level at a time', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md', + lineNumber: 3, + ruleDescription: 'Heading style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', ruleNames: [ - 'MD001', - 'heading-increment', + 'MD003', + 'heading-style', ], }, { - errorContext: 'header1 {MD025}', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: atx_closed; Actual: setext', errorRange: null, fixInfo: null, - lineNumber: 13, - ruleDescription: 'Multiple top-level headings in the same document', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', + lineNumber: 5, + ruleDescription: 'Heading style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', + 'MD003', + 'heading-style', ], }, ], - fixed: `---␊ - layout: post␊ - title: Hello World!␊ - category: Meta␊ - tags:␊ - - tag␊ - - another tag␊ - - one more tag␊ - url: http://example.com␊ - excerpt: Hello World! Vestibulum imperdiet adipiscing arcu, quis aliquam dolor condimentum dapibus. Aliquam fermentum leo aliquet quam volutpat et molestie mauris mattis. Suspendisse semper consequat velit in suscipit.␊ - ---␊ + fixed: `# Heading 1 #␊ ␊ - # header1 {MD025}␊ + ## Heading 2 {MD003}␊ ␊ - This is just a sample post.␊ + Heading 3 {MD003}␊ + -----------------␊ ␊ - ### offending header3 {MD001}␊ + ␊ `, } -## line-breaks-inside-code-spans.md +## incorrect_heading_setext.md > Snapshot 1 { errors: [ { - errorContext: '` code {MD038}', - errorDetail: null, - errorRange: [ - 6, - 14, + errorContext: null, + errorDetail: 'Expected: setext; Actual: atx_closed', + errorRange: null, + fixInfo: null, + lineNumber: 1, + ruleDescription: 'Heading style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', + ruleNames: [ + 'MD003', + 'heading-style', ], - fixInfo: { - deleteCount: 13, - editColumn: 7, - insertText: 'code {MD038}', - }, - lineNumber: 33, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + }, + { + errorContext: null, + errorDetail: 'Expected: setext; Actual: atx', + errorRange: null, + fixInfo: null, + lineNumber: 3, + ruleDescription: 'Heading style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD003', + 'heading-style', ], }, + ], + fixed: `# Heading 1 {MD003} #␊ + ␊ + ## Heading 2 {MD003}␊ + ␊ + Heading 3␊ + ---------␊ + ␊ + ␊ + `, + } + +## inline-capture-restore.md + +> Snapshot 1 + + { + errors: [ { - errorContext: 'span `', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ + 5, 1, - 6, ], fixInfo: { - deleteCount: 5, - editColumn: 1, - insertText: 'span', + deleteCount: 1, + editColumn: 5, + insertText: ' ', }, - lineNumber: 39, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 52, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '` code {MD038}', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ - 6, - 14, + 5, + 1, ], fixInfo: { - deleteCount: 13, - editColumn: 7, - insertText: 'code {MD038}', + deleteCount: 1, + editColumn: 5, + insertText: ' ', }, - lineNumber: 49, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 64, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: 'span `', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ + 5, 1, - 6, ], fixInfo: { - deleteCount: 5, - editColumn: 1, - insertText: 'span', + deleteCount: 1, + editColumn: 5, + insertText: ' ', }, - lineNumber: 57, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 70, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: 'span `', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ + 5, 1, - 6, ], fixInfo: { - deleteCount: 5, - editColumn: 1, - insertText: 'span', + deleteCount: 1, + editColumn: 5, + insertText: ' ', }, - lineNumber: 63, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 76, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '` code {MD038}', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ - 6, - 14, + 5, + 1, ], fixInfo: { - deleteCount: 13, - editColumn: 7, - insertText: 'code {MD038}', + deleteCount: 1, + editColumn: 5, + insertText: ' ', }, - lineNumber: 65, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 82, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: 'code code `', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ + 5, 1, - 11, ], fixInfo: { - deleteCount: 10, - editColumn: 1, - insertText: 'code code', + deleteCount: 1, + editColumn: 5, + insertText: ' ', }, - lineNumber: 73, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 88, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD010', + 'no-hard-tabs', ], }, - ], - fixed: `# Line breaks inside code spans␊ - ␊ - Text \`code␊ - span\` text.␊ - ␊ - Text \`code␊ - span\` text \`code␊ - span\` text.␊ - ␊ - Text \`code␊ - span\` text \`code␊ - span\` text \`code␊ - span\` text.␊ - ␊ - Text \`code␊ - span␊ - code␊ - span\` text.␊ - ␊ - Text \`code␊ - span\` text \`code span\`␊ - text \`code span\` text.␊ - ␊ - Text \`code␊ - span\` text \`code span\` text␊ - \`code span\` text.␊ - ␊ - \`code␊ - span\` \`span\`␊ - \`span\`␊ - ␊ - Text␊ - text \`code {MD038}␊ - span\` text␊ - text.␊ - ␊ - Text␊ - text \`code␊ - span\` text {MD038}␊ - text.␊ - ␊ - Text␊ - text \`code␊ - span code␊ - span\` text␊ - text.␊ - ␊ - Text␊ - text \`code {MD038}␊ - span code␊ - span\` text␊ - text.␊ - ␊ - Text␊ - text \`code␊ - span code␊ - span\` text {MD038}␊ - text.␊ - ␊ - Text␊ - text \`code␊ - span code␊ - span\` text {MD038}␊ - text␊ - text \`code {MD038}␊ - span code␊ - span\` text␊ - text.␊ - ␊ - "␊ - Text \`code␊ - code code\`text\` {MD038}␊ - `, - } - -## link-fragments.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '[Invalid](#valid-heading-is-an-image)', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ + 5, 1, - 37, ], - fixInfo: null, - lineNumber: 218, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 94, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '[Invalid](#valid-heading-2004-)', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ + 5, 1, - 31, ], - fixInfo: null, - lineNumber: 220, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 104, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '[Invalid](#valid-repeated-heading-3)', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ + 5, 1, - 36, ], - fixInfo: null, - lineNumber: 222, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 116, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '[Invalid](#invalid-fragment)', + errorContext: 'n *', errorDetail: null, errorRange: [ - 1, - 28, + 9, + 3, ], - fixInfo: null, - lineNumber: 224, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 1, + editColumn: 10, + }, + lineNumber: 4, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '[Invalid](#myname)', + errorContext: 'n *', errorDetail: null, errorRange: [ - 1, - 18, + 9, + 3, ], - fixInfo: null, - lineNumber: 226, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 1, + editColumn: 10, + }, + lineNumber: 14, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '[Invalid](#hrefandid)', - errorDetail: 'Expected: #HREFandID; Actual: #hrefandid', + errorContext: 'n *', + errorDetail: null, errorRange: [ - 1, - 21, + 9, + 3, ], fixInfo: { - deleteCount: 10, - editColumn: 11, - insertText: '#HREFandID', + deleteCount: 1, + editColumn: 10, }, - lineNumber: 228, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + lineNumber: 30, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '[Invalid](#name-for-other-element)', + errorContext: 'n *', errorDetail: null, errorRange: [ - 1, - 34, + 9, + 3, ], - fixInfo: null, - lineNumber: 230, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 1, + editColumn: 10, + }, + lineNumber: 83, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '[Invalid](#name-should-be-ignored)', + errorContext: 'n *', errorDetail: null, errorRange: [ - 1, - 34, + 9, + 3, ], - fixInfo: null, - lineNumber: 232, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 1, + editColumn: 10, + }, + lineNumber: 117, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '[Invalid](#not-an-id-should-be-ignored)', + errorContext: '`in `', errorDetail: null, errorRange: [ - 1, - 39, - ], - fixInfo: null, - lineNumber: 234, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', - ruleNames: [ - 'MD051', - 'link-fragments', + 7, + 5, ], - }, - { - errorContext: null, - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 236, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 3, + editColumn: 8, + insertText: 'in', + }, + lineNumber: 5, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[badref]: #missing "{MD051}"', + errorContext: '`in `', errorDetail: null, errorRange: [ - 1, - 28, - ], - fixInfo: null, - lineNumber: 241, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', - ruleNames: [ - 'MD051', - 'link-fragments', - ], - }, - { - errorContext: '[Title](#Valid-Fragments)', - errorDetail: 'Expected: #valid-fragments; Actual: #Valid-Fragments', - errorRange: [ - 1, - 25, + 7, + 5, ], fixInfo: { - deleteCount: 16, - editColumn: 9, - insertText: '#valid-fragments', + deleteCount: 3, + editColumn: 8, + insertText: 'in', }, - lineNumber: 245, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + lineNumber: 15, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[ALL CAPS](#NAMEDLINK)', - errorDetail: 'Expected: #namedlink; Actual: #NAMEDLINK', + errorContext: '`in `', + errorDetail: null, errorRange: [ - 1, - 22, + 7, + 5, ], fixInfo: { - deleteCount: 10, - editColumn: 12, - insertText: '#namedlink', + deleteCount: 3, + editColumn: 8, + insertText: 'in', }, - lineNumber: 247, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', - ruleNames: [ - 'MD051', - 'link-fragments', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: #namedlink; Actual: #NAMEDLINK', - errorRange: null, - fixInfo: null, - lineNumber: 249, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + lineNumber: 21, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[mixedref]: #idLINK "{MD051}"', - errorDetail: 'Expected: #idlink; Actual: #idLINK', + errorContext: '`in `', + errorDetail: null, errorRange: [ - 1, - 29, + 7, + 5, ], fixInfo: { - deleteCount: 7, - editColumn: 13, - insertText: '#idlink', + deleteCount: 3, + editColumn: 8, + insertText: 'in', }, - lineNumber: 254, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + lineNumber: 31, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[Invalid](#embedded-space)', + errorContext: '`in `', errorDetail: null, errorRange: [ - 1, - 26, + 7, + 5, ], - fixInfo: null, - lineNumber: 289, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 3, + editColumn: 8, + insertText: 'in', + }, + lineNumber: 37, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[Invalid](#embedded_space)', + errorContext: '`in `', errorDetail: null, errorRange: [ - 1, - 26, + 7, + 5, ], - fixInfo: null, - lineNumber: 291, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 3, + editColumn: 8, + insertText: 'in', + }, + lineNumber: 48, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[Invalid](#embedded)', + errorContext: '`in `', errorDetail: null, errorRange: [ - 1, - 20, + 7, + 5, ], - fixInfo: null, - lineNumber: 293, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 3, + editColumn: 8, + insertText: 'in', + }, + lineNumber: 54, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[Invalid](#hyphen--run)', + errorContext: '`in `', errorDetail: null, errorRange: [ - 1, - 23, + 7, + 5, ], - fixInfo: null, - lineNumber: 295, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 3, + editColumn: 8, + insertText: 'in', + }, + lineNumber: 60, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[Invalid](#hyphen-run)', + errorContext: '`in `', errorDetail: null, errorRange: [ - 1, - 22, + 7, + 5, ], - fixInfo: null, - lineNumber: 297, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 3, + editColumn: 8, + insertText: 'in', + }, + lineNumber: 66, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[Invalid](#named-fragment-outside-heading)', + errorContext: '`in `', errorDetail: null, errorRange: [ - 1, - 42, + 7, + 5, ], - fixInfo: null, - lineNumber: 299, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 3, + editColumn: 8, + insertText: 'in', + }, + lineNumber: 72, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[Invalid](#UpperCase)', + errorContext: '`in `', errorDetail: null, errorRange: [ - 1, - 21, + 7, + 5, ], - fixInfo: null, - lineNumber: 301, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 3, + editColumn: 8, + insertText: 'in', + }, + lineNumber: 78, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[Invalid](#uppercase)', + errorContext: '`in `', errorDetail: null, errorRange: [ - 1, - 21, + 7, + 5, ], - fixInfo: null, - lineNumber: 303, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 3, + editColumn: 8, + insertText: 'in', + }, + lineNumber: 84, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[Invalid](#L12-not-a-line-link)', - errorDetail: 'Expected: #l12-not-a-line-link; Actual: #L12-not-a-line-link', + errorContext: '`in `', + errorDetail: null, errorRange: [ - 1, - 31, + 7, + 5, ], fixInfo: { - deleteCount: 20, - editColumn: 11, - insertText: '#l12-not-a-line-link', + deleteCount: 3, + editColumn: 8, + insertText: 'in', }, - lineNumber: 305, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + lineNumber: 90, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD038', + 'no-space-in-code', ], }, + ], + fixed: `# Inline Capture/Restore␊ + ␊ + hard tab␊ + space *in* emphasis {MD037}␊ + space \`in\` code {MD038}␊ + ␊ + ␊ + hard tab␊ + space *in * emphasis␊ + space \`in \` code␊ + ␊ + ␊ + hard tab␊ + space *in* emphasis {MD037}␊ + space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab␊ + space *in * emphasis␊ + space \`in\` code {MD038}␊ + ␊ + ␊ + hard tab␊ + space *in * emphasis␊ + space \`in \` code␊ + ␊ + ␊ + hard tab␊ + space *in* emphasis {MD037}␊ + space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab␊ + space *in * emphasis␊ + space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab␊ + space *in * emphasis␊ + space \`in \` code␊ + ␊ + ␊ + hard tab␊ + space *in * emphasis␊ + space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab {MD010}␊ + space *in * emphasis␊ + space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab␊ + space *in * emphasis␊ + space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab {MD010}␊ + space *in * emphasis␊ + space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab {MD010}␊ + space *in * emphasis␊ + space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab {MD010}␊ + space *in * emphasis␊ + space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab {MD010}␊ + space *in* emphasis {MD037}␊ + space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab {MD010}␊ + space *in * emphasis␊ + space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab {MD010}␊ + space *in * emphasis␊ + space \`in \` code␊ + ␊ + ␊ + hard tab␊ + space *in * emphasis␊ + space \`in \` code␊ + ␊ + ␊ + hard tab {MD010}␊ + space *in * emphasis␊ + space \`in \` code␊ + ␊ + ␊ + ␊ + hard tab␊ + space *in * emphasis␊ + space \`in \` code␊ + ␊ + ␊ + ␊ + hard tab {MD010}␊ + space *in* emphasis {MD037}␊ + space \`in \` code␊ + ␊ + ␊ + `, + } + +## inline-configure-file-invalid.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Inline Configure File Invalid␊ + ␊ + Not normally too long of a line, but it would have been from an inline config.␊ + ␊ + ␊ + `, + } + +## inline-configure-file-multiple-instances.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '[Invalid](#l7)', - errorDetail: null, - errorRange: [ - 1, - 14, - ], + errorContext: null, + errorDetail: 'Expected: ---; Actual: ***', + errorRange: null, fixInfo: null, - lineNumber: 307, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + lineNumber: 3, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD035', + 'hr-style', ], }, { - errorContext: '[Invalid](#L)', - errorDetail: null, - errorRange: [ - 1, - 13, - ], + errorContext: null, + errorDetail: 'Expected: ---; Actual: ***', + errorRange: null, fixInfo: null, - lineNumber: 309, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + lineNumber: 17, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD035', + 'hr-style', ], }, { - errorContext: '[Invalid](#L7extra)', - errorDetail: null, - errorRange: [ - 1, - 19, - ], - fixInfo: null, - lineNumber: 311, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + errorContext: null, + errorDetail: 'Expected: ---; Actual: ***', + errorRange: null, + fixInfo: null, + lineNumber: 30, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD035', + 'hr-style', ], }, + ], + fixed: `# Inline Configure File Multiple Instances␊ + ␊ + ***␊ + {MD035:3}␊ + ␊ + Trailing spaces: ␊ + ␊ + ␊ + ␊ + ***␊ + {MD035:17}␊ + ␊ + Trailing spaces: ␊ + ␊ + ␊ + ␊ + ***␊ + {MD035:30}␊ + ␊ + Trailing spaces: ␊ + `, + } + +## inline-configure-file-multiple-lines.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '[Invalid](#L30C)', - errorDetail: null, - errorRange: [ - 1, - 16, + errorContext: null, + errorDetail: 'Expected: ---; Actual: ***', + errorRange: null, + fixInfo: null, + lineNumber: 3, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', + ruleNames: [ + 'MD035', + 'hr-style', ], + }, + { + errorContext: null, + errorDetail: 'Expected: ---; Actual: ***', + errorRange: null, fixInfo: null, - lineNumber: 313, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + lineNumber: 17, + ruleDescription: 'Horizontal rule style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD035', + 'hr-style', ], }, + ], + fixed: `# Inline Configure File Multiple Lines␊ + ␊ + ***␊ + {MD035:3}␊ + ␊ + Trailing spaces: ␊ + ␊ + ␊ + ␊ + ***␊ + {MD035:17}␊ + ␊ + Trailing spaces: ␊ + `, + } + +## inline-configure-file-single-line.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '[Invalid](#L30Cextra)', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 70; Actual: 78', errorRange: [ - 1, - 21, + 71, + 8, ], fixInfo: null, - lineNumber: 315, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + lineNumber: 3, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD013', + 'line-length', ], }, { - errorContext: '[Invalid](#L30L12)', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 70; Actual: 85', errorRange: [ - 1, - 18, + 71, + 15, ], fixInfo: null, - lineNumber: 317, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + lineNumber: 5, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD013', + 'line-length', ], }, + ], + fixed: `# Inline Configure File Single Line␊ + ␊ + Not normally too long of a line, but it is here from an inline config. {MD013}␊ + ␊ + {MD013}␊ + `, + } + +## inline-configure-file-violations.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '[Invalid](#L30C12)', + errorContext: '* w', errorDetail: null, errorRange: [ - 1, - 18, + 10, + 3, ], - fixInfo: null, - lineNumber: 319, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 1, + editColumn: 11, + }, + lineNumber: 3, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '[Invalid](#L30C11-)', + errorContext: 'h *', errorDetail: null, errorRange: [ + 15, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 16, + }, + lineNumber: 3, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + ], + fixed: `# Inline Configure File Violations␊ + ␊ + Emphasis *with* spaces {MD037}␊ + ␊ + Trailing spaces: ␊ + ␊ + ␊ + `, + } + +## inline-disable-enable-file.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, 1, - 19, ], - fixInfo: null, - lineNumber: 321, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 3, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '[Invalid](#L30C11-L)', + errorContext: 'n *', errorDetail: null, errorRange: [ - 1, - 20, + 9, + 3, ], - fixInfo: null, - lineNumber: 323, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 1, + editColumn: 10, + }, + lineNumber: 5, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '[Invalid](#L30C11-L31C)', + errorContext: 'n *', errorDetail: null, errorRange: [ - 1, - 23, + 9, + 3, ], - fixInfo: null, - lineNumber: 325, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 1, + editColumn: 10, + }, + lineNumber: 13, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '[Invalid](#L30C11-C31)', + errorContext: 'n *', errorDetail: null, errorRange: [ - 1, - 22, + 9, + 3, ], - fixInfo: null, - lineNumber: 327, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 1, + editColumn: 10, + }, + lineNumber: 21, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '[Invalid](#C30)', + errorContext: 'n *', errorDetail: null, errorRange: [ - 1, - 15, + 9, + 3, ], - fixInfo: null, - lineNumber: 329, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 1, + editColumn: 10, + }, + lineNumber: 30, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: '[Invalid](#C11-C31)', + errorContext: '`in `', errorDetail: null, errorRange: [ - 1, - 19, + 7, + 5, ], - fixInfo: null, - lineNumber: 331, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 3, + editColumn: 8, + insertText: 'in', + }, + lineNumber: 23, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[Invalid](#C11-L4C31)', + errorContext: '`in `', errorDetail: null, errorRange: [ - 1, - 21, + 7, + 5, ], - fixInfo: null, - lineNumber: 333, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 3, + editColumn: 8, + insertText: 'in', + }, + lineNumber: 32, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD038', + 'no-space-in-code', ], }, ], - fixed: `# Valid/Invalid Link Fragments␊ - ␊ - ## Valid Fragments␊ - ␊ - [Valid](#validinvalid-link-fragments)␊ - ␊ - [Valid](#valid-fragments)␊ - ␊ - [Valid](#valid-h3-heading)␊ - ␊ - [Valid](#valid-heading-with-underscores-_)␊ - ␊ - [Valid](#valid-heading-with-emphasis)␊ - ␊ - [Valid](#valid-heading-with-code)␊ - ␊ - [Valid](#valid-heading-with-quotes--and-double-quotes-)␊ - ␊ - [Valid](#-valid-heading-with-emoji)␊ - ␊ - [Valid](#valid-heading--with-emoji-2)␊ - ␊ - [Valid](#valid-heading-2010-)␊ - ␊ - [Valid](#valid-heading-2004-%EF%B8%8F)␊ - ␊ - [Valid](#valid-closed-atx-heading)␊ - ␊ - [Valid](#valid-setext-heading)␊ - ␊ - [Valid](#valid-repeated-heading)␊ - ␊ - [Valid](#valid-repeated-heading-1)␊ - ␊ - [Valid](#valid-repeated-heading-2)␊ - ␊ - [Valid](#valid-heading-with-trailing-space-)␊ - ␊ - [Valid](#valid-heading-with-two-trailing-spaces--)␊ - ␊ - [Valid](#valid-heading-with-embedded--comment)␊ - ␊ - [Valid](#the-best-headin-for-testin-quotes)␊ - ␊ - [Valid](#valid-heading-about-lh%C3%B4pitals-rule)␊ - ␊ - [Valid](#valid-heading-about-lhôpitals-rule)␊ - ␊ - [Valid](#en-t%C3%AAte-valide-dans-fran%C3%A7ais-pour-v%C3%A9rification)␊ - ␊ - [Valid](#en-tête-valide-dans-français-pour-vérification)␊ - ␊ - [Valid](#%E6%A0%87%E9%A2%98)␊ - ␊ - [Valid](#标题)␊ - ␊ - [Valid](#valid-heading-is-a-link)␊ - ␊ - [Valid](#valid-heading-has-a-link)␊ - ␊ - [Valid](#valid-heading-is-a-reference-link)␊ - ␊ - [Valid](#valid-heading-has-a-reference-link)␊ - ␊ - [Valid](#valid-heading-has-)␊ - ␊ - [Valid](#valid_heading-escaped_underscores)␊ - ␊ - [Valid](#valid\\_heading\\-escaped\\_underscores)␊ - ␊ - [Valid](#valid-heading-with_embedded_escaping)␊ - ␊ - [Valid](#namedlink)␊ - ␊ - [Valid](#idlink)␊ - ␊ - [Valid](#myident)␊ - ␊ - [Valid](#HREFandID)␊ - ␊ - [Valid](#id-for-other-element)␊ - ␊ - [Valid](#id-after-name)␊ - ␊ - [Valid][goodref]␊ - ␊ - [Valid][escapedref]␊ - ␊ - [Valid](#l12-not-a-line-link)␊ - ␊ - [Valid](#latex-style)␊ - ␊ - [Valid](#area-pi--r2)␊ - ␊ - [Valid](#L7)␊ - ␊ - [Valid](#L30-L31)␊ - ␊ - [Valid](#L3C24-L88)␊ - ␊ - [Valid](#L304-L314C98)␊ - ␊ - [Valid](#L200C4-L3244C2)␊ - ␊ - ### Valid H3 Heading␊ + fixed: `# Heading␊ ␊ - Text␊ + hard tab {MD010}␊ ␊ - ### Valid Heading With Underscores _␊ + space *in* emphasis {MD037}␊ ␊ - Text␊ + space \`in \` code␊ ␊ - ### Valid *Heading* With _Emphasis_␊ + ␊ ␊ - Text␊ + hard tab␊ ␊ - ### Valid Heading With \`Code\`␊ + space *in* emphasis {MD037}␊ ␊ - Text␊ + space \`in \` code␊ ␊ - ### Valid Heading With Quotes ' And Double Quotes "␊ + ␊ ␊ - Text␊ + hard tab␊ ␊ - ### 🚀 Valid Heading With Emoji␊ + space *in* emphasis {MD037}␊ ␊ - Text␊ + space \`in\` code {MD038}␊ ␊ - ### Valid Heading 👀 With Emoji 2␊ + ␊ + ␊ ␊ - Text␊ + hard tab␊ ␊ - ### Valid Heading 20.10 ❌␊ + space *in* emphasis {MD037}␊ ␊ - Text␊ - ␊ - ### Valid Heading 20.04 ✔️␊ - ␊ - Text␊ - ␊ - ### Valid Closed ATX Heading ###␊ - ␊ - Text␊ - ␊ - Valid Setext Heading␊ - --------------------␊ - ␊ - Text␊ - ␊ - ### Valid Repeated Heading␊ - ␊ - Text␊ - ␊ - ### Valid Repeated Heading␊ - ␊ - Text␊ - ␊ - ### Valid Repeated Heading␊ - ␊ - ### Valid Heading With Trailing Space ␊ - ␊ - ### Valid Heading With Two Trailing Spaces ␊ - ␊ - ### Valid Heading With Embedded Comment␊ - ␊ - ### The "Best" Headin' for Testin' Quotes␊ - ␊ - ### Valid Heading About L'Hôpital's Rule␊ - ␊ - ### En-tête Valide Dans Français Pour Vérification␊ - ␊ - ### 标题␊ - ␊ - ### [Valid Heading Is a Link](https://example.com)␊ - ␊ - ### Valid Heading [Has a Link](https://example.com)␊ - ␊ - ### [Valid Heading Is a Reference Link][goodref]␊ - ␊ - ### Valid Heading [Has a Reference Link][goodref]␊ - ␊ - ### ![Valid Heading Is an Image](https://example.com)␊ - ␊ - ### Valid Heading Has ![an Image](https://example.com)␊ - ␊ - ### Valid_Heading Escaped_Underscores␊ - ␊ - ### Valid Heading\\-With\\_Embedded\\_Escaping␊ - ␊ - ### L12 Not A Line Link␊ - ␊ - ## $\\LaTeX$ Style␊ - ␊ - ## Area: $\\pi * r^2$␊ - ␊ - ␊ - ␊ - ␊ - ␊ - ␊ - ␊ - Text␊ - ␊ -

␊ - ␊ -

␊ - ␊ - ␊ - ␊ - ␊ - ␊ - [goodref]: #namedlink␊ - ␊ - [escapedref]: #valid\\_heading\\-escaped\\_underscores␊ - ␊ - ## Invalid Fragments␊ - ␊ - [Invalid](#valid-heading-is-an-image) {MD051}␊ - ␊ - [Invalid](#valid-heading-2004-) {MD051}␊ - ␊ - [Invalid](#valid-repeated-heading-3) {MD051}␊ - ␊ - [Invalid](#invalid-fragment) {MD051}␊ - ␊ - [Invalid](#myname) {MD051}␊ - ␊ - [Invalid](#HREFandID) {MD051}␊ - ␊ - [Invalid](#name-for-other-element) {MD051}␊ - ␊ - [Invalid](#name-should-be-ignored) {MD051}␊ - ␊ - [Invalid](#not-an-id-should-be-ignored) {MD051}␊ - ␊ - [Invalid {MD051}](#multi-line␊ - "Title")␊ - ␊ - [Invalid][badref]␊ - ␊ - [badref]: #missing "{MD051}"␊ - ␊ - ## Inconsistent Case Fragments␊ - ␊ - [Title](#valid-fragments) {MD051}␊ - ␊ - [ALL CAPS](#namedlink) {MD051}␊ - ␊ - [Multi-line {MD051}](#NAMEDLINK␊ - "Title")␊ - ␊ - [MiXeD][mixedref]␊ - ␊ - [mixedref]: #idlink "{MD051}"␊ - ␊ - ## Valid Named Fragments␊ - ␊ - [Valid](#named-fragment)␊ - ␊ - [Valid](#valid-heading-with-named-fragment-named-fragment)␊ - ␊ - [Valid](#another_fragment_123)␊ - ␊ - [Valid](#valid-heading-with-another-named-fragment-another_fragment_123)␊ - ␊ - [Valid](#closed-atx)␊ - ␊ - [Valid](#setext)␊ - ␊ - ### Valid Heading with Named Fragment {#named-fragment}␊ - ␊ - ### Valid Heading with Another Named Fragment {#another_fragment_123}␊ - ␊ - ### Valid Closed ATX Heading with Named Fragment {#closed-atx} ###␊ - ␊ - Valid Setext Heading with Named Fragment {#setext}␊ - --------------------------------------------------␊ - ␊ - ## Invalid Named Fragments␊ - ␊ - ### Invalid Heading with Named Fragment {#embedded space}␊ - ␊ - ### Invalid Heading with Named Fragment {#hyphen--run}␊ - ␊ - ### Invalid Heading with Named Fragment {#UpperCase}␊ - ␊ - {#named-fragment-outside-heading}␊ - ␊ - [Invalid](#embedded-space) {MD051}␊ - ␊ - [Invalid](#embedded_space) {MD051}␊ - ␊ - [Invalid](#embedded) {MD051}␊ - ␊ - [Invalid](#hyphen--run) {MD051}␊ - ␊ - [Invalid](#hyphen-run) {MD051}␊ - ␊ - [Invalid](#named-fragment-outside-heading) {MD051}␊ - ␊ - [Invalid](#UpperCase) {MD051}␊ - ␊ - [Invalid](#uppercase) {MD051}␊ - ␊ - [Invalid](#l12-not-a-line-link) {MD051}␊ - ␊ - [Invalid](#l7) {MD051}␊ - ␊ - [Invalid](#L) {MD051}␊ - ␊ - [Invalid](#L7extra) {MD051}␊ - ␊ - [Invalid](#L30C) {MD051}␊ - ␊ - [Invalid](#L30Cextra) {MD051}␊ - ␊ - [Invalid](#L30L12) {MD051}␊ - ␊ - [Invalid](#L30C12) {MD051}␊ - ␊ - [Invalid](#L30C11-) {MD051}␊ - ␊ - [Invalid](#L30C11-L) {MD051}␊ - ␊ - [Invalid](#L30C11-L31C) {MD051}␊ - ␊ - [Invalid](#L30C11-C31) {MD051}␊ - ␊ - [Invalid](#C30) {MD051}␊ - ␊ - [Invalid](#C11-C31) {MD051}␊ - ␊ - [Invalid](#C11-L4C31) {MD051}␊ + space \`in\` code {MD038}␊ ␊ ␊ `, } -## link-style-autolink-only.md +## inline-disable-enable.md > Snapshot 1 { errors: [ { - errorContext: '[url](https://example.com)', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ - 6, - 26, + 5, + 1, ], fixInfo: { - deleteCount: 26, - editColumn: 6, - insertText: '', + deleteCount: 1, + editColumn: 5, + insertText: ' ', }, lineNumber: 3, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '![url](https://example.com)', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ - 6, - 27, + 5, + 1, ], - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 11, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '[url]()', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ - 6, - 28, + 5, + 1, ], fixInfo: { - deleteCount: 28, - editColumn: 6, - insertText: '', + deleteCount: 1, + editColumn: 5, + insertText: ' ', }, - lineNumber: 7, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 19, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD010', + 'no-hard-tabs', ], }, { - errorContext: '![url]()', - errorDetail: null, + errorContext: null, + errorDetail: 'Column: 5', errorRange: [ - 6, - 29, + 5, + 1, ], - fixInfo: null, - lineNumber: 9, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 27, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 35, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 43, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 45, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 47, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 52, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 55, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 61, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 64, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 67, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 73, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 76, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 77, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 79, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 82, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 85, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 93, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 95, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 97, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 99, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Column: 5', + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: ' ', + }, + lineNumber: 101, + ruleDescription: 'Hard tabs', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + ruleNames: [ + 'MD010', + 'no-hard-tabs', + ], + }, + { + errorContext: null, + errorDetail: 'Element: b', + errorRange: [ + 10, + 3, + ], + fixInfo: null, + lineNumber: 69, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 3, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 11, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 20, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 21, + }, + lineNumber: 15, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 19, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 20, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 21, + }, + lineNumber: 23, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 27, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 20, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 21, + }, + lineNumber: 31, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 35, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 20, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 21, + }, + lineNumber: 39, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 43, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 47, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 52, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 55, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 61, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 64, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 67, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 73, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 76, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 77, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 79, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 20, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 21, + }, + lineNumber: 81, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 82, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 20, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 21, + }, + lineNumber: 84, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 85, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 20, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 21, + }, + lineNumber: 87, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 20, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 21, + }, + lineNumber: 89, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 20, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 21, + }, + lineNumber: 90, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 93, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 95, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 97, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 99, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 20, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 21, + }, + lineNumber: 100, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 28, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 29, + }, + lineNumber: 101, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 20, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 21, + }, + lineNumber: 103, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 20, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 21, + }, + lineNumber: 104, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: 'n *', + errorDetail: null, + errorRange: [ + 20, + 3, + ], + fixInfo: { + deleteCount: 1, + editColumn: 21, + }, + lineNumber: 105, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleNames: [ + 'MD037', + 'no-space-in-emphasis', + ], + }, + { + errorContext: '`in `', + errorDetail: null, + errorRange: [ + 57, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 3, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`in `', + errorDetail: null, + errorRange: [ + 57, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 11, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`in `', + errorDetail: null, + errorRange: [ + 49, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 50, + insertText: 'in', + }, + lineNumber: 15, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`in `', + errorDetail: null, + errorRange: [ + 57, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 19, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`in `', + errorDetail: null, + errorRange: [ + 57, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 27, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`in `', + errorDetail: null, + errorRange: [ + 57, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 35, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`in `', + errorDetail: null, + errorRange: [ + 57, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 43, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`in `', + errorDetail: null, + errorRange: [ + 57, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 47, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`in `', + errorDetail: null, + errorRange: [ + 57, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 52, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`in `', + errorDetail: null, + errorRange: [ + 57, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 55, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`in `', + errorDetail: null, + errorRange: [ + 57, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 61, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`in `', + errorDetail: null, + errorRange: [ + 57, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 67, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`in `', + errorDetail: null, + errorRange: [ + 57, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 73, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + ruleNames: [ + 'MD038', + 'no-space-in-code', + ], + }, + { + errorContext: '`in `', + errorDetail: null, + errorRange: [ + 57, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 76, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + ruleNames: [ + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[url](https://example.com "tit...', + errorContext: '`in `', errorDetail: null, errorRange: [ - 6, - 34, + 57, + 5, ], fixInfo: { - deleteCount: 34, - editColumn: 6, - insertText: '', + deleteCount: 3, + editColumn: 58, + insertText: 'in', }, - lineNumber: 11, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 77, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '![url](https://example.com "ti...', + errorContext: '`in `', errorDetail: null, errorRange: [ - 6, - 35, + 57, + 5, ], - fixInfo: null, - lineNumber: 13, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 79, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[url](https://example.com', + errorContext: '`in `', errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 15, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + errorRange: [ + 57, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 82, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '![url](https://example.com', + errorContext: '`in `', errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 18, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + errorRange: [ + 57, + 5, + ], + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 85, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[text][url]', + errorContext: '`in `', errorDetail: null, errorRange: [ - 6, - 11, + 49, + 5, ], fixInfo: { - deleteCount: 11, - editColumn: 6, - insertText: '', + deleteCount: 3, + editColumn: 50, + insertText: 'in', }, - lineNumber: 21, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 87, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '![text][url]', + errorContext: '`in `', errorDetail: null, errorRange: [ - 6, - 12, + 49, + 5, ], - fixInfo: null, - lineNumber: 23, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 3, + editColumn: 50, + insertText: 'in', + }, + lineNumber: 90, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[url][]', + errorContext: '`in `', errorDetail: null, errorRange: [ - 6, - 7, + 57, + 5, ], fixInfo: { - deleteCount: 7, - editColumn: 6, - insertText: '', + deleteCount: 3, + editColumn: 58, + insertText: 'in', }, - lineNumber: 25, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 93, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '![url][]', + errorContext: '`in `', errorDetail: null, errorRange: [ - 6, - 8, + 57, + 5, ], - fixInfo: null, - lineNumber: 27, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 95, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[url]', + errorContext: '`in `', errorDetail: null, errorRange: [ - 6, + 57, 5, ], fixInfo: { - deleteCount: 5, - editColumn: 6, - insertText: '', + deleteCount: 3, + editColumn: 58, + insertText: 'in', }, - lineNumber: 29, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 97, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '![url]', + errorContext: '`in `', errorDetail: null, errorRange: [ - 6, - 6, + 57, + 5, ], - fixInfo: null, - lineNumber: 31, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 3, + editColumn: 58, + insertText: 'in', + }, + lineNumber: 99, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[url](https://example.com/embe...', + errorContext: '`in `', errorDetail: null, errorRange: [ - 6, - 46, + 57, + 5, ], fixInfo: { - deleteCount: 46, - editColumn: 6, - insertText: '', + deleteCount: 3, + editColumn: 58, + insertText: 'in', }, - lineNumber: 39, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 101, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[url](https://example.com/back...', + errorContext: '`in `', errorDetail: null, errorRange: [ - 6, - 44, + 49, + 5, ], fixInfo: { - deleteCount: 44, - editColumn: 6, - insertText: '', + deleteCount: 3, + editColumn: 50, + insertText: 'in', }, - lineNumber: 41, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 103, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[embedded-backslash]', + errorContext: '`in `', errorDetail: null, errorRange: [ - 6, - 20, + 49, + 5, ], fixInfo: { - deleteCount: 20, - editColumn: 6, - insertText: '', + deleteCount: 3, + editColumn: 50, + insertText: 'in', }, - lineNumber: 43, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 105, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, + ], + fixed: `# Heading␊ + ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab / space *in * emphasis / space \`in \` code␊ + ␊ + ␊ + ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab / space *in* emphasis {MD037} / space \`in \` code␊ + ␊ + ␊ + ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + before after␊ + ␊ + hard tab / space *in* emphasis {MD037} / space \`in \` code␊ + ␊ + beforeafter␊ + ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + ␊ + ␊ + hard tab / space *in* emphasis {MD037} / space \`in \` code␊ + ␊ + ␊ + ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + hard tab {MD010} ␊ + ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + hard tab ␊ + ␊ + ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + ␊ + hard tab / space *in * emphasis / space \`in \` code␊ + ␊ + ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in \` code␊ + ␊ + ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + embedded {MD033} HTML␊ + ␊ + ␊ + ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + hard tab / space *in * emphasis / space \`in \` code␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + hard tab / space *in * emphasis / space \`in \` code␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + hard tab / space *in* emphasis {MD037} / space \`in \` code␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + hard tab / space *in* emphasis {MD037} / space \`in \` code␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + hard tab / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + hard tab / space *in* emphasis {MD037} / space \`in \` code␊ + hard tab / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + hard tab / space *in * emphasis / space \`in \` code ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + hard tab / space *in * emphasis / space \`in \` code␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + hard tab / space *in * emphasis / space \`in \` code␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + hard tab / space *in* emphasis {MD037} / space \`in \` code ␊ + hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + hard tab / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + hard tab / space *in* emphasis {MD037} / space \`in \` code␊ + hard tab / space *in* emphasis {MD037} / space \`in\` code {MD038}␊ + ␊ + `, + } + +## inline_html-allowed_elements.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '[backslash-escape]', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: h2', errorRange: [ - 6, - 18, + 1, + 4, ], - fixInfo: { - deleteCount: 18, - editColumn: 6, - insertText: '', - }, - lineNumber: 45, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url](', - }, - lineNumber: 57, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 11, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url](https://example.com/\\(pa...', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: br', errorRange: [ - 6, - 37, + 1, + 4, ], - fixInfo: { - deleteCount: 37, - editColumn: 6, - insertText: '', - }, - lineNumber: 59, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 17, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url](https://example.com/pa(r...', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: br', errorRange: [ - 6, - 37, + 1, + 5, ], - fixInfo: { - deleteCount: 37, - editColumn: 6, - insertText: '', - }, - lineNumber: 61, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 19, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url](relative/path)', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: br', errorRange: [ - 6, - 20, + 1, + 5, ], fixInfo: null, - lineNumber: 63, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 21, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url](#fragment)', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: br', errorRange: [ + 1, 6, - 16, ], fixInfo: null, - lineNumber: 65, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 23, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url](https://example.com/an>g...', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: br', errorRange: [ - 6, - 35, + 1, + 15, ], fixInfo: null, - lineNumber: 69, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 25, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, - ], - fixed: `# Link Style Autolink Only␊ - ␊ - Text text {MD054}␊ - ␊ - Text ![url](https://example.com) text {MD054}␊ - ␊ - Text text {MD054}␊ - ␊ - Text ![url]() text {MD054}␊ - ␊ - Text text {MD054}␊ - ␊ - Text ![url](https://example.com "title") text {MD054}␊ - ␊ - Text {MD054} [url](https://example.com␊ - "title") text␊ - ␊ - Text {MD054} ![url](https://example.com␊ - "title") text␊ - ␊ - Text text {MD054}␊ - ␊ - Text ![text][url] text {MD054}␊ - ␊ - Text text {MD054}␊ - ␊ - Text ![url][] text {MD054}␊ - ␊ - Text text {MD054}␊ - ␊ - Text ![url] text {MD054}␊ - ␊ - Text text␊ - ␊ - [url]: https://example.com "title"␊ - ␊ - [undefined]␊ - ␊ - Text text {MD054}␊ - ␊ - Text text {MD054}␊ - ␊ - Text text {MD054}␊ - ␊ - Text text {MD054}␊ - ␊ - Text text␊ - ␊ - Text text␊ - ␊ - [embedded-backslash]: https://example.com/embedded\\3backslash␊ - ␊ - [backslash-escape]: https://example.com/backslash\\[escape␊ - ␊ - Text [url]() text {MD054}␊ - ␊ - Text text {MD054}␊ - ␊ - Text text {MD054}␊ - ␊ - Text text {MD054}␊ - ␊ - Text [url](relative/path) text {MD054}␊ - ␊ - Text [url](#fragment) text {MD054}␊ - ␊ - Text text␊ - ␊ - Text [url](https://example.com/an>g) text {MD054}␊ - ␊ - ␊ - `, - } - -## link-style-autolink-or-inline.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '[text][url]', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: br', errorRange: [ - 6, - 11, + 1, + 16, ], - fixInfo: { - deleteCount: 11, - editColumn: 6, - insertText: '[text](https://example.com)', - }, - lineNumber: 21, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 27, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '![text][url]', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: br', errorRange: [ - 6, - 12, + 1, + 23, ], - fixInfo: { - deleteCount: 12, - editColumn: 6, - insertText: '![text](https://example.com)', - }, - lineNumber: 23, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 29, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url][]', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: br', errorRange: [ - 6, - 7, + 1, + 24, ], - fixInfo: { - deleteCount: 7, - editColumn: 6, - insertText: '[url](https://example.com)', - }, - lineNumber: 25, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 31, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '![url][]', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: article', errorRange: [ - 6, - 8, + 1, + 9, ], - fixInfo: { - deleteCount: 8, - editColumn: 6, - insertText: '![url](https://example.com)', - }, - lineNumber: 27, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 37, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url]', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: article', errorRange: [ - 6, - 5, + 1, + 9, ], - fixInfo: { - deleteCount: 5, - editColumn: 6, - insertText: '[url](https://example.com)', - }, - lineNumber: 29, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 42, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '![url]', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: br', errorRange: [ - 6, - 6, + 1, + 5, ], - fixInfo: { - deleteCount: 6, - editColumn: 6, - insertText: '![url](https://example.com)', - }, - lineNumber: 31, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 46, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[embedded-backslash]', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: Article', errorRange: [ - 6, - 20, + 1, + 9, ], - fixInfo: { - deleteCount: 20, - editColumn: 6, - insertText: '[embedded-backslash](https://example.com/embedded\\3backslash)', - }, - lineNumber: 43, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 50, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[backslash-escape]', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: Br', errorRange: [ - 6, - 18, + 1, + 5, ], - fixInfo: { - deleteCount: 18, - editColumn: 6, - insertText: '[backslash-escape](https://example.com/backslash\\[escape)', - }, - lineNumber: 45, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 54, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, ], - fixed: `# Link Style Autolink or Inline␊ - ␊ - Text [url](https://example.com) text␊ - ␊ - Text ![url](https://example.com) text␊ - ␊ - Text [url]() text␊ - ␊ - Text ![url]() text␊ - ␊ - Text [url](https://example.com "title") text␊ - ␊ - Text ![url](https://example.com "title") text␊ - ␊ - Text [url](https://example.com␊ - "title") text␊ - ␊ - Text ![url](https://example.com␊ - "title") text␊ - ␊ - Text [text](https://example.com) text {MD054}␊ - ␊ - Text ![text](https://example.com) text {MD054}␊ - ␊ - Text [url](https://example.com) text {MD054}␊ - ␊ - Text ![url](https://example.com) text {MD054}␊ - ␊ - Text [url](https://example.com) text {MD054}␊ - ␊ - Text ![url](https://example.com) text {MD054}␊ + fixed: `# inline_html-allowed_elements␊ ␊ - Text text␊ +

This is allowed.

␊ ␊ - [url]: https://example.com "title"␊ +

This is not allowed. {MD033}

␊ ␊ - [undefined]␊ +

This is allowed.

␊ ␊ - Text [url](https://example.com/embedded\\3backslash) text␊ +

This

is not

allowed. {MD033}␊ ␊ - Text [url](https://example.com/backslash\\[escape) text␊ +

This

is not

allowed. {MD033}␊ ␊ - Text [embedded-backslash](https://example.com/embedded\\3backslash) text {MD054}␊ +
␊ ␊ - Text [backslash-escape](https://example.com/backslash\\[escape) text {MD054}␊ +
␊ ␊ - Text text␊ +
{MD033}␊ ␊ - Text text␊ +
{MD033}␊ ␊ - [embedded-backslash]: https://example.com/embedded\\3backslash␊ +
{MD033}␊ ␊ - [backslash-escape]: https://example.com/backslash\\[escape␊ +
{MD033}␊ ␊ - Text [url]() text␊ +
{MD033}␊ ␊ - Text [url]() text␊ +
{MD033}␊ ␊ - Text [url](https://example.com/\\(parens\\)) text␊ +
{MD033}␊ ␊ - Text [url](https://example.com/pa(re(ns))) text␊ +
{MD033}␊ ␊ - Text [url](relative/path) text␊ +

␊ + This is allowed.␊ +

␊ ␊ - Text [url](#fragment) text␊ +
{MD033}␊ + This is not allowed.␊ +
␊ ␊ - Text text␊ +

␊ +

{MD033}␊ + This is not allowed.␊ +
␊ +
␊ +
{MD033}␊ +

␊ ␊ - Text [url](https://example.com/an>g) text␊ +

␊ +

{MD033}␊ + This is not allowed.␊ +
␊ +
␊ +
{MD033}␊ +

␊ ␊ ␊ `, } -## link-style-autolink-or-reference.md +## inline_html.md > Snapshot 1 { errors: [ { - errorContext: '[url](https://example.com)', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: h1', errorRange: [ - 6, - 26, + 1, + 4, ], - fixInfo: { - deleteCount: 26, - editColumn: 6, - insertText: '', - }, + fixInfo: null, lineNumber: 3, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '![url](https://example.com)', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: p', errorRange: [ - 6, - 27, + 1, + 3, ], fixInfo: null, lineNumber: 5, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '[url]()', - errorDetail: null, - errorRange: [ - 6, - 28, - ], - fixInfo: { - deleteCount: 28, - editColumn: 6, - insertText: '', - }, - lineNumber: 7, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '![url]()', - errorDetail: null, - errorRange: [ - 6, - 29, - ], - fixInfo: null, - lineNumber: 9, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url](https://example.com "tit...', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: element', errorRange: [ - 6, - 34, + 12, + 9, ], - fixInfo: { - deleteCount: 34, - editColumn: 6, - insertText: '', - }, - lineNumber: 11, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 79, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '![url](https://example.com "ti...', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: hr', errorRange: [ - 6, - 35, + 1, + 4, ], fixInfo: null, - lineNumber: 13, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 88, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url](https://example.com', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Element: hr', + errorRange: [ + 1, + 5, + ], fixInfo: null, - lineNumber: 15, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 90, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '![url](https://example.com', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Element: a', + errorRange: [ + 1, + 30, + ], fixInfo: null, - lineNumber: 18, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 94, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url](https://example.com/embe...', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: a', errorRange: [ - 6, + 1, 46, ], - fixInfo: { - deleteCount: 46, - editColumn: 6, - insertText: '', - }, - lineNumber: 39, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 96, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url](https://example.com/back...', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: a', errorRange: [ - 6, - 44, + 1, + 51, ], - fixInfo: { - deleteCount: 44, - editColumn: 6, - insertText: '', - }, - lineNumber: 41, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 98, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url](', - }, - lineNumber: 57, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 124, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url](https://example.com/\\(pa...', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: reference', errorRange: [ - 6, - 37, + 16, + 11, ], - fixInfo: { - deleteCount: 37, - editColumn: 6, - insertText: '', - }, - lineNumber: 59, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 128, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url](https://example.com/pa(r...', - errorDetail: null, + errorContext: null, + errorDetail: 'Element: reference', errorRange: [ - 6, - 37, + 16, + 11, ], - fixInfo: { - deleteCount: 37, - editColumn: 6, - insertText: '', - }, - lineNumber: 61, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: null, + lineNumber: 130, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD033', + 'no-inline-html', ], }, { - errorContext: '[url](relative/path)', + errorContext: '`code g...', - errorDetail: null, - errorRange: [ - 6, - 35, - ], + errorContext: null, + errorDetail: 'Expected: indented; Actual: fenced', + errorRange: null, fixInfo: null, - lineNumber: 69, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 114, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD046', + 'code-block-style', ], }, ], - fixed: `# Link Style Autolink or Reference␊ + fixed: `# Regular heading␊ ␊ - Text text {MD054}␊ +

Inline HTML Heading {MD033}

␊ ␊ - Text ![url](https://example.com) text {MD054}␊ +

More inline HTML {MD033}␊ + but this time on multiple lines␊ +

␊ ␊ - Text text {MD054}␊ +

This shouldn't trigger as it's inside a code block

␊ ␊ - Text ![url]() text {MD054}␊ + \`\`\`text␊ +

Neither should this as it's also in a code block {MD046:11}

␊ + \`\`\`␊ ␊ - Text text {MD054}␊ + ## Elements in code spans␊ ␊ - Text ![url](https://example.com "title") text {MD054}␊ + Text \`\` text \\\` text␊ + Text \\\` text \`\` text␊ + Text \\\` text \\\` text \`\` text␊ + Text \\\` text \`\` text \`\` text␊ + Text \\\` text \`\` text \\\` text \`\` text␊ + Text \\\`\\\` text \`\` text␊ + Text \`\` text \\\` text \`\` text␊ ␊ - Text {MD054} [url](https://example.com␊ - "title") text␊ + ## Elements in multiple line code spans␊ ␊ - Text {MD054} ![url](https://example.com␊ - "title") text␊ + Text \`code␊ + \`␊ ␊ - Text [text][url] text␊ + \`code␊ + \`␊ ␊ - Text ![text][url] text␊ + \`code␊ + \` text␊ ␊ - Text [url][] text␊ + Text \`code␊ + code␊ + ␊ + \`␊ ␊ - Text ![url][] text␊ + \`\`code \`\`\` \`\`\`\` \`␊ + code␊ + \`\`␊ ␊ - Text [url] text␊ + Text \`code␊ + ␊ + code\` text␊ ␊ - Text ![url] text␊ + Text \`code code␊ + code \` text␊ ␊ - Text text␊ + Text \`code ␊ + code code\` text␊ ␊ - [url]: https://example.com "title"␊ + Text \`code code␊ + code code␊ + code code\` text␊ ␊ - [undefined]␊ + Text \`\`\`\`code code␊ + code code␊ + code code\`\`\`\` text␊ ␊ - Text text {MD054}␊ + Text \`code code␊ + code \` text␊ + text \`code code␊ + code code\` text␊ ␊ - Text text {MD054}␊ + Text \`code code␊ + code code\` text␊ + text \`code code␊ + code \` text␊ ␊ - Text [embedded-backslash] text␊ + Text \`code code␊ + code \` text␊ + text \`code code␊ + code \` text␊ ␊ - Text [backslash-escape] text␊ + Text \`code code␊ + code\` text text \`code {MD033}␊ + code code\` text␊ ␊ - Text text␊ + ## Slash in element name␊ ␊ - Text text␊ + Text **\\\\another\\directory\\\\** text␊ ␊ - [embedded-backslash]: https://example.com/embedded\\3backslash␊ + ## Self-closing elements␊ ␊ - [backslash-escape]: https://example.com/backslash\\[escape␊ +
{MD033}␊ ␊ - Text [url]() text {MD054}␊ +
{MD033}␊ ␊ - Text text {MD054}␊ + ## Links␊ ␊ - Text text {MD054}␊ +
Google {MD033}␊ ␊ - Text text {MD054}␊ + Google {MD033}␊ ␊ - Text [url](relative/path) text {MD054}␊ + Google {MD033}␊ ␊ - Text [url](#fragment) text {MD054}␊ + ## Unterminated code span followed by element in code span␊ ␊ - Text text␊ + Text text \`text text␊ ␊ - Text [url](https://example.com/an>g) text {MD054}␊ + Text \`\` text␊ + ␊ + Text␊ + text \`text␊ + text␊ + ␊ + Text \`code code\` text␊ + ␊ + Text \`code code\` text {MD038}␊ + ␊ + \`\`\`lang␊ + code {MD046:114}␊ + ␊ + ␊ + \`\`\`␊ + ␊ + Text \`code code\` text␊ + ␊ + Text text {MD033}␊ + ␊ + A [][a-reference] is problematic. {MD033}␊ + ␊ + A [link with][a-] is okay.␊ + ␊ + A link with [a-][] is problematic. {MD033}␊ + ␊ + A link with [a-] is problematic. {MD033}␊ + ␊ + [a-reference]: https://example.com/␊ + [a-]: https://example.com/␊ + `, + } + +## invalid-ul-style-style.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: null, + errorDetail: 'Expected: dash; Actual: asterisk', + errorRange: [ + 1, + 2, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '-', + }, + lineNumber: 3, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + ruleNames: [ + 'MD004', + 'ul-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: dash; Actual: asterisk', + errorRange: [ + 1, + 4, + ], + fixInfo: { + deleteCount: 1, + editColumn: 3, + insertText: '-', + }, + lineNumber: 4, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + ruleNames: [ + 'MD004', + 'ul-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: dash; Actual: plus', + errorRange: [ + 1, + 2, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '-', + }, + lineNumber: 6, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + ruleNames: [ + 'MD004', + 'ul-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: dash; Actual: plus', + errorRange: [ + 1, + 4, + ], + fixInfo: { + deleteCount: 1, + editColumn: 3, + insertText: '-', + }, + lineNumber: 7, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + ruleNames: [ + 'MD004', + 'ul-style', + ], + }, + ], + fixed: `# Invalid ul-style style␊ + ␊ + - Item {MD004}␊ + - Item {MD004}␊ + ␊ + - Item {MD004}␊ + - Item {MD004}␊ + ␊ + - Item␊ + - Item␊ ␊ ␊ `, } -## link-style-collapsed-only.md +## jekyll_post.md > Snapshot 1 { errors: [ { - errorContext: '[url](https://example.com)', - errorDetail: null, - errorRange: [ - 6, - 26, - ], - fixInfo: null, - lineNumber: 3, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '![url](https://example.com)', - errorDetail: null, - errorRange: [ - 6, - 27, - ], - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '[url]()', - errorDetail: null, - errorRange: [ - 6, - 28, - ], - fixInfo: null, - lineNumber: 7, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '![url]()', - errorDetail: null, - errorRange: [ - 6, - 29, - ], - fixInfo: null, - lineNumber: 9, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '[url](https://example.com "tit...', - errorDetail: null, - errorRange: [ - 6, - 34, - ], + errorContext: null, + errorDetail: 'Expected: h2; Actual: h3', + errorRange: null, fixInfo: null, - lineNumber: 11, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 16, + ruleDescription: 'Heading levels should only increment by one level at a time', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD001', + 'heading-increment', ], }, { - errorContext: '![url](https://example.com "ti...', + errorContext: 'heading1 {MD025}', errorDetail: null, - errorRange: [ - 6, - 35, - ], + errorRange: null, fixInfo: null, - lineNumber: 13, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 12, + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD025', + 'single-title', + 'single-h1', ], }, + ], + fixed: `---␊ + layout: post␊ + title: Hello World!␊ + category: Meta␊ + tags:␊ + - tag␊ + - another tag␊ + - one more tag␊ + url: https://example.com␊ + excerpt: Hello World! Vestibulum imperdiet adipiscing arcu, quis aliquam dolor condimentum dapibus. Aliquam fermentum leo aliquet quam volutpat et molestie mauris mattis. Suspendisse semper consequat velit in suscipit.␊ + ---␊ + # heading1 {MD025}␊ + ␊ + This is just a sample post.␊ + ␊ + ### offending heading3 {MD001}␊ + `, + } + +## jekyll_post_2.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '[url](https://example.com', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: h2; Actual: h3', errorRange: null, fixInfo: null, - lineNumber: 15, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 17, + ruleDescription: 'Heading levels should only increment by one level at a time', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD001', + 'heading-increment', ], }, { - errorContext: '![url](https://example.com', + errorContext: 'header1 {MD025}', errorDetail: null, errorRange: null, fixInfo: null, - lineNumber: 18, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 13, + ruleDescription: 'Multiple top-level headings in the same document', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD025', + 'single-title', + 'single-h1', ], }, + ], + fixed: `---␊ + layout: post␊ + title: Hello World!␊ + category: Meta␊ + tags:␊ + - tag␊ + - another tag␊ + - one more tag␊ + url: http://example.com␊ + excerpt: Hello World! Vestibulum imperdiet adipiscing arcu, quis aliquam dolor condimentum dapibus. Aliquam fermentum leo aliquet quam volutpat et molestie mauris mattis. Suspendisse semper consequat velit in suscipit.␊ + ---␊ + ␊ + # header1 {MD025}␊ + ␊ + This is just a sample post.␊ + ␊ + ### offending header3 {MD001}␊ + `, + } + +## line-breaks-inside-code-spans.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '[text][url]', + errorContext: '` code {MD038}', errorDetail: null, errorRange: [ 6, - 11, + 14, ], - fixInfo: null, - lineNumber: 21, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 13, + editColumn: 7, + insertText: 'code {MD038}', + }, + lineNumber: 33, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '![text][url]', + errorContext: 'span `', errorDetail: null, errorRange: [ + 1, 6, - 12, ], - fixInfo: null, - lineNumber: 23, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 5, + editColumn: 1, + insertText: 'span', + }, + lineNumber: 39, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[url]', + errorContext: '` code {MD038}', errorDetail: null, errorRange: [ 6, - 5, + 14, ], - fixInfo: null, - lineNumber: 29, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 13, + editColumn: 7, + insertText: 'code {MD038}', + }, + lineNumber: 49, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '![url]', + errorContext: 'span `', errorDetail: null, errorRange: [ - 6, + 1, 6, ], - fixInfo: null, - lineNumber: 31, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 5, + editColumn: 1, + insertText: 'span', + }, + lineNumber: 57, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '', + errorContext: 'span `', errorDetail: null, errorRange: [ + 1, 6, - 21, ], - fixInfo: null, - lineNumber: 33, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 5, + editColumn: 1, + insertText: 'span', + }, + lineNumber: 63, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[url](https://example.com/embe...', + errorContext: '` code {MD038}', errorDetail: null, errorRange: [ 6, - 46, + 14, ], - fixInfo: null, - lineNumber: 39, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 13, + editColumn: 7, + insertText: 'code {MD038}', + }, + lineNumber: 65, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: '[url](https://example.com/back...', + errorContext: 'code code `', errorDetail: null, errorRange: [ - 6, - 44, + 1, + 11, ], - fixInfo: null, - lineNumber: 41, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 10, + editColumn: 1, + insertText: 'code code', + }, + lineNumber: 73, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD038', + 'no-space-in-code', ], }, + ], + fixed: `# Line breaks inside code spans␊ + ␊ + Text \`code␊ + span\` text.␊ + ␊ + Text \`code␊ + span\` text \`code␊ + span\` text.␊ + ␊ + Text \`code␊ + span\` text \`code␊ + span\` text \`code␊ + span\` text.␊ + ␊ + Text \`code␊ + span␊ + code␊ + span\` text.␊ + ␊ + Text \`code␊ + span\` text \`code span\`␊ + text \`code span\` text.␊ + ␊ + Text \`code␊ + span\` text \`code span\` text␊ + \`code span\` text.␊ + ␊ + \`code␊ + span\` \`span\`␊ + \`span\`␊ + ␊ + Text␊ + text \`code {MD038}␊ + span\` text␊ + text.␊ + ␊ + Text␊ + text \`code␊ + span\` text {MD038}␊ + text.␊ + ␊ + Text␊ + text \`code␊ + span code␊ + span\` text␊ + text.␊ + ␊ + Text␊ + text \`code {MD038}␊ + span code␊ + span\` text␊ + text.␊ + ␊ + Text␊ + text \`code␊ + span code␊ + span\` text {MD038}␊ + text.␊ + ␊ + Text␊ + text \`code␊ + span code␊ + span\` text {MD038}␊ + text␊ + text \`code {MD038}␊ + span code␊ + span\` text␊ + text.␊ + ␊ + "␊ + Text \`code␊ + code code\`text\` {MD038}␊ + `, + } + +## link-fragments.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '[embedded-backslash]', + errorContext: '[Invalid](#valid-heading-is-an-image)', errorDetail: null, errorRange: [ - 6, - 20, + 1, + 37, ], fixInfo: null, - lineNumber: 43, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 218, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '[backslash-escape]', + errorContext: '[Invalid](#valid-heading-2004-)', errorDetail: null, errorRange: [ - 6, - 18, + 1, + 31, ], fixInfo: null, - lineNumber: 45, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 220, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '', + errorContext: '[badref]: #missing "{MD051}"', errorDetail: null, errorRange: [ - 6, - 30, + 1, + 28, ], fixInfo: null, - lineNumber: 67, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 241, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '[url](https://example.com/an>g...', - errorDetail: null, + errorContext: '[Title](#Valid-Fragments)', + errorDetail: 'Expected: #valid-fragments; Actual: #Valid-Fragments', errorRange: [ - 6, - 35, + 1, + 25, ], - fixInfo: null, - lineNumber: 69, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 16, + editColumn: 9, + insertText: '#valid-fragments', + }, + lineNumber: 245, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, - ], - fixed: `# Link Style Collapsed Only␊ - ␊ - Text [url](https://example.com) text {MD054}␊ - ␊ - Text ![url](https://example.com) text {MD054}␊ - ␊ - Text [url]() text {MD054}␊ - ␊ - Text ![url]() text {MD054}␊ - ␊ - Text [url](https://example.com "title") text {MD054}␊ - ␊ - Text ![url](https://example.com "title") text {MD054}␊ - ␊ - Text {MD054} [url](https://example.com␊ - "title") text␊ - ␊ - Text {MD054} ![url](https://example.com␊ - "title") text␊ - ␊ - Text [text][url] text {MD054}␊ - ␊ - Text ![text][url] text {MD054}␊ - ␊ - Text [url][] text␊ - ␊ - Text ![url][] text␊ - ␊ - Text [url] text {MD054}␊ - ␊ - Text ![url] text {MD054}␊ - ␊ - Text text {MD054}␊ - ␊ - [url]: https://example.com "title"␊ - ␊ - [undefined]␊ - ␊ - Text [url](https://example.com/embedded\\3backslash) text {MD054}␊ - ␊ - Text [url](https://example.com/backslash\\[escape) text {MD054}␊ - ␊ - Text [embedded-backslash] text {MD054}␊ - ␊ - Text [backslash-escape] text {MD054}␊ - ␊ - Text text {MD054}␊ - ␊ - Text text {MD054}␊ - ␊ - [embedded-backslash]: https://example.com/embedded\\3backslash␊ - ␊ - [backslash-escape]: https://example.com/backslash\\[escape␊ - ␊ - Text [url]() text {MD054}␊ - ␊ - Text [url]() text {MD054}␊ - ␊ - Text [url](https://example.com/\\(parens\\)) text {MD054}␊ - ␊ - Text [url](https://example.com/pa(re(ns))) text {MD054}␊ - ␊ - Text [url](relative/path) text {MD054}␊ - ␊ - Text [url](#fragment) text {MD054}␊ - ␊ - Text text {MD054}␊ - ␊ - Text [url](https://example.com/an>g) text {MD054}␊ - ␊ - ␊ - `, - } - -## link-style-full-only.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '[url](https://example.com)', - errorDetail: null, + errorContext: '[ALL CAPS](#NAMEDLINK)', + errorDetail: 'Expected: #namedlink; Actual: #NAMEDLINK', errorRange: [ - 6, - 26, + 1, + 22, ], - fixInfo: null, - lineNumber: 3, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 10, + editColumn: 12, + insertText: '#namedlink', + }, + lineNumber: 247, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '![url](https://example.com)', - errorDetail: null, - errorRange: [ - 6, - 27, - ], + errorContext: null, + errorDetail: 'Expected: #namedlink; Actual: #NAMEDLINK', + errorRange: null, fixInfo: null, - lineNumber: 5, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 249, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '[url]()', - errorDetail: null, + errorContext: '[mixedref]: #idLINK "{MD051}"', + errorDetail: 'Expected: #idlink; Actual: #idLINK', errorRange: [ - 6, - 28, + 1, + 29, ], - fixInfo: null, - lineNumber: 7, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 7, + editColumn: 13, + insertText: '#idlink', + }, + lineNumber: 254, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '![url]()', + errorContext: '[Invalid](#embedded-space)', errorDetail: null, errorRange: [ - 6, - 29, + 1, + 26, ], fixInfo: null, - lineNumber: 9, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 289, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '[url](https://example.com "tit...', + errorContext: '[Invalid](#embedded_space)', errorDetail: null, errorRange: [ - 6, - 34, + 1, + 26, ], fixInfo: null, - lineNumber: 11, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 291, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '![url](https://example.com "ti...', + errorContext: '[Invalid](#embedded)', errorDetail: null, errorRange: [ - 6, - 35, + 1, + 20, ], fixInfo: null, - lineNumber: 13, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 293, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '[url](https://example.com', + errorContext: '[Invalid](#hyphen--run)', errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 15, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', + errorRange: [ + 1, + 23, ], - }, - { - errorContext: '![url](https://example.com', - errorDetail: null, - errorRange: null, fixInfo: null, - lineNumber: 18, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 295, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '[url][]', + errorContext: '[Invalid](#hyphen-run)', errorDetail: null, errorRange: [ - 6, - 7, + 1, + 22, ], fixInfo: null, - lineNumber: 25, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 297, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '![url][]', + errorContext: '[Invalid](#named-fragment-outside-heading)', errorDetail: null, errorRange: [ - 6, - 8, + 1, + 42, ], fixInfo: null, - lineNumber: 27, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 299, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '[url]', + errorContext: '[Invalid](#UpperCase)', errorDetail: null, errorRange: [ - 6, - 5, + 1, + 21, ], fixInfo: null, - lineNumber: 29, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 301, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '![url]', + errorContext: '[Invalid](#uppercase)', errorDetail: null, errorRange: [ - 6, - 6, + 1, + 21, ], fixInfo: null, - lineNumber: 31, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 303, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '', - errorDetail: null, + errorContext: '[Invalid](#L12-not-a-line-link)', + errorDetail: 'Expected: #l12-not-a-line-link; Actual: #L12-not-a-line-link', errorRange: [ - 6, - 21, + 1, + 31, ], - fixInfo: null, - lineNumber: 33, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + fixInfo: { + deleteCount: 20, + editColumn: 11, + insertText: '#l12-not-a-line-link', + }, + lineNumber: 305, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '[url](https://example.com/embe...', + errorContext: '[Invalid](#l7)', errorDetail: null, errorRange: [ - 6, - 46, + 1, + 14, ], fixInfo: null, - lineNumber: 39, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 307, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '[url](https://example.com/back...', + errorContext: '[Invalid](#L)', errorDetail: null, errorRange: [ - 6, - 44, + 1, + 13, ], fixInfo: null, - lineNumber: 41, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 309, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '[embedded-backslash]', + errorContext: '[Invalid](#L7extra)', errorDetail: null, errorRange: [ - 6, - 20, + 1, + 19, ], fixInfo: null, - lineNumber: 43, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 311, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '[backslash-escape]', + errorContext: '[Invalid](#L30C)', errorDetail: null, errorRange: [ - 6, - 18, + 1, + 16, ], fixInfo: null, - lineNumber: 45, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 313, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '', + errorContext: '[Invalid](#C11-C31)', errorDetail: null, errorRange: [ - 6, - 30, + 1, + 19, ], fixInfo: null, - lineNumber: 67, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 331, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, { - errorContext: '[url](https://example.com/an>g...', + errorContext: '[Invalid](#C11-L4C31)', errorDetail: null, errorRange: [ - 6, - 35, + 1, + 21, ], fixInfo: null, - lineNumber: 69, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + lineNumber: 333, + ruleDescription: 'Link fragments should be valid', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', ruleNames: [ - 'MD054', - 'link-image-style', + 'MD051', + 'link-fragments', ], }, ], - fixed: `# Link Style Full Only␊ + fixed: `# Valid/Invalid Link Fragments␊ ␊ - Text [url](https://example.com) text {MD054}␊ + ## Valid Fragments␊ ␊ - Text ![url](https://example.com) text {MD054}␊ + [Valid](#validinvalid-link-fragments)␊ ␊ - Text [url]() text {MD054}␊ + [Valid](#valid-fragments)␊ ␊ - Text ![url]() text {MD054}␊ + [Valid](#valid-h3-heading)␊ ␊ - Text [url](https://example.com "title") text {MD054}␊ + [Valid](#valid-heading-with-underscores-_)␊ ␊ - Text ![url](https://example.com "title") text {MD054}␊ + [Valid](#valid-heading-with-emphasis)␊ ␊ - Text {MD054} [url](https://example.com␊ - "title") text␊ + [Valid](#valid-heading-with-code)␊ ␊ - Text {MD054} ![url](https://example.com␊ - "title") text␊ + [Valid](#valid-heading-with-quotes--and-double-quotes-)␊ ␊ - Text [text][url] text␊ + [Valid](#-valid-heading-with-emoji)␊ ␊ - Text ![text][url] text␊ + [Valid](#valid-heading--with-emoji-2)␊ ␊ - Text [url][] text {MD054}␊ + [Valid](#valid-heading-2010-)␊ ␊ - Text ![url][] text {MD054}␊ + [Valid](#valid-heading-2004-%EF%B8%8F)␊ ␊ - Text [url] text {MD054}␊ + [Valid](#valid-closed-atx-heading)␊ ␊ - Text ![url] text {MD054}␊ + [Valid](#valid-setext-heading)␊ ␊ - Text text {MD054}␊ + [Valid](#valid-repeated-heading)␊ ␊ - [url]: https://example.com "title"␊ + [Valid](#valid-repeated-heading-1)␊ ␊ - [undefined]␊ + [Valid](#valid-repeated-heading-2)␊ ␊ - Text [url](https://example.com/embedded\\3backslash) text {MD054}␊ + [Valid](#valid-heading-with-trailing-space-)␊ ␊ - Text [url](https://example.com/backslash\\[escape) text {MD054}␊ + [Valid](#valid-heading-with-two-trailing-spaces--)␊ ␊ - Text [embedded-backslash] text {MD054}␊ + [Valid](#valid-heading-with-embedded--comment)␊ ␊ - Text [backslash-escape] text {MD054}␊ + [Valid](#the-best-headin-for-testin-quotes)␊ ␊ - Text text {MD054}␊ + [Valid](#valid-heading-about-lh%C3%B4pitals-rule)␊ ␊ - Text text {MD054}␊ + [Valid](#valid-heading-about-lhôpitals-rule)␊ ␊ - [embedded-backslash]: https://example.com/embedded\\3backslash␊ + [Valid](#en-t%C3%AAte-valide-dans-fran%C3%A7ais-pour-v%C3%A9rification)␊ ␊ - [backslash-escape]: https://example.com/backslash\\[escape␊ + [Valid](#en-tête-valide-dans-français-pour-vérification)␊ ␊ - Text [url]() text {MD054}␊ + [Valid](#%E6%A0%87%E9%A2%98)␊ ␊ - Text [url]() text {MD054}␊ + [Valid](#标题)␊ ␊ - Text [url](https://example.com/\\(parens\\)) text {MD054}␊ + [Valid](#valid-heading-is-a-link)␊ ␊ - Text [url](https://example.com/pa(re(ns))) text {MD054}␊ + [Valid](#valid-heading-has-a-link)␊ ␊ - Text [url](relative/path) text {MD054}␊ + [Valid](#valid-heading-is-a-reference-link)␊ ␊ - Text [url](#fragment) text {MD054}␊ + [Valid](#valid-heading-has-a-reference-link)␊ ␊ - Text text {MD054}␊ + [Valid](#valid-heading-has-)␊ ␊ - Text [url](https://example.com/an>g) text {MD054}␊ + [Valid](#valid_heading-escaped_underscores)␊ ␊ - ␊ - `, - } - -## link-style-inline-only.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: '[text][url]', - errorDetail: null, - errorRange: [ - 6, - 11, - ], - fixInfo: { - deleteCount: 11, - editColumn: 6, - insertText: '[text](https://example.com)', - }, - lineNumber: 21, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '![text][url]', - errorDetail: null, - errorRange: [ - 6, - 12, - ], - fixInfo: { - deleteCount: 12, - editColumn: 6, - insertText: '![text](https://example.com)', - }, - lineNumber: 23, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '[url][]', - errorDetail: null, - errorRange: [ - 6, - 7, - ], - fixInfo: { - deleteCount: 7, - editColumn: 6, - insertText: '[url](https://example.com)', - }, - lineNumber: 25, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '![url][]', - errorDetail: null, - errorRange: [ - 6, - 8, - ], - fixInfo: { - deleteCount: 8, - editColumn: 6, - insertText: '![url](https://example.com)', - }, - lineNumber: 27, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '[url]', - errorDetail: null, - errorRange: [ - 6, - 5, - ], - fixInfo: { - deleteCount: 5, - editColumn: 6, - insertText: '[url](https://example.com)', - }, - lineNumber: 29, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '![url]', - errorDetail: null, - errorRange: [ - 6, - 6, - ], - fixInfo: { - deleteCount: 6, - editColumn: 6, - insertText: '![url](https://example.com)', - }, - lineNumber: 31, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '', - errorDetail: null, - errorRange: [ - 6, - 21, - ], - fixInfo: { - deleteCount: 21, - editColumn: 6, - insertText: '[https://example.com](https://example.com)', - }, - lineNumber: 33, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '[embedded-backslash]', - errorDetail: null, - errorRange: [ - 6, - 20, - ], - fixInfo: { - deleteCount: 20, - editColumn: 6, - insertText: '[embedded-backslash](https://example.com/embedded\\3backslash)', - }, - lineNumber: 43, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '[backslash-escape]', - errorDetail: null, - errorRange: [ - 6, - 18, - ], - fixInfo: { - deleteCount: 18, - editColumn: 6, - insertText: '[backslash-escape](https://example.com/backslash\\[escape)', - }, - lineNumber: 45, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '', - errorDetail: null, - errorRange: [ - 6, - 30, - ], - fixInfo: { - deleteCount: 30, - editColumn: 6, - insertText: '[https://example.com/pa)re(ns](https://example.com/pa\\)re\\(ns)', - }, - lineNumber: 67, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - ], - fixed: `# Link Style Inline Only␊ + [Valid](#valid\\_heading\\-escaped\\_underscores)␊ ␊ - Text [url](https://example.com) text␊ + [Valid](#valid-heading-with_embedded_escaping)␊ ␊ - Text ![url](https://example.com) text␊ + [Valid](#namedlink)␊ ␊ - Text [url]() text␊ + [Valid](#idlink)␊ ␊ - Text ![url]() text␊ + [Valid](#myident)␊ ␊ - Text [url](https://example.com "title") text␊ + [Valid](#HREFandID)␊ + ␊ + [Valid](#id-for-other-element)␊ + ␊ + [Valid](#id-after-name)␊ + ␊ + [Valid][goodref]␊ + ␊ + [Valid][escapedref]␊ + ␊ + [Valid](#l12-not-a-line-link)␊ + ␊ + [Valid](#latex-style)␊ + ␊ + [Valid](#area-pi--r2)␊ + ␊ + [Valid](#L7)␊ + ␊ + [Valid](#L30-L31)␊ + ␊ + [Valid](#L3C24-L88)␊ + ␊ + [Valid](#L304-L314C98)␊ + ␊ + [Valid](#L200C4-L3244C2)␊ + ␊ + ### Valid H3 Heading␊ + ␊ + Text␊ + ␊ + ### Valid Heading With Underscores _␊ ␊ - Text ![url](https://example.com "title") text␊ + Text␊ ␊ - Text [url](https://example.com␊ - "title") text␊ + ### Valid *Heading* With _Emphasis_␊ ␊ - Text ![url](https://example.com␊ - "title") text␊ + Text␊ ␊ - Text [text](https://example.com) text {MD054}␊ + ### Valid Heading With \`Code\`␊ ␊ - Text ![text](https://example.com) text {MD054}␊ + Text␊ ␊ - Text [url](https://example.com) text {MD054}␊ + ### Valid Heading With Quotes ' And Double Quotes "␊ ␊ - Text ![url](https://example.com) text {MD054}␊ + Text␊ ␊ - Text [url](https://example.com) text {MD054}␊ + ### 🚀 Valid Heading With Emoji␊ ␊ - Text ![url](https://example.com) text {MD054}␊ + Text␊ ␊ - Text [https://example.com](https://example.com) text {MD054}␊ + ### Valid Heading 👀 With Emoji 2␊ ␊ - [url]: https://example.com "title"␊ + Text␊ ␊ - [undefined]␊ + ### Valid Heading 20.10 ❌␊ ␊ - Text [url](https://example.com/embedded\\3backslash) text␊ + Text␊ ␊ - Text [url](https://example.com/backslash\\[escape) text␊ + ### Valid Heading 20.04 ✔️␊ ␊ - Text [embedded-backslash](https://example.com/embedded\\3backslash) text {MD054}␊ + Text␊ ␊ - Text [backslash-escape](https://example.com/backslash\\[escape) text {MD054}␊ + ### Valid Closed ATX Heading ###␊ ␊ - Text [https://example.com/embedded\\3backslash](https://example.com/embedded\\3backslash) text {MD054}␊ + Text␊ ␊ - Text [https://example.com/backslash\\[no-escape](https://example.com/backslash[no-escape) text {MD054}␊ + Valid Setext Heading␊ + --------------------␊ ␊ - [embedded-backslash]: https://example.com/embedded\\3backslash␊ + Text␊ ␊ - [backslash-escape]: https://example.com/backslash\\[escape␊ + ### Valid Repeated Heading␊ ␊ - Text [url]() text␊ + Text␊ ␊ - Text [url]() text␊ + ### Valid Repeated Heading␊ ␊ - Text [url](https://example.com/\\(parens\\)) text␊ + Text␊ ␊ - Text [url](https://example.com/pa(re(ns))) text␊ + ### Valid Repeated Heading␊ ␊ - Text [url](relative/path) text␊ + ### Valid Heading With Trailing Space ␊ ␊ - Text [url](#fragment) text␊ + ### Valid Heading With Two Trailing Spaces ␊ ␊ - Text [https://example.com/pa)re(ns](https://example.com/pa\\)re\\(ns) text {MD054}␊ + ### Valid Heading With Embedded Comment␊ ␊ - Text [url](https://example.com/an>g) text␊ + ### The "Best" Headin' for Testin' Quotes␊ ␊ - ␊ - `, - } - -## link-style-inline-or-reference.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: '', - errorDetail: null, - errorRange: [ - 6, - 21, - ], - fixInfo: { - deleteCount: 21, - editColumn: 6, - insertText: '[https://example.com](https://example.com)', - }, - lineNumber: 33, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '', - errorDetail: null, - errorRange: [ - 6, - 30, - ], - fixInfo: { - deleteCount: 30, - editColumn: 6, - insertText: '[https://example.com/pa)re(ns](https://example.com/pa\\)re\\(ns)', - }, - lineNumber: 67, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - ], - fixed: `# Link Style Inline or Reference␊ + ### Valid Heading About L'Hôpital's Rule␊ ␊ - Text [url](https://example.com) text␊ + ### En-tête Valide Dans Français Pour Vérification␊ ␊ - Text ![url](https://example.com) text␊ + ### 标题␊ ␊ - Text [url]() text␊ + ### [Valid Heading Is a Link](https://example.com)␊ ␊ - Text ![url]() text␊ + ### Valid Heading [Has a Link](https://example.com)␊ ␊ - Text [url](https://example.com "title") text␊ + ### [Valid Heading Is a Reference Link][goodref]␊ ␊ - Text ![url](https://example.com "title") text␊ + ### Valid Heading [Has a Reference Link][goodref]␊ ␊ - Text [url](https://example.com␊ - "title") text␊ + ### ![Valid Heading Is an Image](https://example.com)␊ ␊ - Text ![url](https://example.com␊ - "title") text␊ + ### Valid Heading Has ![an Image](https://example.com)␊ ␊ - Text [text][url] text␊ + ### Valid_Heading Escaped_Underscores␊ ␊ - Text ![text][url] text␊ + ### Valid Heading\\-With\\_Embedded\\_Escaping␊ ␊ - Text [url][] text␊ + ### L12 Not A Line Link␊ ␊ - Text ![url][] text␊ + ## $\\LaTeX$ Style␊ ␊ - Text [url] text␊ + ## Area: $\\pi * r^2$␊ ␊ - Text ![url] text␊ + ␊ ␊ - Text [https://example.com](https://example.com) text {MD054}␊ + ␊ ␊ - [url]: https://example.com "title"␊ + ␊ ␊ - [undefined]␊ + Text␊ ␊ - Text [url](https://example.com/embedded\\3backslash) text␊ +

␊ ␊ - Text [url](https://example.com/backslash\\[escape) text␊ +

␊ ␊ - Text [embedded-backslash] text␊ + ␊ ␊ - Text [backslash-escape] text␊ + ␊ ␊ - Text [https://example.com/embedded\\3backslash](https://example.com/embedded\\3backslash) text {MD054}␊ + [goodref]: #namedlink␊ ␊ - Text [https://example.com/backslash\\[no-escape](https://example.com/backslash[no-escape) text {MD054}␊ + [escapedref]: #valid\\_heading\\-escaped\\_underscores␊ ␊ - [embedded-backslash]: https://example.com/embedded\\3backslash␊ + ## Invalid Fragments␊ ␊ - [backslash-escape]: https://example.com/backslash\\[escape␊ + [Invalid](#valid-heading-is-an-image) {MD051}␊ ␊ - Text [url]() text␊ + [Invalid](#valid-heading-2004-) {MD051}␊ ␊ - Text [url]() text␊ + [Invalid](#valid-repeated-heading-3) {MD051}␊ ␊ - Text [url](https://example.com/\\(parens\\)) text␊ + [Invalid](#invalid-fragment) {MD051}␊ ␊ - Text [url](https://example.com/pa(re(ns))) text␊ + [Invalid](#myname) {MD051}␊ ␊ - Text [url](relative/path) text␊ + [Invalid](#HREFandID) {MD051}␊ ␊ - Text [url](#fragment) text␊ + [Invalid](#name-for-other-element) {MD051}␊ ␊ - Text [https://example.com/pa)re(ns](https://example.com/pa\\)re\\(ns) text {MD054}␊ + [Invalid](#name-should-be-ignored) {MD051}␊ ␊ - Text [url](https://example.com/an>g) text␊ + [Invalid](#not-an-id-should-be-ignored) {MD051}␊ ␊ - ␊ - `, - } - -## link-style-no-url-inline-not-possible.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: '', - errorDetail: null, - errorRange: [ - 6, - 21, - ], - fixInfo: { - deleteCount: 21, - editColumn: 6, - insertText: '[https://example.com](https://example.com)', - }, - lineNumber: 27, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - ], - fixed: `# Link Style No URL Inline Not Possible␊ + [Invalid {MD051}](#multi-line␊ + "Title")␊ ␊ - Text [https://example.com](https://example.com) text␊ + [Invalid][badref]␊ ␊ - Text ![https://example.com](https://example.com) text␊ + [badref]: #missing "{MD051}"␊ ␊ - Text [https://example.com]() text␊ + ## Inconsistent Case Fragments␊ ␊ - Text ![https://example.com]() text␊ + [Title](#valid-fragments) {MD051}␊ ␊ - Text [https://example.com](https://example.com/page "title") text␊ + [ALL CAPS](#namedlink) {MD051}␊ ␊ - Text ![https://example.com](https://example.com/page "title") text␊ + [Multi-line {MD051}](#NAMEDLINK␊ + "Title")␊ ␊ - Text [https://example.com](https://example.com "title") text␊ + [MiXeD][mixedref]␊ ␊ - Text ![https://example.com](https://example.com "title") text␊ + [mixedref]: #idlink "{MD051}"␊ ␊ - Text [https://example.com][url] text␊ + ## Valid Named Fragments␊ ␊ - Text ![https://example.com][url] text␊ + [Valid](#named-fragment)␊ ␊ - Text [https://example.com][url-title] text␊ + [Valid](#valid-heading-with-named-fragment-named-fragment)␊ ␊ - Text ![https://example.com][url-title] text␊ + [Valid](#another_fragment_123)␊ ␊ - Text [https://example.com](https://example.com) text {MD054}␊ + [Valid](#valid-heading-with-another-named-fragment-another_fragment_123)␊ ␊ - [url]: https://example.com␊ - [url-title]: https://example.com "title"␊ + [Valid](#closed-atx)␊ ␊ - Text [link](https://example.com) text␊ + [Valid](#setext)␊ ␊ - Text ![link](https://example.com) text␊ + ### Valid Heading with Named Fragment {#named-fragment}␊ ␊ - Text [link][url] text␊ + ### Valid Heading with Another Named Fragment {#another_fragment_123}␊ ␊ - Text ![link][url] text␊ + ### Valid Closed ATX Heading with Named Fragment {#closed-atx} ###␊ ␊ - Text [url][] text␊ + Valid Setext Heading with Named Fragment {#setext}␊ + --------------------------------------------------␊ ␊ - Text ![url][] text␊ + ## Invalid Named Fragments␊ ␊ - Text [url] text␊ + ### Invalid Heading with Named Fragment {#embedded space}␊ ␊ - Text ![url] text␊ + ### Invalid Heading with Named Fragment {#hyphen--run}␊ ␊ - Text [file.md](file.md) text␊ + ### Invalid Heading with Named Fragment {#UpperCase}␊ ␊ - ␊ - `, - } - -## link-style-no-url-inline-possible.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: '[https://example.com](https://...', - errorDetail: null, - errorRange: [ - 6, - 42, - ], - fixInfo: { - deleteCount: 42, - editColumn: 6, - insertText: '', - }, - lineNumber: 3, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - { - errorContext: '[https://example.com](', - }, - lineNumber: 7, - ruleDescription: 'Link and image style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', - ruleNames: [ - 'MD054', - 'link-image-style', - ], - }, - ], - fixed: `# Link Style No URL Inline Possible␊ + {#named-fragment-outside-heading}␊ ␊ - Text text {MD054}␊ + [Invalid](#embedded-space) {MD051}␊ ␊ - Text ![https://example.com](https://example.com) text␊ + [Invalid](#embedded_space) {MD051}␊ ␊ - Text text {MD054}␊ + [Invalid](#embedded) {MD051}␊ ␊ - Text ![https://example.com]() text␊ + [Invalid](#hyphen--run) {MD051}␊ ␊ - Text [https://example.com](https://example.com/page "title") text␊ + [Invalid](#hyphen-run) {MD051}␊ ␊ - Text ![https://example.com](https://example.com/page "title") text␊ + [Invalid](#named-fragment-outside-heading) {MD051}␊ ␊ - Text [https://example.com](https://example.com "title") text␊ + [Invalid](#UpperCase) {MD051}␊ ␊ - Text ![https://example.com](https://example.com "title") text␊ + [Invalid](#uppercase) {MD051}␊ ␊ - Text [https://example.com][url] text␊ + [Invalid](#l12-not-a-line-link) {MD051}␊ ␊ - Text ![https://example.com][url] text␊ + [Invalid](#l7) {MD051}␊ ␊ - Text [https://example.com][url-title] text␊ + [Invalid](#L) {MD051}␊ ␊ - Text ![https://example.com][url-title] text␊ + [Invalid](#L7extra) {MD051}␊ ␊ - Text text␊ + [Invalid](#L30C) {MD051}␊ ␊ - [url]: https://example.com␊ - [url-title]: https://example.com "title"␊ + [Invalid](#L30Cextra) {MD051}␊ ␊ - Text [link](https://example.com) text␊ + [Invalid](#L30L12) {MD051}␊ ␊ - Text ![link](https://example.com) text␊ + [Invalid](#L30C12) {MD051}␊ ␊ - Text [link][url] text␊ + [Invalid](#L30C11-) {MD051}␊ ␊ - Text ![link][url] text␊ + [Invalid](#L30C11-L) {MD051}␊ ␊ - Text [url][] text␊ + [Invalid](#L30C11-L31C) {MD051}␊ ␊ - Text ![url][] text␊ + [Invalid](#L30C11-C31) {MD051}␊ ␊ - Text [url] text␊ + [Invalid](#C30) {MD051}␊ ␊ - Text ![url] text␊ + [Invalid](#C11-C31) {MD051}␊ ␊ - Text [file.md](file.md) text␊ + [Invalid](#C11-L4C31) {MD051}␊ ␊ ␊ `, } -## link-style-none.md +## link-style-autolink-only.md > Snapshot 1 @@ -25894,7 +25480,11 @@ Generated by [AVA](https://avajs.dev). 6, 26, ], - fixInfo: null, + fixInfo: { + deleteCount: 26, + editColumn: 6, + insertText: '', + }, lineNumber: 3, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', @@ -25926,7 +25516,11 @@ Generated by [AVA](https://avajs.dev). 6, 28, ], - fixInfo: null, + fixInfo: { + deleteCount: 28, + editColumn: 6, + insertText: '', + }, lineNumber: 7, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', @@ -25958,7 +25552,11 @@ Generated by [AVA](https://avajs.dev). 6, 34, ], - fixInfo: null, + fixInfo: { + deleteCount: 34, + editColumn: 6, + insertText: '', + }, lineNumber: 11, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', @@ -25997,11 +25595,83 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '![url](https://example.com', + errorContext: '![url](https://example.com', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 18, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', + ], + }, + { + errorContext: '[text][url]', + errorDetail: null, + errorRange: [ + 6, + 11, + ], + fixInfo: { + deleteCount: 11, + editColumn: 6, + insertText: '', + }, + lineNumber: 21, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', + ], + }, + { + errorContext: '![text][url]', + errorDetail: null, + errorRange: [ + 6, + 12, + ], + fixInfo: null, + lineNumber: 23, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', + ], + }, + { + errorContext: '[url][]', + errorDetail: null, + errorRange: [ + 6, + 7, + ], + fixInfo: { + deleteCount: 7, + editColumn: 6, + insertText: '', + }, + lineNumber: 25, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', + ], + }, + { + errorContext: '![url][]', errorDetail: null, - errorRange: null, + errorRange: [ + 6, + 8, + ], fixInfo: null, - lineNumber: 18, + lineNumber: 27, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -26010,14 +25680,18 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '[text][url]', + errorContext: '[url]', errorDetail: null, errorRange: [ 6, - 11, + 5, ], - fixInfo: null, - lineNumber: 21, + fixInfo: { + deleteCount: 5, + editColumn: 6, + insertText: '', + }, + lineNumber: 29, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -26026,14 +25700,14 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '![text][url]', + errorContext: '![url]', errorDetail: null, errorRange: [ 6, - 12, + 6, ], fixInfo: null, - lineNumber: 23, + lineNumber: 31, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -26042,14 +25716,18 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '[url][]', + errorContext: '[url](https://example.com/embe...', errorDetail: null, errorRange: [ 6, - 7, + 46, ], - fixInfo: null, - lineNumber: 25, + fixInfo: { + deleteCount: 46, + editColumn: 6, + insertText: '', + }, + lineNumber: 39, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -26058,14 +25736,18 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '![url][]', + errorContext: '[url](https://example.com/back...', errorDetail: null, errorRange: [ 6, - 8, + 44, ], - fixInfo: null, - lineNumber: 27, + fixInfo: { + deleteCount: 44, + editColumn: 6, + insertText: '', + }, + lineNumber: 41, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -26074,14 +25756,18 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '[url]', + errorContext: '[embedded-backslash]', errorDetail: null, errorRange: [ 6, - 5, + 20, ], - fixInfo: null, - lineNumber: 29, + fixInfo: { + deleteCount: 20, + editColumn: 6, + insertText: '', + }, + lineNumber: 43, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -26090,14 +25776,18 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '![url]', + errorContext: '[backslash-escape]', errorDetail: null, errorRange: [ 6, - 6, + 18, ], - fixInfo: null, - lineNumber: 31, + fixInfo: { + deleteCount: 18, + editColumn: 6, + insertText: '', + }, + lineNumber: 45, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -26106,14 +25796,14 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '', + errorContext: '[url](', + }, + lineNumber: 57, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -26138,14 +25832,18 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '[url](https://example.com/back...', + errorContext: '[url](https://example.com/\\(pa...', errorDetail: null, errorRange: [ 6, - 44, + 37, ], - fixInfo: null, - lineNumber: 41, + fixInfo: { + deleteCount: 37, + editColumn: 6, + insertText: '', + }, + lineNumber: 59, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -26154,14 +25852,18 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '[embedded-backslash]', + errorContext: '[url](https://example.com/pa(r...', errorDetail: null, errorRange: [ 6, - 20, + 37, ], - fixInfo: null, - lineNumber: 43, + fixInfo: { + deleteCount: 37, + editColumn: 6, + insertText: '', + }, + lineNumber: 61, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -26170,14 +25872,14 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '[backslash-escape]', + errorContext: '[url](relative/path)', errorDetail: null, errorRange: [ 6, - 18, + 20, ], fixInfo: null, - lineNumber: 45, + lineNumber: 63, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -26186,14 +25888,14 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: 'g...', errorDetail: null, errorRange: [ 6, - 41, + 35, ], fixInfo: null, - lineNumber: 49, + lineNumber: 69, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -26217,15 +25919,109 @@ Generated by [AVA](https://avajs.dev). 'link-image-style', ], }, + ], + fixed: `# Link Style Autolink Only␊ + ␊ + Text text {MD054}␊ + ␊ + Text ![url](https://example.com) text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + Text ![url]() text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + Text ![url](https://example.com "title") text {MD054}␊ + ␊ + Text {MD054} [url](https://example.com␊ + "title") text␊ + ␊ + Text {MD054} ![url](https://example.com␊ + "title") text␊ + ␊ + Text text {MD054}␊ + ␊ + Text ![text][url] text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + Text ![url][] text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + Text ![url] text {MD054}␊ + ␊ + Text text␊ + ␊ + [url]: https://example.com "title"␊ + ␊ + [undefined]␊ + ␊ + Text text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + Text text␊ + ␊ + Text text␊ + ␊ + [embedded-backslash]: https://example.com/embedded\\3backslash␊ + ␊ + [backslash-escape]: https://example.com/backslash\\[escape␊ + ␊ + Text [url]() text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + Text [url](relative/path) text {MD054}␊ + ␊ + Text [url](#fragment) text {MD054}␊ + ␊ + Text text␊ + ␊ + Text [url](https://example.com/an>g) text {MD054}␊ + ␊ + ␊ + `, + } + +## link-style-autolink-or-inline.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '[url](', + errorContext: '[embedded-backslash]', errorDetail: null, errorRange: [ 6, - 30, + 20, ], - fixInfo: null, - lineNumber: 67, + fixInfo: { + deleteCount: 20, + editColumn: 6, + insertText: '[embedded-backslash](https://example.com/embedded\\3backslash)', + }, + lineNumber: 43, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -26330,14 +26150,18 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '[url](https://example.com/an>g...', + errorContext: '[backslash-escape]', errorDetail: null, errorRange: [ 6, - 35, + 18, ], - fixInfo: null, - lineNumber: 69, + fixInfo: { + deleteCount: 18, + editColumn: 6, + insertText: '[backslash-escape](https://example.com/backslash\\[escape)', + }, + lineNumber: 45, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -26346,82 +26170,80 @@ Generated by [AVA](https://avajs.dev). ], }, ], - fixed: `# Link Style None␊ + fixed: `# Link Style Autolink or Inline␊ ␊ - Text [url](https://example.com) text {MD054}␊ + Text [url](https://example.com) text␊ ␊ - Text ![url](https://example.com) text {MD054}␊ + Text ![url](https://example.com) text␊ ␊ - Text [url]() text {MD054}␊ + Text [url]() text␊ ␊ - Text ![url]() text {MD054}␊ + Text ![url]() text␊ ␊ - Text [url](https://example.com "title") text {MD054}␊ + Text [url](https://example.com "title") text␊ ␊ - Text ![url](https://example.com "title") text {MD054}␊ + Text ![url](https://example.com "title") text␊ ␊ - Text {MD054} [url](https://example.com␊ + Text [url](https://example.com␊ "title") text␊ ␊ - Text {MD054} ![url](https://example.com␊ + Text ![url](https://example.com␊ "title") text␊ ␊ - Text [text][url] text {MD054}␊ + Text [text](https://example.com) text {MD054}␊ ␊ - Text ![text][url] text {MD054}␊ + Text ![text](https://example.com) text {MD054}␊ ␊ - Text [url][] text {MD054}␊ + Text [url](https://example.com) text {MD054}␊ ␊ - Text ![url][] text {MD054}␊ + Text ![url](https://example.com) text {MD054}␊ ␊ - Text [url] text {MD054}␊ + Text [url](https://example.com) text {MD054}␊ ␊ - Text ![url] text {MD054}␊ + Text ![url](https://example.com) text {MD054}␊ ␊ - Text text {MD054}␊ + Text text␊ ␊ [url]: https://example.com "title"␊ ␊ [undefined]␊ ␊ - Text [url](https://example.com/embedded\\3backslash) text {MD054}␊ + Text [url](https://example.com/embedded\\3backslash) text␊ ␊ - Text [url](https://example.com/backslash\\[escape) text {MD054}␊ + Text [url](https://example.com/backslash\\[escape) text␊ ␊ - Text [embedded-backslash] text {MD054}␊ + Text [embedded-backslash](https://example.com/embedded\\3backslash) text {MD054}␊ ␊ - Text [backslash-escape] text {MD054}␊ + Text [backslash-escape](https://example.com/backslash\\[escape) text {MD054}␊ ␊ - Text text {MD054}␊ + Text text␊ ␊ - Text text {MD054}␊ + Text text␊ ␊ [embedded-backslash]: https://example.com/embedded\\3backslash␊ ␊ [backslash-escape]: https://example.com/backslash\\[escape␊ ␊ - Text [url]() text {MD054}␊ + Text [url]() text␊ ␊ - Text [url]() text {MD054}␊ + Text [url]() text␊ ␊ - Text [url](https://example.com/\\(parens\\)) text {MD054}␊ + Text [url](https://example.com/\\(parens\\)) text␊ ␊ - Text [url](https://example.com/pa(re(ns))) text {MD054}␊ + Text [url](https://example.com/pa(re(ns))) text␊ ␊ - Text [url](relative/path) text {MD054}␊ + Text [url](relative/path) text␊ ␊ - Text [url](#fragment) text {MD054}␊ + Text [url](#fragment) text␊ ␊ - Text text {MD054}␊ + Text text␊ ␊ - Text [url](https://example.com/an>g) text {MD054}␊ + Text [url](https://example.com/an>g) text␊ ␊ ␊ `, } -## link-style-shortcut-only.md +## link-style-collapsed-only.md > Snapshot 1 @@ -27008,14 +26797,14 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '[url][]', + errorContext: '[url]', errorDetail: null, errorRange: [ 6, - 7, + 5, ], fixInfo: null, - lineNumber: 25, + lineNumber: 29, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -27024,14 +26813,14 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '![url][]', + errorContext: '![url]', errorDetail: null, errorRange: [ 6, - 8, + 6, ], fixInfo: null, - lineNumber: 27, + lineNumber: 31, ruleDescription: 'Link and image style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ @@ -27087,6 +26876,38 @@ Generated by [AVA](https://avajs.dev). 'link-image-style', ], }, + { + errorContext: '[embedded-backslash]', + errorDetail: null, + errorRange: [ + 6, + 20, + ], + fixInfo: null, + lineNumber: 43, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', + ], + }, + { + errorContext: '[backslash-escape]', + errorDetail: null, + errorRange: [ + 6, + 18, + ], + fixInfo: null, + lineNumber: 45, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', + ], + }, { errorContext: ' text {MD054}␊ ␊ @@ -27290,9 +27111,9 @@ Generated by [AVA](https://avajs.dev). ␊ Text [url](https://example.com/backslash\\[escape) text {MD054}␊ ␊ - Text [embedded-backslash] text␊ + Text [embedded-backslash] text {MD054}␊ ␊ - Text [backslash-escape] text␊ + Text [backslash-escape] text {MD054}␊ ␊ Text text {MD054}␊ ␊ @@ -27324,2752 +27145,2662 @@ Generated by [AVA](https://avajs.dev). "autolink": false,␊ "inline": false,␊ "full": false,␊ - "collapsed": false␊ + "shortcut": false␊ }␊ } -->␊ `, } -## links-alternate.md +## link-style-full-only.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/md011.md', - ruleNames: [ - 'MD011', - 'no-reversed-links', - ], - }, - { - errorContext: 'https://example.com/', + errorContext: '[url](https://example.com)', errorDetail: null, errorRange: [ 6, - 20, + 26, ], - fixInfo: { - deleteCount: 20, - editColumn: 6, - insertText: '', - }, + fixInfo: null, lineNumber: 3, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', - 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/md034.md', - 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/md034.md', - 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/md034.md', - 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/md034.md', + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: 'https://example.com/dir', + errorContext: '![url](https://example.com)', errorDetail: null, errorRange: [ 6, - 23, + 27, ], - fixInfo: { - deleteCount: 23, - editColumn: 6, - insertText: '', - }, - lineNumber: 13, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: 'https://example.com/file.txt', + errorContext: '[url]()', 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/md034.md', + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: 'https://example.com/dir/dir/fi...', + errorContext: '![url]()', errorDetail: null, errorRange: [ 6, - 44, + 29, ], - fixInfo: { - deleteCount: 44, - editColumn: 6, - insertText: '', - }, - lineNumber: 16, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 9, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: 'https://example.com/same', + errorContext: '[url](https://example.com "tit...', 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/md034.md', + 6, + 34, + ], + fixInfo: null, + lineNumber: 11, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: 'https://example.com/same', + errorContext: '![url](https://example.com "ti...', errorDetail: null, errorRange: [ - 46, - 24, + 6, + 35, ], - fixInfo: { - deleteCount: 24, - editColumn: 46, - insertText: '', - }, - lineNumber: 26, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 13, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: 'https://example.com/first', + errorContext: '[url](https://example.com', errorDetail: null, - errorRange: [ - 6, - 25, + errorRange: null, + fixInfo: null, + lineNumber: 15, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', ], - fixInfo: { - deleteCount: 25, - editColumn: 6, - insertText: '', - }, - lineNumber: 28, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + }, + { + errorContext: '![url](https://example.com', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 18, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: 'https://example.com/second', + errorContext: '[url][]', errorDetail: null, errorRange: [ - 42, - 26, + 6, + 7, ], - fixInfo: { - deleteCount: 26, - editColumn: 42, - insertText: '', - }, - lineNumber: 28, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 25, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: 'https://example.com/third', + errorContext: '![url][]', errorDetail: null, errorRange: [ - 85, - 25, + 6, + 8, ], - fixInfo: { - deleteCount: 25, - editColumn: 85, - insertText: '', - }, - lineNumber: 28, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 27, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: '[link ]', + errorContext: '[url]', errorDetail: null, errorRange: [ 6, - 7, + 5, ], - 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/md039.md', + fixInfo: null, + lineNumber: 29, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD039', - 'no-space-in-links', + 'MD054', + 'link-image-style', ], }, { - errorContext: '[ link]', + errorContext: '![url]', errorDetail: null, errorRange: [ 6, - 7, + 6, ], - 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/md039.md', + fixInfo: null, + lineNumber: 31, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD039', - 'no-space-in-links', + 'MD054', + 'link-image-style', ], }, { - errorContext: '[ link ]', + errorContext: '', errorDetail: null, errorRange: [ 6, - 8, + 21, ], - 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/md039.md', + fixInfo: null, + lineNumber: 33, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD039', - 'no-space-in-links', + 'MD054', + 'link-image-style', ], }, { - errorContext: '[link ]', + errorContext: '[url](https://example.com/embe...', errorDetail: null, errorRange: [ 6, - 7, + 46, ], - 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/md039.md', + fixInfo: null, + lineNumber: 39, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD039', - 'no-space-in-links', + 'MD054', + 'link-image-style', ], }, { - errorContext: '[ link]', + errorContext: '[url](https://example.com/back...', errorDetail: null, errorRange: [ 6, - 7, + 44, ], - 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/md039.md', + fixInfo: null, + lineNumber: 41, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD039', - 'no-space-in-links', + 'MD054', + 'link-image-style', ], }, { - errorContext: '[ link ]', + errorContext: '[embedded-backslash]', errorDetail: null, errorRange: [ 6, - 8, + 20, ], - 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/md039.md', + fixInfo: null, + lineNumber: 43, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD039', - 'no-space-in-links', + 'MD054', + 'link-image-style', ], }, - ], - fixed: `# Detailed Link Results␊ - ␊ - Text text {MD034}␊ - ␊ - Text text text {MD034}␊ - ␊ - Text text text {MD034}␊ - ␊ - Text \`code https://example.com/code code\` text text {MD034}␊ - ␊ - > Text text text {MD034}␊ - ␊ - Text {MD034}␊ - text {MD034}␊ - text ␊ - text {MD034}␊ - ␊ - \`\`\`text␊ - Code https://example.com/code?type=fence code␊ - \`\`\`␊ - ␊ - Code https://example.com/code?type=indent code␊ - ␊ - Text more text still more text done {MD034}␊ - ␊ - Text more \\* text more \\[ text done {MD034}␊ - ␊ - Text more text still more text done {MD034}␊ - ␊ - [Incorrect link syntax](https://www.example.com/) {MD011}␊ - ␊ - Text [link](https://example.com/) text. {MD039}␊ - ␊ - Text [link](https://example.com/) text. {MD039}␊ - ␊ - Text [link](https://example.com/) text. {MD039}␊ - ␊ - Text [link][reference] text. {MD039}␊ - ␊ - Text [link][reference] text. {MD039}␊ - ␊ - Text [link][reference] text. {MD039}␊ - ␊ - [reference]: https://example.com/␊ - ␊ - ␊ - `, - } - -## links-with-markup.md - -> Snapshot 1 - - { - errors: [ { - errorContext: '...k has `code` and right space ]', + errorContext: '[backslash-escape]', errorDetail: null, errorRange: [ - 1, - 39, + 6, + 18, ], - fixInfo: { - deleteCount: 37, - editColumn: 2, - insertText: 'This link has `code` and right space', - }, - lineNumber: 11, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', + fixInfo: null, + lineNumber: 45, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD039', - 'no-space-in-links', + 'MD054', + 'link-image-style', ], }, { - errorContext: '[ This link has *emphasis* and...', + errorContext: ' Snapshot 1 - - { - errors: [ { - errorContext: 'https://www.example.com/', + errorContext: '[url](', - }, - lineNumber: 4, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 55, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: 'https://www.google.com/', + errorContext: '[url](', - }, - lineNumber: 7, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 57, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: 'hTtPs://gOoGlE.cOm/', + errorContext: '[url](https://example.com/\\(pa...', errorDetail: null, errorRange: [ - 1, - 19, + 6, + 37, ], - fixInfo: { - deleteCount: 19, - editColumn: 1, - insertText: '', - }, - lineNumber: 9, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 59, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: 'https://example.com', + errorContext: '[url](https://example.com/pa(r...', errorDetail: null, errorRange: [ - 2, - 19, + 6, + 37, ], - fixInfo: { - deleteCount: 19, - editColumn: 2, - insertText: '', - }, - lineNumber: 20, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 61, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: 'https://example.com}', + errorContext: '[url](relative/path)', errorDetail: null, errorRange: [ - 2, + 6, 20, ], - fixInfo: { - deleteCount: 20, - editColumn: 2, - insertText: '', - }, - lineNumber: 21, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 63, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: 'https://example.com/', + errorContext: '[url](#fragment)', errorDetail: null, errorRange: [ - 3, - 20, + 6, + 16, ], - fixInfo: { - deleteCount: 20, - editColumn: 3, - insertText: '', - }, - lineNumber: 27, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 65, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: 'https://example.com/', + errorContext: '', errorDetail: null, errorRange: [ - 26, - 20, + 6, + 30, ], - fixInfo: { - deleteCount: 20, - editColumn: 26, - insertText: '', - }, - lineNumber: 27, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 67, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, { - errorContext: 'https://example.com', + errorContext: '[url](https://example.com/an>g...', errorDetail: null, errorRange: [ - 43, - 19, + 6, + 35, ], - fixInfo: { - deleteCount: 19, - editColumn: 43, - insertText: '', - }, - lineNumber: 30, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 69, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD054', + 'link-image-style', ], }, ], - fixed: `# Link test␊ + fixed: `# Link Style Full Only␊ ␊ - For more information, please see the␊ - following page: {MD034}␊ - which will tell you all you want to know.␊ + Text [url](https://example.com) text {MD054}␊ ␊ - {MD034}␊ + Text ![url](https://example.com) text {MD054}␊ ␊ - {MD034}␊ + Text [url]() text {MD054}␊ ␊ - This link should be fine: ␊ + Text ![url]() text {MD054}␊ ␊ - The following are allowed to avoid conflicts with MD011/no-reversed-links:␊ + Text [url](https://example.com "title") text {MD054}␊ ␊ - [https://example.com]␊ - [https://example.com/search?query=text]␊ + Text ![url](https://example.com "title") text {MD054}␊ ␊ - Other enclosures are not allowed:␊ + Text {MD054} [url](https://example.com␊ + "title") text␊ ␊ - () {MD034}␊ - { {MD034}␊ + Text {MD054} ![url](https://example.com␊ + "title") text␊ ␊ - Duplicate links in tables should be handled:␊ + Text [text][url] text␊ ␊ - | Link | Same Link | Violation |␊ - |----------------------|----------------------|-----------|␊ - | | | {MD034} |␊ + Text ![text][url] text␊ ␊ - This is not a bare URL: [text [undefined] text](https://example.com).␊ - This is a bare URL: [text [defined] text](). {MD034}␊ + Text [url][] text {MD054}␊ ␊ - [defined]: https://example.com␊ - `, - } - -## lint-javascript.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Lint JavaScript␊ + Text ![url][] text {MD054}␊ ␊ - ␊ + Text [url] text {MD054}␊ ␊ - Text␊ + Text ![url] text {MD054}␊ ␊ - \`\`\`js␊ - "use strict";␊ + Text text {MD054}␊ ␊ - var x = 0;␊ + [url]: https://example.com "title"␊ ␊ - console.log(x);␊ - \`\`\`␊ + [undefined]␊ ␊ - Text␊ + Text [url](https://example.com/embedded\\3backslash) text {MD054}␊ ␊ - var y = 0;␊ + Text [url](https://example.com/backslash\\[escape) text {MD054}␊ ␊ - Text␊ + Text [embedded-backslash] text {MD054}␊ ␊ - Text \`undefined\` text␊ + Text [backslash-escape] text {MD054}␊ ␊ - Text␊ + Text text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + [embedded-backslash]: https://example.com/embedded\\3backslash␊ + ␊ + [backslash-escape]: https://example.com/backslash\\[escape␊ + ␊ + Text [url]() text {MD054}␊ + ␊ + Text [url]() text {MD054}␊ + ␊ + Text [url](https://example.com/\\(parens\\)) text {MD054}␊ + ␊ + Text [url](https://example.com/pa(re(ns))) text {MD054}␊ + ␊ + Text [url](relative/path) text {MD054}␊ + ␊ + Text [url](#fragment) text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + Text [url](https://example.com/an>g) text {MD054}␊ + ␊ + ␊ `, } -## list-indentation-start-indent-indent.md +## link-style-inline-only.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorContext: '[text][url]', + errorDetail: null, errorRange: [ - 1, - 4, + 6, + 11, ], - fixInfo: null, - lineNumber: 11, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 11, + editColumn: 6, + insertText: '[text](https://example.com)', + }, + lineNumber: 21, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 7; Actual: 6', + errorContext: '![text][url]', + errorDetail: null, errorRange: [ - 1, + 6, + 12, + ], + fixInfo: { + deleteCount: 12, + editColumn: 6, + insertText: '![text](https://example.com)', + }, + lineNumber: 23, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', + ], + }, + { + errorContext: '[url][]', + errorDetail: null, + errorRange: [ + 6, + 7, + ], + fixInfo: { + deleteCount: 7, + editColumn: 6, + insertText: '[url](https://example.com)', + }, + lineNumber: 25, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', + ], + }, + { + errorContext: '![url][]', + errorDetail: null, + errorRange: [ + 6, 8, ], fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', + deleteCount: 8, + editColumn: 6, + insertText: '![url](https://example.com)', }, - lineNumber: 9, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 27, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorContext: '[url]', + errorDetail: null, errorRange: [ - 1, - 4, + 6, + 5, ], fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', + deleteCount: 5, + editColumn: 6, + insertText: '[url](https://example.com)', }, - lineNumber: 11, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 29, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorContext: '![url]', + errorDetail: null, errorRange: [ - 1, - 4, + 6, + 6, ], fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', + deleteCount: 6, + editColumn: 6, + insertText: '![url](https://example.com)', }, - lineNumber: 15, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 31, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorContext: '', + errorDetail: null, errorRange: [ - 1, - 4, + 6, + 21, ], fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', + deleteCount: 21, + editColumn: 6, + insertText: '[https://example.com](https://example.com)', }, - lineNumber: 16, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 33, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 4; Actual: 3', + errorContext: '[embedded-backslash]', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 20, ], fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', + deleteCount: 20, + editColumn: 6, + insertText: '[embedded-backslash](https://example.com/embedded\\3backslash)', }, - lineNumber: 25, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 43, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 4; Actual: 3', + errorContext: '[backslash-escape]', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 18, ], fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', + deleteCount: 18, + editColumn: 6, + insertText: '[backslash-escape](https://example.com/backslash\\[escape)', }, - lineNumber: 26, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 45, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 7; Actual: 6', + errorContext: '', + errorDetail: null, + errorRange: [ + 6, + 30, + ], + fixInfo: { + deleteCount: 30, + editColumn: 6, + insertText: '[https://example.com/pa)re(ns](https://example.com/pa\\)re\\(ns)', + }, + lineNumber: 67, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', ], }, ], - fixed: `# List Indentation start_indent/indent␊ + fixed: `# Link Style Inline Only␊ ␊ - * item 1␊ - * item 2␊ - * item 2.1␊ - * item 2.2␊ - * item 2.2.1␊ - * item 2.3␊ - * item 2.3.1 {MD007}␊ - * item 3␊ - * item 4 {MD005} {MD007}␊ + Text [url](https://example.com) text␊ ␊ - Text␊ + Text ![url](https://example.com) text␊ ␊ - * item 1 {MD007}␊ - * item 2 {MD007}␊ - * item 2.1␊ - * item 2.2␊ - * item 2.2.1␊ + Text [url]() text␊ ␊ - Text␊ + Text ![url]() text␊ ␊ - * item 1␊ - * item 2␊ - * item 2.1 {MD007}␊ - * item 2.2 {MD007}␊ - * item 2.2.1 {MD007}␊ + Text [url](https://example.com "title") text␊ + ␊ + Text ![url](https://example.com "title") text␊ + ␊ + Text [url](https://example.com␊ + "title") text␊ + ␊ + Text ![url](https://example.com␊ + "title") text␊ + ␊ + Text [text](https://example.com) text {MD054}␊ + ␊ + Text ![text](https://example.com) text {MD054}␊ + ␊ + Text [url](https://example.com) text {MD054}␊ + ␊ + Text ![url](https://example.com) text {MD054}␊ + ␊ + Text [url](https://example.com) text {MD054}␊ + ␊ + Text ![url](https://example.com) text {MD054}␊ + ␊ + Text [https://example.com](https://example.com) text {MD054}␊ + ␊ + [url]: https://example.com "title"␊ + ␊ + [undefined]␊ + ␊ + Text [url](https://example.com/embedded\\3backslash) text␊ + ␊ + Text [url](https://example.com/backslash\\[escape) text␊ + ␊ + Text [embedded-backslash](https://example.com/embedded\\3backslash) text {MD054}␊ + ␊ + Text [backslash-escape](https://example.com/backslash\\[escape) text {MD054}␊ + ␊ + Text [https://example.com/embedded\\3backslash](https://example.com/embedded\\3backslash) text {MD054}␊ + ␊ + Text [https://example.com/backslash\\[no-escape](https://example.com/backslash[no-escape) text {MD054}␊ + ␊ + [embedded-backslash]: https://example.com/embedded\\3backslash␊ + ␊ + [backslash-escape]: https://example.com/backslash\\[escape␊ + ␊ + Text [url]() text␊ + ␊ + Text [url]() text␊ + ␊ + Text [url](https://example.com/\\(parens\\)) text␊ + ␊ + Text [url](https://example.com/pa(re(ns))) text␊ + ␊ + Text [url](relative/path) text␊ + ␊ + Text [url](#fragment) text␊ + ␊ + Text [https://example.com/pa)re(ns](https://example.com/pa\\)re\\(ns) text {MD054}␊ + ␊ + Text [url](https://example.com/an>g) text␊ ␊ ␊ `, } -## list-indentation-start-indent-no-indent.md +## link-style-inline-or-reference.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', - errorRange: [ - 1, - 4, - ], - fixInfo: null, - lineNumber: 11, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', - ruleNames: [ - 'MD005', - 'list-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 5; Actual: 6', - errorRange: [ - 1, - 8, - ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', - }, - lineNumber: 9, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', - ruleNames: [ - 'MD007', - 'ul-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', - errorRange: [ - 1, - 4, - ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', - }, - lineNumber: 11, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', - ruleNames: [ - 'MD007', - 'ul-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', - errorRange: [ - 1, - 4, - ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', - }, - lineNumber: 15, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', - ruleNames: [ - 'MD007', - 'ul-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorContext: '', + errorDetail: null, errorRange: [ - 1, - 4, + 6, + 21, ], fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', + deleteCount: 21, + editColumn: 6, + insertText: '[https://example.com](https://example.com)', }, - lineNumber: 16, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 33, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 3; Actual: 4', + errorContext: '', + errorDetail: null, errorRange: [ - 1, - 8, + 6, + 30, ], fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', + deleteCount: 30, + editColumn: 6, + insertText: '[https://example.com/pa)re(ns](https://example.com/pa\\)re\\(ns)', }, - lineNumber: 19, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 67, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, + ], + fixed: `# Link Style Inline or Reference␊ + ␊ + Text [url](https://example.com) text␊ + ␊ + Text ![url](https://example.com) text␊ + ␊ + Text [url]() text␊ + ␊ + Text ![url]() text␊ + ␊ + Text [url](https://example.com "title") text␊ + ␊ + Text ![url](https://example.com "title") text␊ + ␊ + Text [url](https://example.com␊ + "title") text␊ + ␊ + Text ![url](https://example.com␊ + "title") text␊ + ␊ + Text [text][url] text␊ + ␊ + Text ![text][url] text␊ + ␊ + Text [url][] text␊ + ␊ + Text ![url][] text␊ + ␊ + Text [url] text␊ + ␊ + Text ![url] text␊ + ␊ + Text [https://example.com](https://example.com) text {MD054}␊ + ␊ + [url]: https://example.com "title"␊ + ␊ + [undefined]␊ + ␊ + Text [url](https://example.com/embedded\\3backslash) text␊ + ␊ + Text [url](https://example.com/backslash\\[escape) text␊ + ␊ + Text [embedded-backslash] text␊ + ␊ + Text [backslash-escape] text␊ + ␊ + Text [https://example.com/embedded\\3backslash](https://example.com/embedded\\3backslash) text {MD054}␊ + ␊ + Text [https://example.com/backslash\\[no-escape](https://example.com/backslash[no-escape) text {MD054}␊ + ␊ + [embedded-backslash]: https://example.com/embedded\\3backslash␊ + ␊ + [backslash-escape]: https://example.com/backslash\\[escape␊ + ␊ + Text [url]() text␊ + ␊ + Text [url]() text␊ + ␊ + Text [url](https://example.com/\\(parens\\)) text␊ + ␊ + Text [url](https://example.com/pa(re(ns))) text␊ + ␊ + Text [url](relative/path) text␊ + ␊ + Text [url](#fragment) text␊ + ␊ + Text [https://example.com/pa)re(ns](https://example.com/pa\\)re\\(ns) text {MD054}␊ + ␊ + Text [url](https://example.com/an>g) text␊ + ␊ + ␊ + `, + } + +## link-style-no-url-inline-not-possible.md + +> Snapshot 1 + + { + errors: [ { - errorContext: null, - errorDetail: 'Expected: 3; Actual: 4', + errorContext: '', + errorDetail: null, errorRange: [ - 1, 6, + 21, ], fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', + deleteCount: 21, + editColumn: 6, + insertText: '[https://example.com](https://example.com)', }, - lineNumber: 25, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 27, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, + ], + fixed: `# Link Style No URL Inline Not Possible␊ + ␊ + Text [https://example.com](https://example.com) text␊ + ␊ + Text ![https://example.com](https://example.com) text␊ + ␊ + Text [https://example.com]() text␊ + ␊ + Text ![https://example.com]() text␊ + ␊ + Text [https://example.com](https://example.com/page "title") text␊ + ␊ + Text ![https://example.com](https://example.com/page "title") text␊ + ␊ + Text [https://example.com](https://example.com "title") text␊ + ␊ + Text ![https://example.com](https://example.com "title") text␊ + ␊ + Text [https://example.com][url] text␊ + ␊ + Text ![https://example.com][url] text␊ + ␊ + Text [https://example.com][url-title] text␊ + ␊ + Text ![https://example.com][url-title] text␊ + ␊ + Text [https://example.com](https://example.com) text {MD054}␊ + ␊ + [url]: https://example.com␊ + [url-title]: https://example.com "title"␊ + ␊ + Text [link](https://example.com) text␊ + ␊ + Text ![link](https://example.com) text␊ + ␊ + Text [link][url] text␊ + ␊ + Text ![link][url] text␊ + ␊ + Text [url][] text␊ + ␊ + Text ![url][] text␊ + ␊ + Text [url] text␊ + ␊ + Text ![url] text␊ + ␊ + Text [file.md](file.md) text␊ + ␊ + ␊ + `, + } + +## link-style-no-url-inline-possible.md + +> Snapshot 1 + + { + errors: [ { - errorContext: null, - errorDetail: 'Expected: 3; Actual: 4', + errorContext: '[https://example.com](https://...', + errorDetail: null, errorRange: [ - 1, 6, + 42, ], fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', + deleteCount: 42, + editColumn: 6, + insertText: '', }, - lineNumber: 26, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 3, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 5; Actual: 7', + errorContext: '[https://example.com](', }, - lineNumber: 27, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 7, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, ], - fixed: `# List Indentation start_indent/no indent␊ + fixed: `# Link Style No URL Inline Possible␊ ␊ - * item 1␊ - * item 2␊ - * item 2.1␊ - * item 2.2␊ - * item 2.2.1␊ - * item 2.3␊ - * item 2.3.1 {MD007}␊ - * item 3␊ - * item 4 {MD005} {MD007}␊ + Text text {MD054}␊ ␊ - Text␊ + Text ![https://example.com](https://example.com) text␊ ␊ - * item 1 {MD007}␊ - * item 2 {MD007}␊ - * item 2.1 {MD007}␊ - * item 2.2 {MD007}␊ - * item 2.2.1 {MD007}␊ + Text text {MD054}␊ ␊ - Text␊ + Text ![https://example.com]() text␊ ␊ - * item 1␊ - * item 2␊ - * item 2.1 {MD007}␊ - * item 2.2 {MD007}␊ - * item 2.2.1 {MD007}␊ + Text [https://example.com](https://example.com/page "title") text␊ + ␊ + Text ![https://example.com](https://example.com/page "title") text␊ + ␊ + Text [https://example.com](https://example.com "title") text␊ + ␊ + Text ![https://example.com](https://example.com "title") text␊ + ␊ + Text [https://example.com][url] text␊ + ␊ + Text ![https://example.com][url] text␊ + ␊ + Text [https://example.com][url-title] text␊ + ␊ + Text ![https://example.com][url-title] text␊ + ␊ + Text text␊ + ␊ + [url]: https://example.com␊ + [url-title]: https://example.com "title"␊ + ␊ + Text [link](https://example.com) text␊ + ␊ + Text ![link](https://example.com) text␊ + ␊ + Text [link][url] text␊ + ␊ + Text ![link][url] text␊ + ␊ + Text [url][] text␊ + ␊ + Text ![url][] text␊ + ␊ + Text [url] text␊ + ␊ + Text ![url] text␊ + ␊ + Text [file.md](file.md) text␊ ␊ ␊ `, } -## list-indentation-start-indented-indent.md +## link-style-none.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Expected: 3; Actual: 0', + errorContext: '[url](https://example.com)', + errorDetail: null, + errorRange: [ + 6, + 26, + ], + fixInfo: null, + lineNumber: 3, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', + ], + }, + { + errorContext: '![url](https://example.com)', + errorDetail: null, + errorRange: [ + 6, + 27, + ], + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', + ], + }, + { + errorContext: '[url]()', + errorDetail: null, + errorRange: [ + 6, + 28, + ], + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', + ], + }, + { + errorContext: '![url]()', + errorDetail: null, + errorRange: [ + 6, + 29, + ], + fixInfo: null, + lineNumber: 9, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', + ], + }, + { + errorContext: '[url](https://example.com "tit...', + errorDetail: null, errorRange: [ - 1, - 2, + 6, + 34, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, + fixInfo: null, + lineNumber: 11, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', + ], + }, + { + errorContext: '![url](https://example.com "ti...', + errorDetail: null, + errorRange: [ + 6, + 35, + ], + fixInfo: null, lineNumber: 13, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 3; Actual: 0', + errorContext: '[url](https://example.com', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 15, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', + ], + }, + { + errorContext: '![url](https://example.com', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 18, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', + ruleNames: [ + 'MD054', + 'link-image-style', + ], + }, + { + errorContext: '[text][url]', + errorDetail: null, errorRange: [ - 1, - 2, + 6, + 11, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 14, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 21, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 6; Actual: 3', + errorContext: '![text][url]', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 12, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 15, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 23, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 6; Actual: 3', + errorContext: '[url][]', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 7, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 16, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 25, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 9; Actual: 6', + errorContext: '![url][]', + errorDetail: null, errorRange: [ - 1, + 6, 8, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 17, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 27, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 6; Actual: 3', + errorContext: '[url]', + errorDetail: null, errorRange: [ - 1, + 6, 5, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 18, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 29, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 3; Actual: 0', + errorContext: '![url]', + errorDetail: null, errorRange: [ - 1, - 2, + 6, + 6, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 19, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 31, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 3; Actual: 1', + errorContext: '', + errorDetail: null, errorRange: [ - 1, - 3, + 6, + 21, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 23, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 33, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 3; Actual: 1', + errorContext: '[url](https://example.com/embe...', + errorDetail: null, errorRange: [ - 1, - 3, + 6, + 46, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 24, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 39, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 6; Actual: 4', + errorContext: '[url](https://example.com/back...', + errorDetail: null, errorRange: [ - 1, 6, + 44, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 25, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 41, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 6; Actual: 4', + errorContext: '[embedded-backslash]', + errorDetail: null, errorRange: [ - 1, 6, + 20, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 26, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 43, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 9; Actual: 7', + errorContext: '[backslash-escape]', + errorDetail: null, errorRange: [ - 1, - 9, + 6, + 18, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 27, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 45, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 6; Actual: 4', + errorContext: '', + errorDetail: null, errorRange: [ - 1, - 7, + 6, + 30, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 38, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 67, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 3; Actual: 2', + errorContext: '[url](https://example.com/an>g...', + errorDetail: null, errorRange: [ - 1, - 4, + 6, + 35, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 39, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 69, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, ], - fixed: `# List Indentation - Start Indented␊ + fixed: `# Link Style None␊ ␊ - * item 1␊ - * item 2␊ - * item 2.1␊ - * item 2.2␊ - * item 2.2.1␊ - * item 2.3␊ - * item 3␊ + Text [url](https://example.com) text {MD054}␊ ␊ - ## Disallowed List Indentation - Starts at Zero␊ + Text ![url](https://example.com) text {MD054}␊ ␊ - * item 1 {MD007}␊ - * item 2 {MD007}␊ - * item 2.1 {MD007}␊ - * item 2.2 {MD007}␊ - * item 2.2.1 {MD007}␊ - * item 2.3 {MD007}␊ - * item 3 {MD007}␊ + Text [url]() text {MD054}␊ ␊ - ## Disallowed List Indentation - Starts at One␊ + Text ![url]() text {MD054}␊ ␊ - * item 1 {MD007}␊ - * item 2 {MD007}␊ - * item 2.1 {MD007}␊ - * item 2.2 {MD007}␊ - * item 2.2.1 {MD007}␊ - * item 2.3 {MD007}␊ - * item 3 {MD007}␊ + Text [url](https://example.com "title") text {MD054}␊ ␊ - ## Disallowed List Indentation - Starts at Two␊ + Text ![url](https://example.com "title") text {MD054}␊ ␊ - * item 1 {MD007}␊ - * item 2 {MD007}␊ - * item 2.1 {MD007}␊ - * item 2.2 {MD007}␊ - * item 2.2.1 {MD007}␊ - * item 2.3 {MD007}␊ - * item 3 {MD007}␊ + Text {MD054} [url](https://example.com␊ + "title") text␊ + ␊ + Text {MD054} ![url](https://example.com␊ + "title") text␊ + ␊ + Text [text][url] text {MD054}␊ + ␊ + Text ![text][url] text {MD054}␊ + ␊ + Text [url][] text {MD054}␊ + ␊ + Text ![url][] text {MD054}␊ + ␊ + Text [url] text {MD054}␊ + ␊ + Text ![url] text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + [url]: https://example.com "title"␊ + ␊ + [undefined]␊ + ␊ + Text [url](https://example.com/embedded\\3backslash) text {MD054}␊ + ␊ + Text [url](https://example.com/backslash\\[escape) text {MD054}␊ + ␊ + Text [embedded-backslash] text {MD054}␊ + ␊ + Text [backslash-escape] text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + [embedded-backslash]: https://example.com/embedded\\3backslash␊ + ␊ + [backslash-escape]: https://example.com/backslash\\[escape␊ + ␊ + Text [url]() text {MD054}␊ + ␊ + Text [url]() text {MD054}␊ + ␊ + Text [url](https://example.com/\\(parens\\)) text {MD054}␊ + ␊ + Text [url](https://example.com/pa(re(ns))) text {MD054}␊ + ␊ + Text [url](relative/path) text {MD054}␊ + ␊ + Text [url](#fragment) text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + Text [url](https://example.com/an>g) text {MD054}␊ ␊ ␊ `, } -## list-indentation-start-indented-no-indent.md +## link-style-reference-only.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 0', + errorContext: '[url](https://example.com)', + errorDetail: null, errorRange: [ - 1, - 2, + 6, + 26, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 13, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 3, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 0', + errorContext: '![url](https://example.com)', + errorDetail: null, errorRange: [ - 1, - 2, + 6, + 27, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 14, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 4; Actual: 3', + errorContext: '[url]()', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 28, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 15, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 4; Actual: 3', + errorContext: '![url]()', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 29, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 16, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 9, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 6; Actual: 5', + errorContext: '[url](https://example.com "tit...', + errorDetail: null, errorRange: [ - 1, - 7, + 6, + 34, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 17, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 11, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 4; Actual: 3', + errorContext: '![url](https://example.com "ti...', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 35, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 18, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 13, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 0', - errorRange: [ - 1, - 2, - ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 19, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + errorContext: '[url](https://example.com', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 15, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 1', - errorRange: [ - 1, - 3, - ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 23, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + errorContext: '![url](https://example.com', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 18, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 1', + errorContext: '', + errorDetail: null, errorRange: [ - 1, - 3, + 6, + 21, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 24, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 33, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 4; Actual: 3', + errorContext: '[url](https://example.com/embe...', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 46, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 25, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 39, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 4; Actual: 3', + errorContext: '[url](https://example.com/back...', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 44, ], - fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', - }, - lineNumber: 26, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 41, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 6; Actual: 7', + errorContext: '', + errorDetail: null, errorRange: [ - 1, - 8, + 6, + 30, ], - fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', - }, - lineNumber: 39, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 67, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorContext: '[url](https://example.com/an>g...', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 35, ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', - }, - lineNumber: 40, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 69, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, ], - fixed: `# List Indentation - Start Indented/No Indent␊ + fixed: `# Link Style Reference Only␊ ␊ - * item 1␊ - * item 2␊ - * item 2.1␊ - * item 2.2␊ - * item 2.2.1␊ - * item 2.3␊ - * item 3␊ + Text [url](https://example.com) text {MD054}␊ ␊ - ## Disallowed List Indentation - Starts at Zero␊ + Text ![url](https://example.com) text {MD054}␊ ␊ - * item 1 {MD007}␊ - * item 2 {MD007}␊ - * item 2.1 {MD007}␊ - * item 2.2 {MD007}␊ - * item 2.2.1 {MD007}␊ - * item 2.3 {MD007}␊ - * item 3 {MD007}␊ + Text [url]() text {MD054}␊ ␊ - ## Disallowed List Indentation - Starts at One␊ + Text ![url]() text {MD054}␊ ␊ - * item 1 {MD007}␊ - * item 2 {MD007}␊ - * item 2.1 {MD007}␊ - * item 2.2 {MD007}␊ - * item 2.2.1 {MD007}␊ - * item 2.3 {MD007}␊ - * item 2.3.1␊ - * item 3 {MD007}␊ + Text [url](https://example.com "title") text {MD054}␊ ␊ - ## Disallowed List Indentation - Starts at Three␊ + Text ![url](https://example.com "title") text {MD054}␊ ␊ - * item 1 {MD007}␊ - * item 2 {MD007}␊ - * item 2.1 {MD007}␊ - * item 2.2 {MD007}␊ - * item 2.2.1 {MD007}␊ - * item 2.3 {MD007}␊ - * item 3 {MD007}␊ + Text {MD054} [url](https://example.com␊ + "title") text␊ + ␊ + Text {MD054} ![url](https://example.com␊ + "title") text␊ + ␊ + Text [text][url] text␊ + ␊ + Text ![text][url] text␊ + ␊ + Text [url][] text␊ + ␊ + Text ![url][] text␊ + ␊ + Text [url] text␊ + ␊ + Text ![url] text␊ + ␊ + Text text {MD054}␊ + ␊ + [url]: https://example.com "title"␊ + ␊ + [undefined]␊ + ␊ + Text [url](https://example.com/embedded\\3backslash) text {MD054}␊ + ␊ + Text [url](https://example.com/backslash\\[escape) text {MD054}␊ + ␊ + Text [embedded-backslash] text␊ + ␊ + Text [backslash-escape] text␊ + ␊ + Text text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + [embedded-backslash]: https://example.com/embedded\\3backslash␊ + ␊ + [backslash-escape]: https://example.com/backslash\\[escape␊ + ␊ + Text [url]() text {MD054}␊ + ␊ + Text [url]() text {MD054}␊ + ␊ + Text [url](https://example.com/\\(parens\\)) text {MD054}␊ + ␊ + Text [url](https://example.com/pa(re(ns))) text {MD054}␊ + ␊ + Text [url](relative/path) text {MD054}␊ + ␊ + Text [url](#fragment) text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + Text [url](https://example.com/an>g) text {MD054}␊ ␊ ␊ `, } -## list-indentation.md +## link-style-shortcut-only.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorContext: '[url](https://example.com)', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 26, ], fixInfo: null, - lineNumber: 28, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + lineNumber: 3, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorContext: '![url](https://example.com)', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 27, ], fixInfo: null, - lineNumber: 30, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + lineNumber: 5, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorContext: '[url]()', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 28, ], fixInfo: null, - lineNumber: 31, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + lineNumber: 7, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorContext: '![url]()', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 29, ], fixInfo: null, - lineNumber: 35, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + lineNumber: 9, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 3; Actual: 2', + errorContext: '[url](https://example.com "tit...', + errorDetail: null, errorRange: [ - 1, - 4, + 6, + 34, ], fixInfo: null, - lineNumber: 44, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + lineNumber: 11, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 4', + errorContext: '![url](https://example.com "ti...', + errorDetail: null, errorRange: [ - 1, 6, + 35, ], - fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', - }, - lineNumber: 6, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 13, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 4', - errorRange: [ - 1, - 6, - ], - fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', - }, - lineNumber: 8, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + errorContext: '[url](https://example.com', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 15, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 4', - errorRange: [ - 1, - 6, - ], - fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', - }, - lineNumber: 15, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + errorContext: '![url](https://example.com', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 18, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 4', + errorContext: '[text][url]', + errorDetail: null, errorRange: [ - 1, 6, + 11, ], - fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', - }, - lineNumber: 20, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 21, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorContext: '![text][url]', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 12, ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', - }, - lineNumber: 28, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 23, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorContext: '[url][]', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 7, ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', - }, - lineNumber: 30, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 25, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorContext: '![url][]', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 8, ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', - }, - lineNumber: 31, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 27, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorContext: '', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 21, ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', - }, - lineNumber: 35, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 33, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorContext: '[url](https://example.com/embe...', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 46, ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', - }, - lineNumber: 38, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 39, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorContext: '[url](https://example.com/back...', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 44, ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', - }, - lineNumber: 39, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 41, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorContext: '', + errorDetail: null, errorRange: [ - 1, 6, + 30, ], - fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', - }, - lineNumber: 55, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 67, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 2', + errorContext: '[url](https://example.com/an>g...', + errorDetail: null, errorRange: [ - 1, - 4, + 6, + 35, ], - fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', - }, - lineNumber: 56, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + fixInfo: null, + lineNumber: 69, + ruleDescription: 'Link and image style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD054', + 'link-image-style', ], }, ], - fixed: `# List Indentation␊ + fixed: `# Link Style Shortcut Only␊ ␊ - Text␊ + Text [url](https://example.com) text {MD054}␊ ␊ - - Item␊ - - Item {MD007}␊ - - Item␊ - - Item {MD007}␊ + Text ![url](https://example.com) text {MD054}␊ ␊ - Text␊ + Text [url]() text {MD054}␊ ␊ - - Item␊ - - Item␊ - - Item␊ - - Item {MD007}␊ + Text ![url]() text {MD054}␊ ␊ - Text␊ + Text [url](https://example.com "title") text {MD054}␊ ␊ - - Item␊ - - Item {MD007}␊ - - Item␊ - - Item␊ + Text ![url](https://example.com "title") text {MD054}␊ ␊ - Text␊ + Text {MD054} [url](https://example.com␊ + "title") text␊ ␊ - - Item␊ - - Item␊ - - Item {MD005} {MD007}␊ - - Item␊ - - Item {MD005} {MD007}␊ - - Item {MD005} {MD007}␊ - - Item␊ - - Item␊ - - Item␊ - - Item {MD005} {MD007}␊ - - Item␊ - - Item␊ - - Item {MD007}␊ - - Item {MD007}␊ - - Item {MD007}␊ - - Item␊ - - Item {MD007}␊ - - Item {MD007}␊ - - Item {MD005}␊ + Text {MD054} ![url](https://example.com␊ + "title") text␊ ␊ - Text␊ + Text [text][url] text {MD054}␊ ␊ - ## Invalid Indentation - Should Start at Zero␊ + Text ![text][url] text {MD054}␊ ␊ - - item 1 {MD007}␊ - - item 2 {MD007}␊ - - item 2.1 {MD007}␊ - - item 2.2 {MD007}␊ - - item 2.2.1 {MD007}␊ - - item 2.3 {MD007}␊ - - item 3 {MD007}␊ + Text [url][] text {MD054}␊ + ␊ + Text ![url][] text {MD054}␊ + ␊ + Text [url] text␊ + ␊ + Text ![url] text␊ + ␊ + Text text {MD054}␊ + ␊ + [url]: https://example.com "title"␊ + ␊ + [undefined]␊ + ␊ + Text [url](https://example.com/embedded\\3backslash) text {MD054}␊ + ␊ + Text [url](https://example.com/backslash\\[escape) text {MD054}␊ + ␊ + Text [embedded-backslash] text␊ + ␊ + Text [backslash-escape] text␊ + ␊ + Text text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + [embedded-backslash]: https://example.com/embedded\\3backslash␊ + ␊ + [backslash-escape]: https://example.com/backslash\\[escape␊ + ␊ + Text [url]() text {MD054}␊ + ␊ + Text [url]() text {MD054}␊ + ␊ + Text [url](https://example.com/\\(parens\\)) text {MD054}␊ + ␊ + Text [url](https://example.com/pa(re(ns))) text {MD054}␊ + ␊ + Text [url](relative/path) text {MD054}␊ + ␊ + Text [url](#fragment) text {MD054}␊ + ␊ + Text text {MD054}␊ + ␊ + Text [url](https://example.com/an>g) text {MD054}␊ + ␊ + ␊ `, } -## list-item-prefix-alignment.md +## links-alternate.md > Snapshot 1 @@ -30077,1589 +29808,1518 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: 2; Actual: 1', - errorRange: [ - 1, - 4, - ], - fixInfo: { - deleteCount: 0, - editColumn: 2, - insertText: ' ', - }, - lineNumber: 87, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', - ruleNames: [ - 'MD005', - 'list-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: (4); Actual: (5)', - errorRange: [ - 1, - 6, - ], - fixInfo: { - deleteCount: 1, - editColumn: 2, - insertText: '', - }, - lineNumber: 93, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', - ruleNames: [ - 'MD005', - 'list-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: (4); Actual: (3)', + errorDetail: '(Incorrect link syntax)[https://www.example.com/]', errorRange: [ 1, - 4, + 49, ], fixInfo: { - deleteCount: 0, + deleteCount: 49, editColumn: 1, - insertText: ' ', - }, - lineNumber: 95, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', - ruleNames: [ - 'MD005', - 'list-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 1', - errorRange: [ - 1, - 4, - ], - fixInfo: { - deleteCount: 0, - editColumn: 2, - insertText: ' ', - }, - lineNumber: 101, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', - ruleNames: [ - 'MD005', - 'list-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 5; Actual: 6', - errorRange: [ - 1, - 9, - ], - fixInfo: { - deleteCount: 1, - editColumn: 6, - insertText: '', + insertText: '[Incorrect link syntax](https://www.example.com/)', }, - lineNumber: 107, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + lineNumber: 30, + ruleDescription: 'Reversed link syntax', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD011', + 'no-reversed-links', ], }, { - errorContext: null, - errorDetail: 'Expected: 5; Actual: 6', + errorContext: 'https://example.com/', + errorDetail: null, errorRange: [ - 1, - 9, + 6, + 20, ], fixInfo: { - deleteCount: 1, + deleteCount: 20, editColumn: 6, - insertText: '', + insertText: '', }, - lineNumber: 110, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + lineNumber: 3, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 1', + errorContext: 'https://example.com/bare', + errorDetail: null, errorRange: [ - 1, - 4, + 42, + 24, ], fixInfo: { - deleteCount: 0, - editColumn: 2, - insertText: ' ', + deleteCount: 24, + editColumn: 42, + insertText: '', }, - lineNumber: 114, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + lineNumber: 5, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: 6; Actual: 5', + errorContext: 'https://example.com/bare', + errorDetail: null, errorRange: [ - 1, - 8, + 6, + 24, ], fixInfo: { - deleteCount: 0, + deleteCount: 24, editColumn: 6, - insertText: ' ', + insertText: '', }, - lineNumber: 118, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + lineNumber: 7, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: 6; Actual: 7', + errorContext: 'https://example.com/', + errorDetail: null, errorRange: [ - 1, - 10, + 48, + 20, ], fixInfo: { - deleteCount: 1, - editColumn: 7, - insertText: '', + deleteCount: 20, + editColumn: 48, + insertText: '', }, - lineNumber: 122, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + lineNumber: 9, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 1', + errorContext: 'https://example.com/bare', + errorDetail: null, errorRange: [ - 1, - 4, + 44, + 24, ], fixInfo: { - deleteCount: 0, - editColumn: 2, - insertText: ' ', + deleteCount: 24, + editColumn: 44, + insertText: '', }, - lineNumber: 127, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + lineNumber: 11, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD034', + 'no-bare-urls', ], }, - ], - fixed: `# List Alignment␊ - ␊ - ## Leading Spaces␊ - ␊ - 1. One␊ - 2. Two␊ - 3. Three␊ - 4. Four␊ - 5. Five␊ - 6. Six␊ - 7. Seven␊ - 8. Eight␊ - 9. Nine␊ - 10. Ten␊ - 11. Eleven␊ - 12. Twelve␊ - ␊ - ## Leading Zeroes␊ - ␊ - 01. One␊ - 02. Two␊ - 03. Three␊ - 04. Four␊ - 05. Five␊ - 06. Six␊ - 07. Seven␊ - 08. Eight␊ - 09. Nine␊ - 10. Ten␊ - 11. Eleven␊ - 12. Twelve␊ - ␊ - ## Double Leading Zeroes␊ - ␊ - 001. One␊ - 002. Two␊ - 003. Three␊ - ␊ - ## Nested Lists␊ - ␊ - - Item␊ - - Item␊ - 01. One␊ - 02. Two␊ - 03. Three␊ - 04. Four␊ - 05. Five␊ - 06. Six␊ - 07. Seven␊ - 08. Eight␊ - 09. Nine␊ - 10. Ten␊ - 11. Eleven␊ - 12. Twelve␊ - - Item␊ - - Item␊ - 1. One␊ - 2. Two␊ - 3. Three␊ - 4. Four␊ - 5. Five␊ - 6. Six␊ - 7. Seven␊ - 8. Eight␊ - 9. Nine␊ - 10. Ten␊ - 11. Eleven␊ - 12. Twelve␊ - - Item␊ - - Item␊ - ␊ - ## Another Nested List␊ - ␊ - 01. One␊ - 02. Two␊ - 01. One␊ - 02. Two␊ - 03. Three␊ - 04. Four␊ - ␊ - ## Leading Spaces Errors␊ - ␊ - 1. One␊ - 2. Two␊ - 3. Three␊ - 4. Four␊ - 5. Five {MD005}␊ - 6. Six␊ - 7. Seven␊ - 8. Eight␊ - 9. Nine␊ - 10. Ten␊ - 11. Eleven {MD005}␊ - 12. Twelve␊ - 13. Thirteen {MD005}␊ - 14. Fourteen␊ - ␊ - ## Leading Spaces Errors with Nesting␊ - ␊ - 1. One␊ - 2. Two {MD005}␊ - 3. Three␊ - 1. One␊ - 2. Two␊ - 3. Three␊ - 4. Four␊ - 5. Five {MD005}␊ - 6. Six␊ - 7. Seven␊ - 8. Eight {MD005}␊ - 9. Nine␊ - 10. Ten␊ - 4. Four␊ - 5. Five {MD005}␊ - 6. Six␊ - 1. One␊ - 2. Two␊ - 3. Three {MD005}␊ - 4. Four␊ - 5. Five␊ - 6. Six␊ - 7. Seven {MD005}␊ - 8. Eight␊ - 9. Nine␊ - 10. Ten␊ - 7. Seven␊ - 8. Eight {MD005}␊ - 9. Nine␊ - 10. Ten␊ - `, - } - -## list-syntax-in-paragraph-text.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Expected: dash; Actual: plus', + errorContext: 'https://example.com/dir', + errorDetail: null, errorRange: [ - 1, - 2, + 6, + 23, ], fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '-', + deleteCount: 23, + editColumn: 6, + insertText: '', }, - lineNumber: 24, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 13, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: 2; Actual: 5; Style: 1/2/3', + errorContext: 'https://example.com/file.txt', + errorDetail: null, errorRange: [ - 1, - 3, + 6, + 28, ], - fixInfo: null, + fixInfo: { + deleteCount: 28, + editColumn: 6, + insertText: '', + }, lineNumber: 14, - ruleDescription: 'Ordered list item prefix', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md029.md', + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD029', - 'ol-prefix', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 3', + errorContext: 'https://example.com/dir/dir/fi...', + errorDetail: null, errorRange: [ - 1, - 5, + 6, + 44, ], fixInfo: { - deleteCount: 3, - editColumn: 3, - insertText: ' ', + deleteCount: 44, + editColumn: 6, + insertText: '', }, - lineNumber: 17, - ruleDescription: 'Spaces after list markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', + lineNumber: 16, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD030', - 'list-marker-space', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 3', + errorContext: 'https://example.com/same', + errorDetail: null, errorRange: [ - 1, - 4, + 43, + 24, ], fixInfo: { - deleteCount: 3, - editColumn: 2, - insertText: ' ', + deleteCount: 24, + editColumn: 43, + insertText: '', }, - lineNumber: 27, - ruleDescription: 'Spaces after list markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', + lineNumber: 24, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD030', - 'list-marker-space', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: '1. This is a list. {MD032}', + errorContext: 'https://example.com/same', errorDetail: null, - errorRange: null, + errorRange: [ + 46, + 24, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 24, + editColumn: 46, + insertText: '', }, - lineNumber: 10, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 26, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: '1. This is a list. It also has...', + errorContext: 'https://example.com/first', errorDetail: null, - errorRange: null, + errorRange: [ + 6, + 25, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 25, + editColumn: 6, + insertText: '', }, - lineNumber: 13, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 28, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: '1. This is a list. {MD030} {...', + errorContext: 'https://example.com/second', errorDetail: null, - errorRange: null, + errorRange: [ + 42, + 26, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 26, + editColumn: 42, + insertText: '', }, - lineNumber: 17, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 28, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: '- in its list. {MD032}', + errorContext: 'https://example.com/third', errorDetail: null, - errorRange: null, + errorRange: [ + 85, + 25, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 25, + editColumn: 85, + insertText: '', }, - lineNumber: 20, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 28, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: '- in its list. It also has a p...', + errorContext: '[link ]', errorDetail: null, - errorRange: null, + errorRange: [ + 6, + 7, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 5, + editColumn: 7, + insertText: 'link', }, - lineNumber: 23, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 32, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD039', + 'no-space-in-links', ], }, { - errorContext: '- in its list. It also has a p...', + errorContext: '[ link]', errorDetail: null, - errorRange: null, + errorRange: [ + 6, + 7, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 24, + deleteCount: 5, + editColumn: 7, + insertText: 'link', }, - lineNumber: 23, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 34, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD039', + 'no-space-in-links', ], }, { - errorContext: '+ in its list. {MD004} {MD032}', + errorContext: '[ link ]', errorDetail: null, - errorRange: null, + errorRange: [ + 6, + 8, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 6, + editColumn: 7, + insertText: 'link', }, - lineNumber: 24, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 36, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD039', + 'no-space-in-links', ], }, { - errorContext: '- This is a list. {MD030} {M...', + errorContext: '[link ]', errorDetail: null, - errorRange: null, + errorRange: [ + 6, + 7, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 5, + editColumn: 7, + insertText: 'link', }, - lineNumber: 27, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 38, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD039', + 'no-space-in-links', ], }, { - errorContext: '1. which creates a list {MD032...', + errorContext: '[ link]', errorDetail: null, - errorRange: null, + errorRange: [ + 6, + 7, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 5, + editColumn: 7, + insertText: 'link', }, - lineNumber: 31, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 40, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD039', + 'no-space-in-links', ], }, { - errorContext: '1. before the list {MD032}', + errorContext: '[ link ]', errorDetail: null, - errorRange: null, + errorRange: [ + 6, + 8, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 6, + editColumn: 7, + insertText: 'link', }, - lineNumber: 37, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 42, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD039', + 'no-space-in-links', ], }, ], - fixed: `# Heading␊ - ␊ - This paragraph has the number␊ - 5. More text.␊ - ␊ - This paragraph has the number␊ - 11. More text.␊ - ␊ - This non-paragraph has the number␊ - ␊ - 1. This is a list. {MD032}␊ - ␊ - This non-paragraph has the number␊ - ␊ - 1. This is a list. It also has the number {MD032}␊ - 5. This is a list. {MD029}␊ + fixed: `# Detailed Link Results␊ ␊ - This non-paragraph has spaces and the number␊ + Text text {MD034}␊ ␊ - 1. This is a list. {MD030} {MD032}␊ + Text text text {MD034}␊ ␊ - This non-paragraph has a dash␊ + Text text text {MD034}␊ ␊ - - in its list. {MD032}␊ + Text \`code https://example.com/code code\` text text {MD034}␊ ␊ - This non-paragraph has a dash␊ + > Text text text {MD034}␊ ␊ - - in its list. It also has a plus {MD032}␊ - - in its list. {MD004} {MD032}␊ + Text {MD034}␊ + text {MD034}␊ + text ␊ + text {MD034}␊ ␊ - This non-paragraph has spaces and a dash␊ + \`\`\`text␊ + Code https://example.com/code?type=fence code␊ + \`\`\`␊ ␊ - - This is a list. {MD030} {MD032}␊ + Code https://example.com/code?type=indent code␊ ␊ - This is a mixed paragraph that has␊ - 2. followed by text followed by␊ + Text more text still more text done {MD034}␊ ␊ - 1. which creates a list {MD032}␊ - 1. with a couple of items␊ + Text more \\* text more \\[ text done {MD034}␊ ␊ - Another mixed paragraph␊ - 2. with more text␊ - in the middle of things␊ + Text more text still more text done {MD034}␊ ␊ - 1. before the list {MD032}␊ - `, - } - -## lists-and-headings.md - -> Snapshot 1 - - { - errors: [], - fixed: `␊ + [Incorrect link syntax](https://www.example.com/) {MD011}␊ ␊ - * list␊ - * list␊ + Text [link](https://example.com/) text. {MD039}␊ ␊ - # Heading 1␊ + Text [link](https://example.com/) text. {MD039}␊ ␊ - * list␊ - * list␊ + Text [link](https://example.com/) text. {MD039}␊ ␊ - # Heading 2 #␊ + Text [link][reference] text. {MD039}␊ ␊ - * list␊ - * list␊ + Text [link][reference] text. {MD039}␊ ␊ - Heading 3␊ - =========␊ + Text [link][reference] text. {MD039}␊ ␊ - * list␊ - * list␊ + [reference]: https://example.com/␊ ␊ ␊ `, } -## lists-in-blockquote.md +## links-with-markup.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', - errorRange: [ - 1, - 4, - ], - fixInfo: { - deleteCount: 1, - editColumn: 3, - insertText: '+', - }, - lineNumber: 32, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', - ruleNames: [ - 'MD004', - 'ul-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorContext: '...k has `code` and right space ]', + errorDetail: null, errorRange: [ 1, - 6, + 39, ], fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: '+', + deleteCount: 37, + editColumn: 2, + insertText: 'This link has `code` and right space', }, - lineNumber: 33, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 11, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD039', + 'no-space-in-links', ], }, { - errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorContext: '[ This link has *emphasis* and...', + errorDetail: null, errorRange: [ 1, - 7, + 42, ], fixInfo: { - deleteCount: 1, - editColumn: 6, - insertText: '+', + deleteCount: 40, + editColumn: 2, + insertText: 'This link has *emphasis* and left space', }, - lineNumber: 64, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 13, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD039', + 'no-space-in-links', ], }, { - errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorContext: '[too ]', + errorDetail: null, errorRange: [ - 1, - 9, + 19, + 6, ], fixInfo: { - deleteCount: 1, - editColumn: 8, - insertText: '+', + deleteCount: 4, + editColumn: 20, + insertText: 'too', }, - lineNumber: 65, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 17, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD039', + 'no-space-in-links', ], }, + ], + fixed: `# links-with-markup␊ + ␊ + [This link is plain](link)␊ + ␊ + [This link has \`code\`](link)␊ + ␊ + [This link has *some* emphasis](link)␊ + ␊ + [This link has **more** emphasis](link)␊ + ␊ + [This link has \`code\` and right space](link) {MD039}␊ + ␊ + [This link has *emphasis* and left space](link) {MD039}␊ + ␊ + [This](link) line has [multiple](link) links.␊ + ␊ + [This](line) does [too](link) and one has a [space](link) {MD039}␊ + `, + } + +## links.md + +> Snapshot 1 + + { + errors: [ { - errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorContext: 'https://www.example.com/', + errorDetail: null, errorRange: [ - 1, - 10, + 17, + 24, ], fixInfo: { - deleteCount: 1, - editColumn: 8, - insertText: '+', + deleteCount: 24, + editColumn: 17, + insertText: '', }, - lineNumber: 66, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 4, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorContext: 'https://www.google.com/', + errorDetail: null, errorRange: [ 1, - 10, + 23, ], fixInfo: { - deleteCount: 1, - editColumn: 9, - insertText: '+', + deleteCount: 23, + editColumn: 1, + insertText: '', }, - lineNumber: 67, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 7, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorContext: 'hTtPs://gOoGlE.cOm/', + errorDetail: null, errorRange: [ 1, - 8, + 19, ], fixInfo: { - deleteCount: 1, - editColumn: 7, - insertText: '+', + deleteCount: 19, + editColumn: 1, + insertText: '', }, - lineNumber: 68, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 9, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorContext: 'https://example.com', + errorDetail: null, errorRange: [ - 1, - 7, + 2, + 19, ], fixInfo: { - deleteCount: 1, - editColumn: 6, - insertText: '+', + deleteCount: 19, + editColumn: 2, + insertText: '', }, - lineNumber: 69, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 20, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorContext: 'https://example.com}', + errorDetail: null, errorRange: [ - 1, - 9, + 2, + 20, ], fixInfo: { - deleteCount: 1, - editColumn: 8, - insertText: '+', + deleteCount: 20, + editColumn: 2, + insertText: '', }, - lineNumber: 70, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 21, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorContext: 'https://example.com/', + errorDetail: null, errorRange: [ - 1, - 11, + 3, + 20, ], fixInfo: { - deleteCount: 1, - editColumn: 10, - insertText: '+', + deleteCount: 20, + editColumn: 3, + insertText: '', }, - lineNumber: 71, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 27, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorContext: 'https://example.com/', + errorDetail: null, errorRange: [ - 1, - 12, + 26, + 20, ], fixInfo: { - deleteCount: 1, - editColumn: 11, - insertText: '+', + deleteCount: 20, + editColumn: 26, + insertText: '', }, - lineNumber: 72, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 27, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorContext: 'https://example.com', + errorDetail: null, errorRange: [ - 1, - 8, + 43, + 19, ], fixInfo: { - deleteCount: 1, - editColumn: 7, - insertText: '+', + deleteCount: 19, + editColumn: 43, + insertText: '', }, - lineNumber: 76, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 30, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD034', + 'no-bare-urls', ], }, + ], + fixed: `# Link test␊ + ␊ + For more information, please see the␊ + following page: {MD034}␊ + which will tell you all you want to know.␊ + ␊ + {MD034}␊ + ␊ + {MD034}␊ + ␊ + This link should be fine: ␊ + ␊ + The following are allowed to avoid conflicts with MD011/no-reversed-links:␊ + ␊ + [https://example.com]␊ + [https://example.com/search?query=text]␊ + ␊ + Other enclosures are not allowed:␊ + ␊ + () {MD034}␊ + { {MD034}␊ + ␊ + Duplicate links in tables should be handled:␊ + ␊ + | Link | Same Link | Violation |␊ + |----------------------|----------------------|-----------|␊ + | | | {MD034} |␊ + ␊ + This is not a bare URL: [text [undefined] text](https://example.com).␊ + This is a bare URL: [text [defined] text](). {MD034}␊ + ␊ + [defined]: https://example.com␊ + `, + } + +## lint-javascript.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Lint JavaScript␊ + ␊ + ␊ + ␊ + Text␊ + ␊ + \`\`\`js␊ + "use strict";␊ + ␊ + var x = 0;␊ + ␊ + console.log(x);␊ + \`\`\`␊ + ␊ + Text␊ + ␊ + var y = 0;␊ + ␊ + Text␊ + ␊ + Text \`undefined\` text␊ + ␊ + Text␊ + `, + } + +## list-indentation-start-indent-indent.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ 1, - 10, + 4, ], - fixInfo: { - deleteCount: 1, - editColumn: 9, - insertText: '+', - }, - lineNumber: 77, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + fixInfo: null, + lineNumber: 11, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorDetail: 'Expected: 7; Actual: 6', errorRange: [ 1, - 11, + 8, ], fixInfo: { - deleteCount: 1, - editColumn: 9, - insertText: '+', + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 78, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 9, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ 1, - 11, + 4, ], fixInfo: { deleteCount: 1, - editColumn: 10, - insertText: '+', + editColumn: 1, + insertText: '', }, - lineNumber: 79, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 11, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ 1, - 8, + 4, ], fixInfo: { deleteCount: 1, - editColumn: 7, - insertText: '+', + editColumn: 1, + insertText: '', }, - lineNumber: 85, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 15, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ 1, - 9, + 4, ], fixInfo: { deleteCount: 1, - editColumn: 8, - insertText: '+', + editColumn: 1, + insertText: '', }, - lineNumber: 86, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 16, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorDetail: 'Expected: 4; Actual: 3', errorRange: [ 1, - 9, + 5, ], fixInfo: { - deleteCount: 1, - editColumn: 8, - insertText: '+', + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 87, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 25, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorDetail: 'Expected: 4; Actual: 3', errorRange: [ 1, - 10, + 5, ], fixInfo: { - deleteCount: 1, - editColumn: 9, - insertText: '+', + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 89, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 26, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorDetail: 'Expected: 7; Actual: 6', errorRange: [ 1, - 11, + 8, ], fixInfo: { - deleteCount: 1, - editColumn: 10, - insertText: '+', + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 90, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 27, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, + ], + fixed: `# List Indentation start_indent/indent␊ + ␊ + * item 1␊ + * item 2␊ + * item 2.1␊ + * item 2.2␊ + * item 2.2.1␊ + * item 2.3␊ + * item 2.3.1 {MD007}␊ + * item 3␊ + * item 4 {MD005} {MD007}␊ + ␊ + Text␊ + ␊ + * item 1 {MD007}␊ + * item 2 {MD007}␊ + * item 2.1␊ + * item 2.2␊ + * item 2.2.1␊ + ␊ + Text␊ + ␊ + * item 1␊ + * item 2␊ + * item 2.1 {MD007}␊ + * item 2.2 {MD007}␊ + * item 2.2.1 {MD007}␊ + ␊ + ␊ + `, + } + +## list-indentation-start-indent-no-indent.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ 1, - 11, + 4, ], - fixInfo: { - deleteCount: 1, - editColumn: 10, - insertText: '+', - }, - lineNumber: 91, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + fixInfo: null, + lineNumber: 11, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorDetail: 'Expected: 5; Actual: 6', errorRange: [ 1, 8, ], fixInfo: { deleteCount: 1, - editColumn: 7, - insertText: '+', - }, - lineNumber: 96, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', - ruleNames: [ - 'MD004', - 'ul-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', - errorRange: [ - 1, - 9, - ], - fixInfo: { - deleteCount: 1, - editColumn: 8, - insertText: '+', + editColumn: 1, + insertText: '', }, - lineNumber: 97, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 9, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ 1, - 9, + 4, ], fixInfo: { deleteCount: 1, - editColumn: 8, - insertText: '+', + editColumn: 1, + insertText: '', }, - lineNumber: 98, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 11, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ 1, - 10, + 4, ], fixInfo: { deleteCount: 1, - editColumn: 9, - insertText: '+', + editColumn: 1, + insertText: '', }, - lineNumber: 99, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 15, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ 1, - 11, + 4, ], fixInfo: { deleteCount: 1, - editColumn: 10, - insertText: '+', + editColumn: 1, + insertText: '', }, - lineNumber: 100, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 16, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorDetail: 'Expected: 3; Actual: 4', errorRange: [ 1, - 11, + 6, ], fixInfo: { deleteCount: 1, - editColumn: 10, - insertText: '+', + editColumn: 1, + insertText: '', }, - lineNumber: 101, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 17, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorDetail: 'Expected: 3; Actual: 4', errorRange: [ 1, - 4, + 6, ], fixInfo: { deleteCount: 1, - editColumn: 3, - insertText: '+', + editColumn: 1, + insertText: '', }, - lineNumber: 122, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 18, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: asterisk', + errorDetail: 'Expected: 5; Actual: 6', errorRange: [ 1, - 4, + 8, ], fixInfo: { deleteCount: 1, - editColumn: 3, - insertText: '+', + editColumn: 1, + insertText: '', }, - lineNumber: 123, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 19, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorDetail: 'Expected: 3; Actual: 4', errorRange: [ 1, 6, ], fixInfo: { deleteCount: 1, - editColumn: 5, - insertText: '+', + editColumn: 1, + insertText: '', }, - lineNumber: 140, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 25, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorDetail: 'Expected: 3; Actual: 4', errorRange: [ 1, 6, ], fixInfo: { deleteCount: 1, - editColumn: 5, - insertText: '+', + editColumn: 1, + insertText: '', }, - lineNumber: 141, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', - ruleNames: [ - 'MD004', - 'ul-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 7; Actual: 8', - errorRange: [ - 1, - 10, - ], - fixInfo: null, - lineNumber: 67, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', - ruleNames: [ - 'MD005', - 'list-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 5; Actual: 6', - errorRange: [ - 1, - 8, - ], - fixInfo: null, - lineNumber: 68, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', - ruleNames: [ - 'MD005', - 'list-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 9; Actual: 10', - errorRange: [ - 1, - 12, - ], - fixInfo: null, - lineNumber: 72, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', - ruleNames: [ - 'MD005', - 'list-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 8; Actual: 9', - errorRange: [ - 1, - 11, - ], - fixInfo: null, - lineNumber: 79, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + lineNumber: 26, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 6; Actual: 7', + errorDetail: 'Expected: 5; Actual: 7', errorRange: [ 1, 9, ], - fixInfo: null, - lineNumber: 86, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 27, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, + ], + fixed: `# List Indentation start_indent/no indent␊ + ␊ + * item 1␊ + * item 2␊ + * item 2.1␊ + * item 2.2␊ + * item 2.2.1␊ + * item 2.3␊ + * item 2.3.1 {MD007}␊ + * item 3␊ + * item 4 {MD005} {MD007}␊ + ␊ + Text␊ + ␊ + * item 1 {MD007}␊ + * item 2 {MD007}␊ + * item 2.1 {MD007}␊ + * item 2.2 {MD007}␊ + * item 2.2.1 {MD007}␊ + ␊ + Text␊ + ␊ + * item 1␊ + * item 2␊ + * item 2.1 {MD007}␊ + * item 2.2 {MD007}␊ + * item 2.2.1 {MD007}␊ + ␊ + ␊ + `, + } + +## list-indentation-start-indented-indent.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Expected: 6; Actual: 7', + errorDetail: 'Expected: 3; Actual: 0', errorRange: [ 1, - 9, + 2, ], - fixInfo: null, - lineNumber: 87, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 13, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 8; Actual: 9', + errorDetail: 'Expected: 3; Actual: 0', errorRange: [ 1, - 11, + 2, ], - fixInfo: null, - lineNumber: 90, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 14, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 8; Actual: 9', + errorDetail: 'Expected: 6; Actual: 3', errorRange: [ 1, - 11, + 5, ], - fixInfo: null, - lineNumber: 91, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 15, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 6; Actual: 7', + errorDetail: 'Expected: 6; Actual: 3', errorRange: [ 1, - 9, + 5, ], - fixInfo: null, - lineNumber: 97, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 16, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 6; Actual: 7', + errorDetail: 'Expected: 9; Actual: 6', errorRange: [ 1, - 9, + 8, ], - fixInfo: null, - lineNumber: 98, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 17, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 8; Actual: 9', + errorDetail: 'Expected: 6; Actual: 3', errorRange: [ 1, - 11, + 5, ], - fixInfo: null, - lineNumber: 100, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 18, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 8; Actual: 9', + errorDetail: 'Expected: 3; Actual: 0', errorRange: [ 1, - 11, + 2, ], - fixInfo: null, - lineNumber: 101, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 19, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorDetail: 'Expected: 3; Actual: 1', errorRange: [ 1, - 4, + 3, ], - fixInfo: null, - lineNumber: 106, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 23, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorDetail: 'Expected: 3; Actual: 1', errorRange: [ 1, - 5, + 3, ], - fixInfo: null, - lineNumber: 109, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 24, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorDetail: 'Expected: 6; Actual: 4', errorRange: [ 1, - 4, + 6, ], - fixInfo: null, - lineNumber: 114, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 25, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorDetail: 'Expected: 6; Actual: 4', errorRange: [ 1, - 5, + 6, ], - fixInfo: null, - lineNumber: 116, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 26, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 4; Actual: 5', + errorDetail: 'Expected: 9; Actual: 7', errorRange: [ 1, - 7, + 9, ], - fixInfo: null, - lineNumber: 185, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 27, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 6; Actual: 7', + errorDetail: 'Expected: 6; Actual: 4', errorRange: [ 1, - 9, + 6, ], - fixInfo: null, - lineNumber: 188, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 0, + editColumn: 1, + insertText: ' ', + }, + lineNumber: 28, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorDetail: 'Expected: 3; Actual: 1', errorRange: [ 1, - 10, + 3, ], fixInfo: { - deleteCount: 1, - editColumn: 6, - insertText: '', + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 67, + lineNumber: 29, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -31669,17 +31329,17 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', + errorDetail: 'Expected: 3; Actual: 2', errorRange: [ 1, - 8, + 4, ], fixInfo: { - deleteCount: 1, - editColumn: 6, - insertText: '', + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 68, + lineNumber: 33, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -31689,17 +31349,17 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 4; Actual: 5', + errorDetail: 'Expected: 3; Actual: 2', errorRange: [ 1, - 12, + 4, ], fixInfo: { - deleteCount: 1, - editColumn: 6, - insertText: '', + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 72, + lineNumber: 34, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -31709,17 +31369,17 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorDetail: 'Expected: 6; Actual: 5', errorRange: [ 1, - 11, + 7, ], fixInfo: { - deleteCount: 1, - editColumn: 7, - insertText: '', + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 79, + lineNumber: 35, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -31729,17 +31389,17 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', + errorDetail: 'Expected: 6; Actual: 5', errorRange: [ 1, 7, ], fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: '', + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 185, + lineNumber: 36, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -31749,17 +31409,17 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 2; Actual: 3', + errorDetail: 'Expected: 9; Actual: 8', errorRange: [ 1, - 9, + 10, ], fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: '', + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 188, + lineNumber: 37, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -31768,649 +31428,572 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: ' > * Item {MD004} {MD005} {...', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 6; Actual: 5', errorRange: [ - 6, 1, + 7, ], fixInfo: { - deleteCount: 1, - editColumn: 6, + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 68, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 38, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD007', + 'ul-indent', ], }, { - errorContext: ' > > - Item {MD004} {MD005} ...', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 3; Actual: 2', errorRange: [ - 5, 1, + 4, ], fixInfo: { - deleteCount: 1, - editColumn: 5, + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 86, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 39, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD007', + 'ul-indent', ], }, + ], + fixed: `# List Indentation - Start Indented␊ + ␊ + * item 1␊ + * item 2␊ + * item 2.1␊ + * item 2.2␊ + * item 2.2.1␊ + * item 2.3␊ + * item 3␊ + ␊ + ## Disallowed List Indentation - Starts at Zero␊ + ␊ + * item 1 {MD007}␊ + * item 2 {MD007}␊ + * item 2.1 {MD007}␊ + * item 2.2 {MD007}␊ + * item 2.2.1 {MD007}␊ + * item 2.3 {MD007}␊ + * item 3 {MD007}␊ + ␊ + ## Disallowed List Indentation - Starts at One␊ + ␊ + * item 1 {MD007}␊ + * item 2 {MD007}␊ + * item 2.1 {MD007}␊ + * item 2.2 {MD007}␊ + * item 2.2.1 {MD007}␊ + * item 2.3 {MD007}␊ + * item 3 {MD007}␊ + ␊ + ## Disallowed List Indentation - Starts at Two␊ + ␊ + * item 1 {MD007}␊ + * item 2 {MD007}␊ + * item 2.1 {MD007}␊ + * item 2.2 {MD007}␊ + * item 2.2.1 {MD007}␊ + * item 2.3 {MD007}␊ + * item 3 {MD007}␊ + ␊ + ␊ + `, + } + +## list-indentation-start-indented-no-indent.md + +> Snapshot 1 + + { + errors: [ { - errorContext: ' > > > - Item {MD004} {MD005...', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 2; Actual: 0', errorRange: [ - 7, 1, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 7, + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 90, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 13, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD007', + 'ul-indent', ], }, { - errorContext: ' > > > - Item {MD004} {MD005...', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 2; Actual: 0', errorRange: [ - 5, 1, + 2, ], fixInfo: { - deleteCount: 1, - editColumn: 5, + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 91, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 14, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD007', + 'ul-indent', ], }, { - errorContext: ' > > - Item {MD004} {MD005} ...', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 4; Actual: 3', errorRange: [ - 5, 1, + 5, ], fixInfo: { - deleteCount: 1, - editColumn: 5, + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 97, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 15, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD007', + 'ul-indent', ], }, { - errorContext: ' > > > - Item {MD004} {MD005...', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 4; Actual: 3', errorRange: [ - 7, 1, + 5, ], fixInfo: { - deleteCount: 1, - editColumn: 7, + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 100, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 16, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD007', + 'ul-indent', ], }, { - errorContext: ' > > > - Item {MD004} {MD005...', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 6; Actual: 5', errorRange: [ - 5, 1, + 7, ], fixInfo: { - deleteCount: 1, - editColumn: 5, + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 101, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 17, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD007', + 'ul-indent', ], }, { - errorContext: ' > + list in blockquote {MD0...', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 4; Actual: 3', errorRange: [ - 5, 1, + 5, ], fixInfo: { - deleteCount: 1, - editColumn: 5, + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 185, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + lineNumber: 18, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorDetail: 'Expected: 2; Actual: 0', errorRange: [ + 1, 2, - 4, ], fixInfo: { - deleteCount: 2, - editColumn: 4, - insertText: ' ', + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, lineNumber: 19, - ruleDescription: 'Spaces after list markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD030', - 'list-marker-space', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorDetail: 'Expected: 2; Actual: 1', errorRange: [ - 2, + 1, 3, ], fixInfo: { - deleteCount: 2, - editColumn: 3, + deleteCount: 0, + editColumn: 1, insertText: ' ', }, lineNumber: 23, - ruleDescription: 'Spaces after list markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD030', - 'list-marker-space', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorDetail: 'Expected: 2; Actual: 1', errorRange: [ - 9, - 4, + 1, + 3, ], fixInfo: { - deleteCount: 2, - editColumn: 11, + deleteCount: 0, + editColumn: 1, insertText: ' ', }, - lineNumber: 60, - ruleDescription: 'Spaces after list markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', + lineNumber: 24, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD030', - 'list-marker-space', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorDetail: 'Expected: 4; Actual: 3', errorRange: [ - 8, - 3, + 1, + 5, ], fixInfo: { - deleteCount: 2, - editColumn: 9, + deleteCount: 0, + editColumn: 1, insertText: ' ', }, - lineNumber: 66, - ruleDescription: 'Spaces after list markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', + lineNumber: 25, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD030', - 'list-marker-space', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorDetail: 'Expected: 4; Actual: 3', errorRange: [ - 9, - 3, + 1, + 5, ], fixInfo: { - deleteCount: 2, - editColumn: 10, + deleteCount: 0, + editColumn: 1, insertText: ' ', }, - lineNumber: 78, - ruleDescription: 'Spaces after list markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', + lineNumber: 26, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD030', - 'list-marker-space', + 'MD007', + 'ul-indent', ], }, { - errorContext: '> + Item {MD032}', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `>␊ - `, - }, - lineNumber: 47, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', - ruleNames: [ - 'MD032', - 'blanks-around-lists', + errorContext: null, + errorDetail: 'Expected: 6; Actual: 7', + errorRange: [ + 1, + 9, ], - }, - { - errorContext: '> + Item {MD032}', - errorDetail: null, - errorRange: null, fixInfo: { - insertText: `>␊ - `, - lineNumber: 54, + deleteCount: 1, + editColumn: 1, + insertText: '', }, - lineNumber: 53, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 27, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD007', + 'ul-indent', ], }, { - errorContext: '> > - Item {MD004} {MD032}', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: ` > >␊ - `, - }, - lineNumber: 96, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', - ruleNames: [ - 'MD032', - 'blanks-around-lists', + errorContext: null, + errorDetail: 'Expected: 4; Actual: 3', + errorRange: [ + 1, + 5, ], - }, - { - errorContext: '> > - Item {MD004} {MD005} {MD...', - errorDetail: null, - errorRange: null, fixInfo: { - insertText: ` > >␊ - `, - lineNumber: 99, + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 98, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 28, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD007', + 'ul-indent', ], }, { - errorContext: '> > > - Item {MD004} {MD032}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: 2; Actual: 1', + errorRange: [ + 1, + 3, + ], fixInfo: { - insertText: ` > > >␊ - `, + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 99, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 30, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD007', + 'ul-indent', ], }, { - errorContext: '> + Item {MD005} {MD032}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: 2; Actual: 3', + errorRange: [ + 1, + 5, + ], fixInfo: { - insertText: `>␊ - `, - lineNumber: 115, + deleteCount: 1, + editColumn: 1, + insertText: '', }, - lineNumber: 114, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 34, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD007', + 'ul-indent', ], }, { - errorContext: '>>+ Item {MD032}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: 2; Actual: 3', + errorRange: [ + 1, + 5, + ], fixInfo: { - insertText: `>>␊ - `, + deleteCount: 1, + editColumn: 1, + insertText: '', }, - lineNumber: 115, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', - ruleNames: [ - 'MD032', - 'blanks-around-lists', - ], - }, - ], - fixed: `# Lists in Blockquote␊ - ␊ - > 1. The simplest ordered list in blockquote␊ - ␊ - Text␊ - ␊ - > + The simplest unordered list in blockquote␊ - ␊ - Text␊ - ␊ - >1. Item␊ - ␊ - Text␊ - ␊ - >+ Item␊ - ␊ - Text␊ - ␊ - >1. Item {MD030}␊ - ␊ - Text␊ - ␊ - >+ Item {MD030}␊ - ␊ - Text␊ - ␊ - > 1. Item␊ - > 1. Item␊ - ␊ - Text␊ - ␊ - > + Item {MD004}␊ - > + Item {MD004}␊ - ␊ - Text␊ - ␊ - > Text␊ - >␊ - > + Item␊ - > + Item␊ - >␊ - > Text␊ - ␊ - Text␊ - ␊ - > Text␊ - >␊ - > + Item {MD032}␊ - > + Item␊ - ␊ - Text␊ - ␊ - > + Item␊ - > + Item {MD032}␊ - >␊ - > ---␊ - ␊ - Text␊ - ␊ - > 1. Item␊ - > 1. Item␊ - > 1. Item {MD030}␊ - ␊ - Text␊ - ␊ - > + Item {MD004}␊ - > + Item {MD004}␊ - > + Item {MD004} {MD030}␊ - > + Item {MD004} {MD005} {MD007}␊ - > + Item {MD004} {MD005} {MD007} {MD027}␊ - > + Item {MD004}␊ - > + Item {MD004}␊ - > + Item {MD004}␊ - > + Item {MD004} {MD005} {MD007}␊ - ␊ - Text␊ - ␊ - > > + Item {MD004}␊ - > > + Item {MD004}␊ - > > + Item {MD004} {MD030}␊ - > > + Item {MD004} {MD005} {MD007}␊ - ␊ - Text␊ - ␊ - > Text␊ - >␊ - > > + Item {MD004}␊ - > > + Item {MD004} {MD005} {MD027}␊ - > > + Item {MD004} {MD005}␊ - > >␊ - > > > + Item {MD004}␊ - > > > + Item {MD004} {MD005} {MD027}␊ - > > > + Item {MD004} {MD005} {MD027}␊ - ␊ - Text␊ - ␊ - > Text␊ - > >␊ - > > + Item {MD004} {MD032}␊ - > > + Item {MD004} {MD005} {MD027}␊ - > > + Item {MD004} {MD005} {MD032}␊ - > > >␊ - > > > + Item {MD004} {MD032}␊ - > > > + Item {MD004} {MD005} {MD027}␊ - > > > + Item {MD004} {MD005} {MD027}␊ - ␊ - Text␊ - ␊ - >+ Item␊ - > + Item {MD005}␊ - >>␊ - >>+ Item␊ - >> + Item {MD005}␊ - ␊ - Text␊ - ␊ - >+ Item␊ - > + Item {MD005} {MD032}␊ - >>␊ - >>+ Item {MD032}␊ - >> + Item {MD005}␊ - ␊ - Text␊ - ␊ - > Quoted text␊ - >␊ - > + A list {MD004}␊ - > + of items {MD004}␊ - >␊ - > More quoted text␊ - ␊ - Text␊ - ␊ - > Quoted text␊ - >␊ - > > + A list␊ - > > + of items␊ - >␊ - > More quoted text␊ - ␊ - Text␊ - ␊ - > Quoted text␊ - >␊ - > > + A list {MD004}␊ - > > + of items {MD004}␊ - > >␊ - > > More quoted text␊ - ␊ - Text␊ - ␊ - + List␊ - > blockquote in list␊ - >␊ - > + list in blockquote in list␊ - ␊ - Text␊ - ␊ - + List␊ - Text␊ - ␊ - > + list in blockquote␊ - > + list in blockquote␊ - ␊ - Text␊ - ␊ - > + list in blockquote␊ - ␊ - Text␊ - + List␊ - ␊ - Text␊ - ␊ - > + list in blockquote␊ - ␊ - Text␊ - + List␊ - ␊ - > + list in blockquote␊ - > + sublist in blockquote␊ - > + list in blockquote␊ - > + sublist in blockquote␊ - ␊ - Text␊ - ␊ - + List␊ - Text␊ - ␊ - > + list in blockquote␊ - > + list in blockquote {MD005} {MD007} {MD027}␊ - > + list in blockquote␊ - > + sublist in blockquote␊ - > + sublist in blockquote {MD005} {MD007}␊ - `, - } - -## lists-incomplete.md - -> Snapshot 1 - - { - errors: [ + lineNumber: 35, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, { errorContext: null, - errorDetail: null, + errorDetail: 'Expected: 4; Actual: 6', errorRange: [ - 7, 1, + 8, ], fixInfo: { - editColumn: 8, - insertText: `␊ - `, + deleteCount: 2, + editColumn: 1, + insertText: '', }, - lineNumber: 49, - ruleDescription: 'Files should end with a single newline character', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md', + lineNumber: 36, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD047', - 'single-trailing-newline', + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 4; Actual: 6', + errorRange: [ + 1, + 8, + ], + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 37, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 6; Actual: 9', + errorRange: [ + 1, + 11, + ], + fixInfo: { + deleteCount: 3, + editColumn: 1, + insertText: '', + }, + lineNumber: 38, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 4; Actual: 6', + errorRange: [ + 1, + 8, + ], + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 39, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 2; Actual: 3', + errorRange: [ + 1, + 5, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '', + }, + lineNumber: 40, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', ], }, ], - fixed: `# Lists Incomplete␊ - ␊ - Text␊ - ␊ - - Item␊ - -␊ - ␊ - Text␊ - ␊ - -␊ - - Item␊ - ␊ - Text␊ - ␊ - - Item␊ - -␊ - - Item␊ - ␊ - Text␊ - ␊ - - Item␊ - -␊ - -␊ - ␊ - Text␊ - ␊ - 1. Item␊ - 1.␊ + fixed: `# List Indentation - Start Indented/No Indent␊ ␊ - Text␊ + * item 1␊ + * item 2␊ + * item 2.1␊ + * item 2.2␊ + * item 2.2.1␊ + * item 2.3␊ + * item 3␊ ␊ - 1.␊ - 1. Item␊ + ## Disallowed List Indentation - Starts at Zero␊ ␊ - Text␊ + * item 1 {MD007}␊ + * item 2 {MD007}␊ + * item 2.1 {MD007}␊ + * item 2.2 {MD007}␊ + * item 2.2.1 {MD007}␊ + * item 2.3 {MD007}␊ + * item 3 {MD007}␊ ␊ - 1. Item␊ - 1.␊ - 1. Item␊ + ## Disallowed List Indentation - Starts at One␊ ␊ - Text␊ + * item 1 {MD007}␊ + * item 2 {MD007}␊ + * item 2.1 {MD007}␊ + * item 2.2 {MD007}␊ + * item 2.2.1 {MD007}␊ + * item 2.3 {MD007}␊ + * item 2.3.1␊ + * item 3 {MD007}␊ ␊ - 1. Item␊ - 1.␊ - 1.␊ + ## Disallowed List Indentation - Starts at Three␊ ␊ - Text␊ + * item 1 {MD007}␊ + * item 2 {MD007}␊ + * item 2.1 {MD007}␊ + * item 2.2 {MD007}␊ + * item 2.2.1 {MD007}␊ + * item 2.3 {MD007}␊ + * item 3 {MD007}␊ ␊ - {MD047}␊ + ␊ `, } -## lists-on-a-line.md +## list-indentation.md > Snapshot 1 @@ -32418,13 +32001,13 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: 6; Actual: 7', + errorDetail: 'Expected: 2; Actual: 3', errorRange: [ 1, - 9, + 5, ], fixInfo: null, - lineNumber: 57, + lineNumber: 28, ruleDescription: 'Inconsistent indentation for list items at the same level', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ @@ -32434,13 +32017,13 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 4; Actual: 5', + errorDetail: 'Expected: 2; Actual: 3', errorRange: [ 1, - 7, + 5, ], fixInfo: null, - lineNumber: 58, + lineNumber: 30, ruleDescription: 'Inconsistent indentation for list items at the same level', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ @@ -32456,7 +32039,7 @@ Generated by [AVA](https://avajs.dev). 5, ], fixInfo: null, - lineNumber: 59, + lineNumber: 31, ruleDescription: 'Inconsistent indentation for list items at the same level', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ @@ -32466,17 +32049,49 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 0; Actual: 2', + errorDetail: 'Expected: 2; Actual: 3', + errorRange: [ + 1, + 5, + ], + fixInfo: null, + lineNumber: 35, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + ruleNames: [ + 'MD005', + 'list-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 3; Actual: 2', errorRange: [ 1, 4, ], + fixInfo: null, + lineNumber: 44, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + ruleNames: [ + 'MD005', + 'list-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 2; Actual: 4', + errorRange: [ + 1, + 6, + ], fixInfo: { deleteCount: 2, editColumn: 1, insertText: '', }, - lineNumber: 36, + lineNumber: 6, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32496,7 +32111,7 @@ Generated by [AVA](https://avajs.dev). editColumn: 1, insertText: '', }, - lineNumber: 36, + lineNumber: 8, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32506,17 +32121,17 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 0; Actual: 2', + errorDetail: 'Expected: 2; Actual: 4', errorRange: [ 1, - 4, + 6, ], fixInfo: { deleteCount: 2, editColumn: 1, insertText: '', }, - lineNumber: 40, + lineNumber: 15, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32536,7 +32151,7 @@ Generated by [AVA](https://avajs.dev). editColumn: 1, insertText: '', }, - lineNumber: 40, + lineNumber: 20, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32546,17 +32161,17 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 4; Actual: 6', + errorDetail: 'Expected: 2; Actual: 3', errorRange: [ 1, - 8, + 5, ], fixInfo: { - deleteCount: 2, + deleteCount: 1, editColumn: 1, insertText: '', }, - lineNumber: 40, + lineNumber: 28, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32566,17 +32181,17 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 0; Actual: 2', + errorDetail: 'Expected: 2; Actual: 3', errorRange: [ 1, - 4, + 5, ], fixInfo: { - deleteCount: 2, + deleteCount: 1, editColumn: 1, insertText: '', }, - lineNumber: 44, + lineNumber: 30, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32586,17 +32201,17 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 2; Actual: 4', + errorDetail: 'Expected: 2; Actual: 3', errorRange: [ 1, - 6, + 5, ], fixInfo: { - deleteCount: 2, + deleteCount: 1, editColumn: 1, insertText: '', }, - lineNumber: 44, + lineNumber: 31, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32606,17 +32221,17 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 4; Actual: 6', + errorDetail: 'Expected: 2; Actual: 3', errorRange: [ 1, - 8, + 5, ], fixInfo: { - deleteCount: 2, + deleteCount: 1, editColumn: 1, insertText: '', }, - lineNumber: 44, + lineNumber: 35, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32626,17 +32241,97 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 0; Actual: 2', + errorDetail: 'Expected: 2; Actual: 3', errorRange: [ 1, - 4, + 5, ], fixInfo: { - deleteCount: 2, + deleteCount: 1, editColumn: 1, insertText: '', }, - lineNumber: 48, + lineNumber: 38, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 2; Actual: 3', + errorRange: [ + 1, + 5, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '', + }, + lineNumber: 39, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 2; Actual: 3', + errorRange: [ + 1, + 5, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '', + }, + lineNumber: 40, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 2; Actual: 3', + errorRange: [ + 1, + 5, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '', + }, + lineNumber: 42, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 2; Actual: 3', + errorRange: [ + 1, + 5, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '', + }, + lineNumber: 43, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32656,7 +32351,7 @@ Generated by [AVA](https://avajs.dev). editColumn: 1, insertText: '', }, - lineNumber: 52, + lineNumber: 50, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32676,7 +32371,7 @@ Generated by [AVA](https://avajs.dev). editColumn: 1, insertText: '', }, - lineNumber: 56, + lineNumber: 51, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32696,7 +32391,7 @@ Generated by [AVA](https://avajs.dev). editColumn: 1, insertText: '', }, - lineNumber: 56, + lineNumber: 52, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32706,17 +32401,17 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 4; Actual: 6', + errorDetail: 'Expected: 2; Actual: 4', errorRange: [ 1, - 8, + 6, ], fixInfo: { deleteCount: 2, editColumn: 1, insertText: '', }, - lineNumber: 56, + lineNumber: 53, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32726,17 +32421,17 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 4; Actual: 7', + errorDetail: 'Expected: 4; Actual: 6', errorRange: [ 1, - 9, + 8, ], fixInfo: { - deleteCount: 3, + deleteCount: 2, editColumn: 1, insertText: '', }, - lineNumber: 57, + lineNumber: 54, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32746,17 +32441,17 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 2; Actual: 5', + errorDetail: 'Expected: 2; Actual: 4', errorRange: [ 1, - 7, + 6, ], fixInfo: { - deleteCount: 3, + deleteCount: 2, editColumn: 1, insertText: '', }, - lineNumber: 58, + lineNumber: 55, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32766,17 +32461,17 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 0; Actual: 3', + errorDetail: 'Expected: 0; Actual: 2', errorRange: [ 1, - 5, + 4, ], fixInfo: { - deleteCount: 3, + deleteCount: 2, editColumn: 1, insertText: '', }, - lineNumber: 59, + lineNumber: 56, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -32784,477 +32479,406 @@ Generated by [AVA](https://avajs.dev). 'ul-indent', ], }, - ], - fixed: `# Lists on a Line␊ - ␊ - ## Correct␊ - ␊ - Text␊ - ␊ - * * Item␊ - ␊ - Text␊ - ␊ - * * * Item␊ - ␊ - Text␊ - ␊ - - + * Item␊ - ␊ - Text␊ - ␊ - - 1. Item␊ - ␊ - Text␊ - ␊ - - 1. + Item␊ - ␊ - Text␊ - ␊ - * * * Item␊ - * Item␊ - * Item␊ - * Item␊ - ␊ - ## Incorrect␊ - ␊ - Text␊ - ␊ - * * Item {MD007}␊ - ␊ - Text␊ - ␊ - * * * Item {MD007}␊ - ␊ - Text␊ - ␊ - - + * Item {MD007}␊ - ␊ - Text␊ - ␊ - - 1. Item {MD007}␊ - ␊ - Text␊ - ␊ - - 1. + Item {MD007}␊ - ␊ - Text␊ - ␊ - * * * Item {MD007}␊ - * Item {MD005} {MD007}␊ - * Item {MD005} {MD007}␊ - * Item {MD005} {MD007}␊ - ␊ - ␊ - `, - } - -## lists-with-commented-items.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Lists with Commented Items␊ - ␊ - Text␊ - ␊ - - item ␊ - - item ␊ - ␊ - - item ␊ - - item ␊ - ␊ - Text␊ - ␊ - - item ␊ - - item ␊ - ␊ - - item ␊ - - item ␊ - ␊ - Text␊ - ␊ - - item ␊ - ␊ - - item ␊ - ␊ - Text␊ - ␊ - - item ␊ - - item ␊ - ␊ - ␊ - - item ␊ - - item ␊ + ], + fixed: `# List Indentation␊ ␊ Text␊ - `, - } - -## lists-with-fenced-code-tight.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Lists with Fenced Code, Tight␊ ␊ - Item␊ + - Item {MD007}␊ + - Item␊ + - Item {MD007}␊ ␊ - \`\`\`text␊ - fence␊ - \`\`\`␊ + Text␊ ␊ - Item␊ - Item␊ - ␊ - \`\`\`text␊ - fence␊ - \`\`\`␊ - ␊ - Item␊ + - Item {MD007}␊ ␊ Text␊ ␊ - Item␊ - \`\`\`text␊ - fence␊ - \`\`\`␊ + - Item {MD007}␊ - Item␊ - Item␊ - \`\`\`text␊ - fence␊ - \`\`\`␊ - - Item␊ ␊ Text␊ ␊ - 1. Item␊ - ␊ - \`\`\`text␊ - fence␊ - \`\`\`␊ - ␊ - 1. Item␊ - 1. Item␊ - ␊ - \`\`\`text␊ - fence␊ - \`\`\`␊ - ␊ - 1. Item␊ + - Item␊ + - Item␊ + - Item {MD005} {MD007}␊ + - Item␊ + - Item {MD005} {MD007}␊ + - Item {MD005} {MD007}␊ + - Item␊ + - Item␊ + - Item␊ + - Item {MD005} {MD007}␊ + - Item␊ + - Item␊ + - Item {MD007}␊ + - Item {MD007}␊ + - Item {MD007}␊ + - Item␊ + - Item {MD007}␊ + - Item {MD007}␊ + - Item {MD005}␊ ␊ Text␊ ␊ - 1. Item␊ - \`\`\`text␊ - fence␊ - \`\`\`␊ - 1. Item␊ - 1. Item␊ - \`\`\`text␊ - fence␊ - \`\`\`␊ - 1. Item␊ + ## Invalid Indentation - Should Start at Zero␊ ␊ - ␊ + - item 1 {MD007}␊ + - item 2 {MD007}␊ + - item 2.1 {MD007}␊ + - item 2.2 {MD007}␊ + - item 2.2.1 {MD007}␊ + - item 2.3 {MD007}␊ + - item 3 {MD007}␊ `, } -## lists-with-fenced-code.md +## list-item-prefix-alignment.md > Snapshot 1 { errors: [ { - errorContext: '```text', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: 2; Actual: 1', + errorRange: [ + 1, + 4, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 21, + deleteCount: 0, + editColumn: 2, + insertText: ' ', }, - lineNumber: 21, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 87, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD005', + 'list-indent', ], }, { - errorContext: '```', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: (4); Actual: (5)', + errorRange: [ + 1, + 6, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 24, + deleteCount: 1, + editColumn: 2, + insertText: '', }, - lineNumber: 23, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 93, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD005', + 'list-indent', ], }, { - errorContext: '```text', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: (4); Actual: (3)', + errorRange: [ + 1, + 4, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 26, + deleteCount: 0, + editColumn: 1, + insertText: ' ', }, - lineNumber: 26, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 95, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD005', + 'list-indent', ], }, { - errorContext: '```', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: 2; Actual: 1', + errorRange: [ + 1, + 4, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 29, + deleteCount: 0, + editColumn: 2, + insertText: ' ', }, - lineNumber: 28, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 101, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD005', + 'list-indent', ], }, { - errorContext: '```text', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: 5; Actual: 6', + errorRange: [ + 1, + 9, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 51, + deleteCount: 1, + editColumn: 6, + insertText: '', }, - lineNumber: 51, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 107, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD005', + 'list-indent', ], }, { - errorContext: '```', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: 5; Actual: 6', + errorRange: [ + 1, + 9, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 54, + deleteCount: 1, + editColumn: 6, + insertText: '', }, - lineNumber: 53, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 110, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD005', + 'list-indent', ], }, { - errorContext: '```text', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: 2; Actual: 1', + errorRange: [ + 1, + 4, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 56, + deleteCount: 0, + editColumn: 2, + insertText: ' ', }, - lineNumber: 56, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 114, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD005', + 'list-indent', ], }, { - errorContext: '```', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: 6; Actual: 5', + errorRange: [ + 1, + 8, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 59, + deleteCount: 0, + editColumn: 6, + insertText: ' ', }, - lineNumber: 58, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 118, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD005', + 'list-indent', ], }, { - errorContext: '```shell', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: 6; Actual: 7', + errorRange: [ + 1, + 10, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 64, + deleteCount: 1, + editColumn: 7, + insertText: '', }, - lineNumber: 64, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 122, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD005', + 'list-indent', ], }, { - errorContext: 'fence {MD031:64} {MD031:65} {M...', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 65, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', - ruleNames: [ - 'MD031', - 'blanks-around-fences', + errorContext: null, + errorDetail: 'Expected: 2; Actual: 1', + errorRange: [ + 1, + 4, ], - }, - { - errorContext: 'fence {MD031:64} {MD031:65} {M...', - errorDetail: null, - errorRange: null, fixInfo: { - insertText: `␊ - `, - lineNumber: 66, + deleteCount: 0, + editColumn: 2, + insertText: ' ', }, - lineNumber: 65, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', - ruleNames: [ - 'MD032', - 'blanks-around-lists', - ], - }, - { - errorContext: '```', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 66, - ruleDescription: 'Fenced code blocks should have a language specified', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', + lineNumber: 127, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD040', - 'fenced-code-language', + 'MD005', + 'list-indent', ], }, ], - fixed: `# Lists with Fenced Code␊ - ␊ - - Item␊ + fixed: `# List Alignment␊ ␊ - \`\`\`text␊ - fence␊ - \`\`\`␊ + ## Leading Spaces␊ ␊ - - Item␊ - - Item␊ + 1. One␊ + 2. Two␊ + 3. Three␊ + 4. Four␊ + 5. Five␊ + 6. Six␊ + 7. Seven␊ + 8. Eight␊ + 9. Nine␊ + 10. Ten␊ + 11. Eleven␊ + 12. Twelve␊ ␊ - \`\`\`text␊ - fence␊ - \`\`\`␊ + ## Leading Zeroes␊ ␊ - - Item␊ + 01. One␊ + 02. Two␊ + 03. Three␊ + 04. Four␊ + 05. Five␊ + 06. Six␊ + 07. Seven␊ + 08. Eight␊ + 09. Nine␊ + 10. Ten␊ + 11. Eleven␊ + 12. Twelve␊ ␊ - Text␊ + ## Double Leading Zeroes␊ ␊ - - Item␊ + 001. One␊ + 002. Two␊ + 003. Three␊ ␊ - \`\`\`text␊ - fence {MD031:21} {MD031:23}␊ - \`\`\`␊ + ## Nested Lists␊ ␊ - Item␊ - - Item␊ - ␊ - \`\`\`text␊ - fence {MD031:26} {MD031:28}␊ - \`\`\`␊ - ␊ + - Item␊ + 01. One␊ + 02. Two␊ + 03. Three␊ + 04. Four␊ + 05. Five␊ + 06. Six␊ + 07. Seven␊ + 08. Eight␊ + 09. Nine␊ + 10. Ten␊ + 11. Eleven␊ + 12. Twelve␊ + - Item␊ + - Item␊ + 1. One␊ + 2. Two␊ + 3. Three␊ + 4. Four␊ + 5. Five␊ + 6. Six␊ + 7. Seven␊ + 8. Eight␊ + 9. Nine␊ + 10. Ten␊ + 11. Eleven␊ + 12. Twelve␊ + - Item␊ - Item␊ ␊ - Text␊ - ␊ - 1. Item␊ - ␊ - \`\`\`text␊ - fence␊ - \`\`\`␊ - ␊ - 1. Item␊ - 1. Item␊ - ␊ - \`\`\`text␊ - fence␊ - \`\`\`␊ - ␊ - 1. Item␊ - ␊ - Text␊ - ␊ - 1. Item␊ - ␊ - \`\`\`text␊ - fence {MD031:51} {MD031:53}␊ - \`\`\`␊ - ␊ - 1. Item␊ - 1. Item␊ - ␊ - \`\`\`text␊ - fence {MD031:56} {MD031:58}␊ - \`\`\`␊ + ## Another Nested List␊ ␊ - 1. Item␊ + 01. One␊ + 02. Two␊ + 01. One␊ + 02. Two␊ + 03. Three␊ + 04. Four␊ ␊ - Text␊ + ## Leading Spaces Errors␊ ␊ - 1. Text␊ + 1. One␊ + 2. Two␊ + 3. Three␊ + 4. Four␊ + 5. Five {MD005}␊ + 6. Six␊ + 7. Seven␊ + 8. Eight␊ + 9. Nine␊ + 10. Ten␊ + 11. Eleven {MD005}␊ + 12. Twelve␊ + 13. Thirteen {MD005}␊ + 14. Fourteen␊ ␊ - \`\`\`shell␊ - fence {MD031:64} {MD031:65} {MD032:65} {MD040:66}␊ + ## Leading Spaces Errors with Nesting␊ ␊ - \`\`\`␊ + 1. One␊ + 2. Two {MD005}␊ + 3. Three␊ + 1. One␊ + 2. Two␊ + 3. Three␊ + 4. Four␊ + 5. Five {MD005}␊ + 6. Six␊ + 7. Seven␊ + 8. Eight {MD005}␊ + 9. Nine␊ + 10. Ten␊ + 4. Four␊ + 5. Five {MD005}␊ + 6. Six␊ + 1. One␊ + 2. Two␊ + 3. Three {MD005}␊ + 4. Four␊ + 5. Five␊ + 6. Six␊ + 7. Seven {MD005}␊ + 8. Eight␊ + 9. Nine␊ + 10. Ten␊ + 7. Seven␊ + 8. Eight {MD005}␊ + 9. Nine␊ + 10. Ten␊ `, } -## lists-with-nesting.md +## list-syntax-in-paragraph-text.md > Snapshot 1 @@ -33262,17 +32886,17 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: dash; Actual: asterisk', + errorDetail: 'Expected: dash; Actual: plus', errorRange: [ 1, - 3, + 2, ], fixInfo: { deleteCount: 1, - editColumn: 2, + editColumn: 1, insertText: '-', }, - lineNumber: 97, + lineNumber: 24, ruleDescription: 'Unordered list style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ @@ -33282,132 +32906,99 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: dash; Actual: asterisk', + errorDetail: 'Expected: 2; Actual: 5; Style: 1/2/3', errorRange: [ 1, 3, ], - fixInfo: { - deleteCount: 1, - editColumn: 2, - insertText: '-', - }, - lineNumber: 98, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + fixInfo: null, + lineNumber: 14, + ruleDescription: 'Ordered list item prefix', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md029.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD029', + 'ol-prefix', ], }, { errorContext: null, - errorDetail: 'Expected: dash; Actual: asterisk', + errorDetail: 'Expected: 1; Actual: 3', errorRange: [ 1, - 3, + 5, ], fixInfo: { - deleteCount: 1, - editColumn: 2, - insertText: '-', + deleteCount: 3, + editColumn: 3, + insertText: ' ', }, - lineNumber: 99, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 17, + ruleDescription: 'Spaces after list markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD030', + 'list-marker-space', ], }, { errorContext: null, - errorDetail: 'Expected: 0; Actual: 2', + errorDetail: 'Expected: 1; Actual: 3', errorRange: [ 1, 4, ], fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '', - }, - lineNumber: 22, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', - ruleNames: [ - 'MD007', - 'ul-indent', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', - errorRange: [ - 1, - 3, - ], - fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', + deleteCount: 3, + editColumn: 2, + insertText: ' ', }, - lineNumber: 97, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 27, + ruleDescription: 'Spaces after list markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD030', + 'list-marker-space', ], }, { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', - errorRange: [ - 1, - 3, - ], + errorContext: '1. This is a list. {MD032}', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', + insertText: `␊ + `, }, - lineNumber: 98, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 10, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', - errorRange: [ - 1, - 3, - ], + errorContext: '1. This is a list. It also has...', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '', + insertText: `␊ + `, }, - lineNumber: 99, - ruleDescription: 'Unordered list indentation', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + lineNumber: 13, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD007', - 'ul-indent', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: '- one {MD032}', + errorContext: '1. This is a list. {MD030} {...', errorDetail: null, errorRange: null, fixInfo: { insertText: `␊ `, - lineNumber: 18, }, lineNumber: 17, ruleDescription: 'Lists should be surrounded by blank lines', @@ -33418,14 +33009,14 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '1. two {MD032}', + errorContext: '- in its list. {MD032}', errorDetail: null, errorRange: null, fixInfo: { insertText: `␊ `, }, - lineNumber: 18, + lineNumber: 20, ruleDescription: 'Lists should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ @@ -33434,15 +33025,14 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '1. two {MD032}', + errorContext: '- in its list. It also has a p...', errorDetail: null, errorRange: null, fixInfo: { insertText: `␊ `, - lineNumber: 19, }, - lineNumber: 18, + lineNumber: 23, ruleDescription: 'Lists should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ @@ -33451,14 +33041,15 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '- three {MD032}', + errorContext: '- in its list. It also has a p...', errorDetail: null, errorRange: null, fixInfo: { insertText: `␊ `, + lineNumber: 24, }, - lineNumber: 19, + lineNumber: 23, ruleDescription: 'Lists should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ @@ -33467,15 +33058,14 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '1. one {MD032}', + errorContext: '+ in its list. {MD004} {MD032}', errorDetail: null, errorRange: null, fixInfo: { insertText: `␊ `, - lineNumber: 22, }, - lineNumber: 21, + lineNumber: 24, ruleDescription: 'Lists should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ @@ -33484,14 +33074,14 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '- two {MD007} {MD032}', + errorContext: '- This is a list. {MD030} {M...', errorDetail: null, errorRange: null, fixInfo: { insertText: `␊ `, }, - lineNumber: 22, + lineNumber: 27, ruleDescription: 'Lists should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ @@ -33500,15 +33090,14 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '- two {MD007} {MD032}', + errorContext: '1. which creates a list {MD032...', errorDetail: null, errorRange: null, fixInfo: { insertText: `␊ `, - lineNumber: 23, }, - lineNumber: 22, + lineNumber: 31, ruleDescription: 'Lists should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ @@ -33517,14 +33106,14 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '1. three {MD032}', + errorContext: '1. before the list {MD032}', errorDetail: null, errorRange: null, fixInfo: { insertText: `␊ `, }, - lineNumber: 23, + lineNumber: 37, ruleDescription: 'Lists should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ @@ -33533,1663 +33122,1686 @@ Generated by [AVA](https://avajs.dev). ], }, ], - fixed: `# Lists with Nesting␊ + fixed: `# Heading␊ ␊ - ## Excessive nesting␊ + This paragraph has the number␊ + 5. More text.␊ ␊ - - one␊ - 1. two␊ - 1. three␊ - - four␊ + This paragraph has the number␊ + 11. More text.␊ ␊ - 1. one␊ - - two␊ - - three␊ - 1. four␊ + This non-paragraph has the number␊ ␊ - ## Insufficient nesting␊ + 1. This is a list. {MD032}␊ ␊ - - one {MD032}␊ + This non-paragraph has the number␊ ␊ - 1. two {MD032}␊ + 1. This is a list. It also has the number {MD032}␊ + 5. This is a list. {MD029}␊ ␊ - - three {MD032}␊ + This non-paragraph has spaces and the number␊ ␊ - 1. one {MD032}␊ + 1. This is a list. {MD030} {MD032}␊ ␊ - - two {MD007} {MD032}␊ + This non-paragraph has a dash␊ ␊ - 1. three {MD032}␊ + - in its list. {MD032}␊ ␊ - ## Correct nesting, same type␊ + This non-paragraph has a dash␊ ␊ - - one␊ - - two␊ - - three␊ - - four␊ - - five␊ - - six␊ - - seven␊ + - in its list. It also has a plus {MD032}␊ + - in its list. {MD004} {MD032}␊ ␊ - 1. one␊ - 1. two␊ - 1. three␊ - 1. four␊ - 1. five␊ - 1. six␊ - 1. seven␊ + This non-paragraph has spaces and a dash␊ ␊ - ## Correct nesting, different types␊ + - This is a list. {MD030} {MD032}␊ ␊ - - one␊ - 1. two␊ - 1. three␊ - - four␊ + This is a mixed paragraph that has␊ + 2. followed by text followed by␊ ␊ - 1. one␊ - - two␊ - - three␊ - 1. four␊ + 1. which creates a list {MD032}␊ + 1. with a couple of items␊ ␊ - 1. one␊ - - two␊ - - three␊ + Another mixed paragraph␊ + 2. with more text␊ + in the middle of things␊ ␊ - - one␊ - 1. two␊ - - three␊ + 1. before the list {MD032}␊ + `, + } + +## lists-and-headings.md + +> Snapshot 1 + + { + errors: [], + fixed: `␊ ␊ - - one␊ - - two␊ - 1. three␊ + * list␊ + * list␊ ␊ - 1. one␊ - 1. two␊ - - three␊ + # Heading 1␊ ␊ - 1. one␊ - - two␊ - 1. three␊ + * list␊ + * list␊ ␊ - - one␊ - 1. two␊ - 1. three␊ + # Heading 2 #␊ ␊ - - one␊ - 1. two␊ - - three␊ - 1. four␊ - - five␊ - 1. six␊ - - seven␊ - 1. eight␊ + * list␊ + * list␊ ␊ - 1. one␊ - - two␊ - 1. three␊ - - four␊ - 1. five␊ - - six␊ - 1. seven␊ - - eight␊ + Heading 3␊ + =========␊ ␊ - - 1. Item {MD004} {MD007}␊ - - 2. Item {MD004} {MD007}␊ - - 3. Item {MD004} {MD007}␊ + * list␊ + * list␊ + ␊ + ␊ `, } -## lists_without_blank_lines.md +## lists-in-blockquote.md > Snapshot 1 { errors: [ { - errorContext: '```', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: plus; Actual: dash', + errorRange: [ + 1, + 4, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 64, + deleteCount: 1, + editColumn: 3, + insertText: '+', }, - lineNumber: 64, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 32, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD004', + 'ul-style', ], }, { - errorContext: '```', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: plus; Actual: dash', + errorRange: [ + 1, + 6, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 73, + deleteCount: 1, + editColumn: 5, + insertText: '+', }, - lineNumber: 72, - ruleDescription: 'Fenced code blocks should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + lineNumber: 33, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD031', - 'blanks-around-fences', + 'MD004', + 'ul-style', ], }, { - errorContext: '* list {MD032}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: plus; Actual: asterisk', + errorRange: [ + 1, + 7, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 1, + editColumn: 6, + insertText: '+', }, - lineNumber: 10, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 64, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD004', + 'ul-style', ], }, { - errorContext: '* list {MD032}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: plus; Actual: asterisk', + errorRange: [ + 1, + 9, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 11, + deleteCount: 1, + editColumn: 8, + insertText: '+', }, - lineNumber: 10, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 65, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD004', + 'ul-style', ], }, { - errorContext: '+ list {MD032}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: plus; Actual: asterisk', + errorRange: [ + 1, + 10, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 1, + editColumn: 8, + insertText: '+', }, - lineNumber: 12, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 66, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD004', + 'ul-style', ], }, { - errorContext: '+ list {MD032}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: plus; Actual: asterisk', + errorRange: [ + 1, + 10, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 13, + deleteCount: 1, + editColumn: 9, + insertText: '+', }, - lineNumber: 12, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 67, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD004', + 'ul-style', ], }, { - errorContext: '- list {MD032}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: plus; Actual: asterisk', + errorRange: [ + 1, + 8, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 1, + editColumn: 7, + insertText: '+', }, - lineNumber: 14, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 68, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + ruleNames: [ + 'MD004', + 'ul-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: plus; Actual: asterisk', + errorRange: [ + 1, + 7, + ], + fixInfo: { + deleteCount: 1, + editColumn: 6, + insertText: '+', + }, + lineNumber: 69, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD004', + 'ul-style', ], }, { - errorContext: '- list {MD032}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: plus; Actual: asterisk', + errorRange: [ + 1, + 9, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 15, + deleteCount: 1, + editColumn: 8, + insertText: '+', }, - lineNumber: 14, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 70, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD004', + 'ul-style', ], }, { - errorContext: '1. list {MD032}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: plus; Actual: asterisk', + errorRange: [ + 1, + 11, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 1, + editColumn: 10, + insertText: '+', }, - lineNumber: 16, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 71, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD004', + 'ul-style', ], }, { - errorContext: '1. list {MD032}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: plus; Actual: asterisk', + errorRange: [ + 1, + 12, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 17, + deleteCount: 1, + editColumn: 11, + insertText: '+', }, - lineNumber: 16, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 72, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD004', + 'ul-style', ], }, { - errorContext: '* list {MD032}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: plus; Actual: asterisk', + errorRange: [ + 1, + 8, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 21, + deleteCount: 1, + editColumn: 7, + insertText: '+', }, - lineNumber: 20, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 76, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD004', + 'ul-style', ], }, { - errorContext: '1. list {MD032}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: plus; Actual: asterisk', + errorRange: [ + 1, + 10, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 1, + editColumn: 9, + insertText: '+', }, - lineNumber: 24, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 77, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD004', + 'ul-style', ], }, { - errorContext: '* list {MD032} {MD031:64}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: plus; Actual: asterisk', + errorRange: [ + 1, + 11, + ], fixInfo: { - insertText: `␊ - `, - lineNumber: 64, + deleteCount: 1, + editColumn: 9, + insertText: '+', }, - lineNumber: 63, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 78, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD004', + 'ul-style', ], }, { - errorContext: '* list {MD032} {MD031:72}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: plus; Actual: asterisk', + errorRange: [ + 1, + 11, + ], fixInfo: { - insertText: `␊ - `, + deleteCount: 1, + editColumn: 10, + insertText: '+', }, - lineNumber: 73, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 79, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: null, + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ - 45, 1, + 8, ], fixInfo: { - editColumn: 46, - insertText: `␊ - `, + deleteCount: 1, + editColumn: 7, + insertText: '+', }, - lineNumber: 98, - ruleDescription: 'Files should end with a single newline character', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md', + lineNumber: 85, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD047', - 'single-trailing-newline', + 'MD004', + 'ul-style', ], }, - ], - fixed: `# lists_without_blank_lines␊ - ␊ - * list (on first line)␊ - ␊ - text␊ - ␊ - * list␊ - ␊ - ---␊ - ␊ - * list {MD032}␊ - ␊ - ---␊ - ␊ - + list {MD032}␊ - ␊ - ---␊ - ␊ - - list {MD032}␊ - ␊ - ---␊ - ␊ - 1. list {MD032}␊ - ␊ - ---␊ - ␊ - * list␊ - * list {MD032}␊ - ␊ - ---␊ - ␊ - text␊ - ␊ - 1. list {MD032}␊ - 2. list␊ - ␊ - text␊ - ␊ - * list␊ - * list␊ - * list␊ - ␊ - text␊ - ␊ - * list␊ - with hanging indent␊ - * list␊ - with hanging indent␊ - * list␊ - with hanging indent␊ - ␊ - Note: list without hanging indent violates MD032␊ - ␊ - * list␊ - ␊ - item with blank lines␊ - ␊ - * list␊ - ␊ - item with blank lines␊ - ␊ - text␊ - ␊ - \`\`\`js␊ - /*␊ - * code block␊ - * not a list␊ - */␊ - \`\`\`␊ - ␊ - text␊ - ␊ - * list {MD032} {MD031:64}␊ - ␊ - \`\`\`␊ - code␊ - \`\`\`␊ - ␊ - text␊ - ␊ - \`\`\`␊ - code␊ - \`\`\`␊ - ␊ - * list {MD032} {MD031:72}␊ - ␊ - text␊ - ␊ -

␊ - 1. Not a␊ - 2. list␊ -

␊ - ␊ -

1. Not a list

␊ - ␊ -

␊ - * Not a␊ - * list␊ -

␊ - ␊ -

* Not a list

␊ - ␊ - ␊ - ␊ - * list (on last line without newline) {MD047}␊ - `, - } - -## long-heading-exceptions.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: 80; Actual: 127', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ - 81, - 47, + 1, + 9, ], - fixInfo: null, - lineNumber: 9, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 8, + insertText: '+', + }, + lineNumber: 86, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 127', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ - 81, - 47, + 1, + 9, ], - fixInfo: null, - lineNumber: 15, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 8, + insertText: '+', + }, + lineNumber: 87, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 127', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ - 81, - 47, - ], - fixInfo: null, - lineNumber: 21, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', - ruleNames: [ - 'MD013', - 'line-length', + 1, + 10, ], - }, - ], - fixed: `# Heading␊ - ␊ - Text␊ - ␊ - ## Heading heading heading heading heading heading heading heading heading heading heading heading heading heading heading heading␊ - ␊ - Text␊ - ␊ - Text text text text text text text text text text text text text text text text text text text text text text text text {MD013}␊ - ␊ - ## Heading heading␊ - ␊ - Text␊ - ␊ - Text text text text text text text text text text text text text text text text text text text text text text text text {MD013}␊ - ␊ - ### Heading heading heading heading heading heading heading heading heading heading heading heading heading heading heading heading heading␊ - ␊ - Text␊ - ␊ - Text text text text text text text text text text text text text text text text text text text text text text text text {MD013}␊ - ␊ - ␊ - `, - } - -## long-lines-long-reference-definitions-stern.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Long Lines Long Reference Definitions Stern␊ - ␊ - [Link][short-reference-definition]␊ - ␊ - [Link][long-reference-definition]␊ - ␊ - [Link][long-reference-definition-split]␊ - ␊ - ![Image][long-reference-definition-image]␊ - ␊ - [short-reference-definition]: https://example.com/short␊ - [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ - [long-reference-definition-split]:␊ - https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/long␊ - [long-reference-definition-image]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/image␊ - ␊ - [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ - ␊ - ␊ - `, - } - -## long-lines-long-reference-definitions-strict.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Long Lines Long Reference Definitions Strict␊ - ␊ - [Link][short-reference-definition]␊ - ␊ - [Link][long-reference-definition]␊ - ␊ - [Link][long-reference-definition-split]␊ - ␊ - ![Image][long-reference-definition-image]␊ - ␊ - [short-reference-definition]: https://example.com/short␊ - [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ - [long-reference-definition-split]:␊ - https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/long␊ - [long-reference-definition-image]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/image␊ - ␊ - [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ - ␊ - ␊ - `, - } - -## long-lines-long-reference-definitions.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Long Lines Long Reference Definitions␊ - ␊ - [Link][short-reference-definition]␊ - ␊ - [Link][long-reference-definition]␊ - ␊ - [Link][long-reference-definition-split]␊ - ␊ - ![Image][long-reference-definition-image]␊ - ␊ - [short-reference-definition]: https://example.com/short␊ - [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ - [long-reference-definition-split]:␊ - https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/long␊ - [long-reference-definition-image]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/image␊ - ␊ - [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ - `, - } - -## long-lines-short-code.md - -> Snapshot 1 - - { - errors: [ + fixInfo: { + deleteCount: 1, + editColumn: 9, + insertText: '+', + }, + lineNumber: 89, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + ruleNames: [ + 'MD004', + 'ul-style', + ], + }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 92', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ - 81, - 12, + 1, + 11, ], - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 10, + insertText: '+', + }, + lineNumber: 90, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Expected: 30; Actual: 46', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ - 31, - 16, + 1, + 11, ], - fixInfo: null, - lineNumber: 13, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 10, + insertText: '+', + }, + lineNumber: 91, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Expected: 30; Actual: 47', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ - 31, - 17, + 1, + 8, ], - fixInfo: null, - lineNumber: 24, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 7, + insertText: '+', + }, + lineNumber: 96, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD004', + 'ul-style', ], }, - ], - fixed: `# Long Lines, Short Code␊ - ␊ - Text text text text text text text text text text text text text text text␊ - ␊ - Text text text text text text text text text text text text text text text text text {MD013}␊ - ␊ - Text␊ - ␊ - Code code code code␊ - ␊ - Text␊ - ␊ - Code code code code code code code {MD013}␊ - ␊ - Text␊ - ␊ - \`\`\`text␊ - Code code code code code␊ - \`\`\`␊ - ␊ - Text␊ - ␊ - \`\`\`text␊ - Code code code code code code code code {MD013}␊ - \`\`\`␊ - ␊ - ␊ - `, - } - -## long-lines-short-headings.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: 80; Actual: 92', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ - 81, - 12, + 1, + 9, ], - fixInfo: null, - lineNumber: 3, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 8, + insertText: '+', + }, + lineNumber: 97, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Expected: 30; Actual: 38', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ - 31, - 8, + 1, + 9, ], - fixInfo: null, - lineNumber: 9, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 8, + insertText: '+', + }, + lineNumber: 98, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Expected: 30; Actual: 36', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ - 31, - 6, + 1, + 10, ], - fixInfo: null, - lineNumber: 13, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 9, + insertText: '+', + }, + lineNumber: 99, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Expected: 30; Actual: 53', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ - 31, - 23, + 1, + 11, ], - fixInfo: null, - lineNumber: 17, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 10, + insertText: '+', + }, + lineNumber: 100, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD004', + 'ul-style', ], }, - ], - fixed: `# Long Lines, Short Headings␊ - ␊ - Text text text text text text text text text text text text text text text text text {MD013}␊ - ␊ - ## Short heading text text text␊ - ␊ - Text␊ - ␊ - ## Long heading text text text {MD013}␊ - ␊ - Text␊ - ␊ - ## Long heading text text {MD013} ##␊ - ␊ - Text␊ - ␊ - Long heading of text text text text text text {MD013}␊ - -----------------------------------------------------␊ - ␊ - Text␊ - ␊ - ␊ - `, - } - -## long-lines-stern.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: 80; Actual: 82', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ - 81, - 2, + 1, + 11, ], - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 10, + insertText: '+', + }, + lineNumber: 101, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 81', + errorDetail: 'Expected: plus; Actual: asterisk', errorRange: [ - 81, 1, + 4, ], - fixInfo: null, - lineNumber: 7, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 3, + insertText: '+', + }, + lineNumber: 122, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 87', + errorDetail: 'Expected: plus; Actual: asterisk', errorRange: [ - 81, - 7, + 1, + 4, ], - fixInfo: null, - lineNumber: 13, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 3, + insertText: '+', + }, + lineNumber: 123, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Expected: 30; Actual: 31', + errorDetail: 'Expected: plus; Actual: dash', + errorRange: [ + 1, + 6, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: '+', + }, + lineNumber: 140, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + ruleNames: [ + 'MD004', + 'ul-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: plus; Actual: dash', + errorRange: [ + 1, + 6, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: '+', + }, + lineNumber: 141, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + ruleNames: [ + 'MD004', + 'ul-style', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 7; Actual: 8', errorRange: [ - 31, 1, + 10, ], fixInfo: null, - lineNumber: 17, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 67, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 20; Actual: 21', + errorDetail: 'Expected: 5; Actual: 6', errorRange: [ - 21, 1, + 8, ], fixInfo: null, - lineNumber: 26, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 68, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 84', + errorDetail: 'Expected: 9; Actual: 10', errorRange: [ - 81, - 4, + 1, + 12, ], fixInfo: null, - lineNumber: 32, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 72, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 84', + errorDetail: 'Expected: 8; Actual: 9', errorRange: [ - 81, - 4, + 1, + 11, ], fixInfo: null, - lineNumber: 35, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 79, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 85', + errorDetail: 'Expected: 6; Actual: 7', errorRange: [ - 81, - 5, + 1, + 9, ], fixInfo: null, - lineNumber: 38, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 86, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 84', + errorDetail: 'Expected: 6; Actual: 7', errorRange: [ - 81, - 4, + 1, + 9, ], fixInfo: null, - lineNumber: 42, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 87, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, - ], - fixed: `# Long Lines Stern␊ - ␊ - 12345678901234567890123456789012345678901234567890123456789012345678901234567890␊ - ␊ - This line is too long. text text text text text text text text text text text text␊ - ␊ - This line is barely too long. text text text text text text text text text text t␊ - ␊ - This line is just okay. text text text text text text text text text text text t␊ - ␊ - This line is not a problem. text text text text text text text text text text t␊ - ␊ - This line is too long. texttexttexttexttexttexttexttexttexttexttexttexttexttexttexttext␊ - ␊ - ThisLineIsOkaytexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttext␊ - ␊ - ## This heading is way too long␊ - ␊ - ## This heading is long but ok␊ - ␊ - ## This heading is short + ok␊ - ␊ - ## ThisTooLongHeadingIsOkaytext␊ - ␊ - \`\`\`text␊ - This code is too long␊ - This code is a-okay.␊ - This code is short.␊ - ThisTooLongCodeIsOkay.␊ - \`\`\`␊ - ␊ - * This list item line is too long. text text text text text text text text text text␊ - * This list item line is okay. text text text text text text text text text␊ - This list item line is okay. text text text text text text text text text␊ - This list item line is too long. text text text text text text text text text text␊ - ThisTooLongListItemLineIsOkaytexttexttexttexttexttexttexttexttexttexttexttexttext␊ - ␊ - > This blockquote line is too long. text text text text text text text text text text␊ - > This blockquote line is okay. text text text text text text text text text␊ - > ThisTooLongBlockquoteLineIsOkaytexttexttexttexttexttexttexttexttexttexttexttexttext␊ - >␊ - > > This double blockquote line is too long. text text text text text text text text␊ - > > This double blockquote line is okay. text text text text text text text␊ - > > ThisTooLongDoubleBlockquoteLineIsOkaytexttexttexttexttexttexttexttexttexttexttext␊ - ␊ - ThisLineIsTooLongButIsNotReportedBecauseItLooksLikePartOfAListItemtexttexttexttext␊ - ␊ - {MD013:5}␊ - {MD013:7}␊ - {MD013:13}␊ - {MD013:17}␊ - {MD013:26}␊ - {MD013:32}␊ - {MD013:35}␊ - {MD013:38}␊ - {MD013:42}␊ - ␊ - ␊ - `, - } - -## long-lines-strict.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: 80; Actual: 82', + errorDetail: 'Expected: 8; Actual: 9', errorRange: [ - 81, - 2, + 1, + 11, ], fixInfo: null, - lineNumber: 5, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 90, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 86', + errorDetail: 'Expected: 8; Actual: 9', errorRange: [ - 81, - 6, + 1, + 11, ], fixInfo: null, - lineNumber: 7, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 91, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 81', + errorDetail: 'Expected: 6; Actual: 7', errorRange: [ - 81, 1, + 9, ], fixInfo: null, - lineNumber: 9, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 97, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 30; Actual: 31', + errorDetail: 'Expected: 6; Actual: 7', errorRange: [ - 31, 1, + 9, ], fixInfo: null, - lineNumber: 15, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 98, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 20; Actual: 21', + errorDetail: 'Expected: 8; Actual: 9', errorRange: [ - 21, 1, + 11, ], fixInfo: null, - lineNumber: 22, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 100, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, - ], - fixed: `# Long Lines Strict␊ - ␊ - 12345678901234567890123456789012345678901234567890123456789012345678901234567890␊ - ␊ - This line is too long. text text text text text text text text text text text text␊ - ␊ - This line is way too long. text text text text text text text text text text text text␊ - ␊ - This line is barely too long. text text text text text text text text text text t␊ - ␊ - This line is just okay. text text text text text text text text text text text t␊ - ␊ - This line is not a problem. text text text text text text text text text text t␊ - ␊ - ## This heading is way too long␊ - ␊ - ## This heading is long but ok␊ - ␊ - ## This heading is short + ok␊ - ␊ - \`\`\`text␊ - This code is too long␊ - This code is a-okay.␊ - This code is short.␊ - \`\`\`␊ - ␊ - {MD013:5}␊ - {MD013:7}␊ - {MD013:9}␊ - {MD013:15}␊ - {MD013:22}␊ - ␊ - ␊ - `, - } - -## long_lines.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: 80; Actual: 97', + errorDetail: 'Expected: 8; Actual: 9', errorRange: [ - 81, - 17, + 1, + 11, ], fixInfo: null, - lineNumber: 3, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 101, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 110', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ - 81, - 30, + 1, + 4, ], fixInfo: null, - lineNumber: 11, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 106, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 117', + errorDetail: 'Expected: 2; Actual: 3', errorRange: [ - 81, - 37, + 1, + 5, ], fixInfo: null, - lineNumber: 14, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 109, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 107', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ - 81, - 27, + 1, + 4, ], fixInfo: null, - lineNumber: 17, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 114, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 112', + errorDetail: 'Expected: 2; Actual: 3', errorRange: [ - 81, - 32, + 1, + 5, ], fixInfo: null, - lineNumber: 19, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 116, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 104', + errorDetail: 'Expected: 4; Actual: 5', errorRange: [ - 81, - 24, + 1, + 7, ], fixInfo: null, - lineNumber: 21, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 185, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 109', + errorDetail: 'Expected: 6; Actual: 7', errorRange: [ - 81, - 29, + 1, + 9, ], fixInfo: null, - lineNumber: 29, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 188, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 96', + errorDetail: 'Expected: 2; Actual: 3', errorRange: [ - 81, - 16, + 1, + 10, ], - fixInfo: null, - lineNumber: 64, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 6, + insertText: '', + }, + lineNumber: 67, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 96', + errorDetail: 'Expected: 0; Actual: 1', errorRange: [ - 81, - 16, + 1, + 8, ], - fixInfo: null, + fixInfo: { + deleteCount: 1, + editColumn: 6, + insertText: '', + }, lineNumber: 68, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 96', + errorDetail: 'Expected: 4; Actual: 5', errorRange: [ - 81, - 16, + 1, + 12, ], - fixInfo: null, - lineNumber: 69, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 6, + insertText: '', + }, + lineNumber: 72, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 105', + errorDetail: 'Expected: 2; Actual: 3', errorRange: [ - 81, - 25, + 1, + 11, ], - fixInfo: null, - lineNumber: 72, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 7, + insertText: '', + }, + lineNumber: 79, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 105', + errorDetail: 'Expected: 0; Actual: 1', errorRange: [ - 81, - 25, + 1, + 7, ], - fixInfo: null, - lineNumber: 74, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: '', + }, + lineNumber: 185, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: indented; Actual: fenced', - errorRange: null, - fixInfo: null, - lineNumber: 13, - ruleDescription: 'Code block style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', + errorDetail: 'Expected: 2; Actual: 3', + errorRange: [ + 1, + 9, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + insertText: '', + }, + lineNumber: 188, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', + ruleNames: [ + 'MD007', + 'ul-indent', + ], + }, + { + errorContext: ' > * Item {MD004} {MD005} {...', + errorDetail: null, + errorRange: [ + 6, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 6, + }, + lineNumber: 68, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: ' > > - Item {MD004} {MD005} ...', + errorDetail: null, + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + }, + lineNumber: 86, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: ' > > > - Item {MD004} {MD005...', + errorDetail: null, + errorRange: [ + 7, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 7, + }, + lineNumber: 90, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: ' > > > - Item {MD004} {MD005...', + errorDetail: null, + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + }, + lineNumber: 91, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: ' > > - Item {MD004} {MD005} ...', + errorDetail: null, + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + }, + lineNumber: 97, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: ' > > > - Item {MD004} {MD005...', + errorDetail: null, + errorRange: [ + 7, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 7, + }, + lineNumber: 100, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: ' > > > - Item {MD004} {MD005...', + errorDetail: null, + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + }, + lineNumber: 101, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: ' > + list in blockquote {MD0...', + errorDetail: null, + errorRange: [ + 5, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 5, + }, + lineNumber: 185, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', ruleNames: [ - 'MD046', - 'code-block-style', + 'MD027', + 'no-multiple-space-blockquote', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ - 1, - 1, + 2, + 4, ], fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '*', + deleteCount: 2, + editColumn: 4, + insertText: ' ', }, - lineNumber: 35, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 19, + ruleDescription: 'Spaces after list markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD030', + 'list-marker-space', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ - 114, - 1, + 2, + 3, ], fixInfo: { - deleteCount: 1, - editColumn: 114, - insertText: '*', + deleteCount: 2, + editColumn: 3, + insertText: ' ', }, - lineNumber: 35, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 23, + ruleDescription: 'Spaces after list markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD030', + 'list-marker-space', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ - 1, - 1, + 9, + 4, ], fixInfo: { - deleteCount: 1, - editColumn: 1, - insertText: '*', + deleteCount: 2, + editColumn: 11, + insertText: ' ', }, - lineNumber: 41, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 60, + ruleDescription: 'Spaces after list markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD030', + 'list-marker-space', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ - 129, - 1, + 8, + 3, ], fixInfo: { - deleteCount: 1, - editColumn: 129, - insertText: '*', + deleteCount: 2, + editColumn: 9, + insertText: ' ', }, - lineNumber: 41, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 66, + ruleDescription: 'Spaces after list markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD030', + 'list-marker-space', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorDetail: 'Expected: 1; Actual: 2', errorRange: [ + 9, 3, - 1, ], fixInfo: { - deleteCount: 1, - editColumn: 3, - insertText: '*', + deleteCount: 2, + editColumn: 10, + insertText: ' ', }, - lineNumber: 43, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 78, + ruleDescription: 'Spaces after list markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD030', + 'list-marker-space', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 127, - 1, - ], + errorContext: '> + Item {MD032}', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 127, - insertText: '*', + insertText: `>␊ + `, }, - lineNumber: 43, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 47, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 1, - 2, + errorContext: '> + Item {MD032}', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `>␊ + `, + lineNumber: 54, + }, + lineNumber: 53, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + ruleNames: [ + 'MD032', + 'blanks-around-lists', ], + }, + { + errorContext: '> > - Item {MD004} {MD032}', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 1, - insertText: '**', + insertText: ` > >␊ + `, }, - lineNumber: 39, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + lineNumber: 96, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 110, - 2, + errorContext: '> > - Item {MD004} {MD005} {MD...', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: ` > >␊ + `, + lineNumber: 99, + }, + lineNumber: 98, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + ruleNames: [ + 'MD032', + 'blanks-around-lists', ], + }, + { + errorContext: '> > > - Item {MD004} {MD032}', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 110, - insertText: '**', + insertText: ` > > >␊ + `, }, - lineNumber: 39, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + lineNumber: 99, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: '[Link to broken label][notlabel]', - errorDetail: 'Missing link or image reference definition: "notlabel"', - errorRange: [ - 1, - 32, + errorContext: '> + Item {MD005} {MD032}', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `>␊ + `, + lineNumber: 115, + }, + lineNumber: 114, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + ruleNames: [ + 'MD032', + 'blanks-around-lists', ], - fixInfo: null, - lineNumber: 27, - ruleDescription: 'Reference links and images should use a label that is defined', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md', + }, + { + errorContext: '>>+ Item {MD032}', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `>>␊ + `, + }, + lineNumber: 115, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD052', - 'reference-links-images', + 'MD032', + 'blanks-around-lists', ], }, ], - fixed: `# Long Lines␊ + fixed: `# Lists in Blockquote␊ ␊ - This is a very very very very very very very very very very very very very very long line {MD013}␊ + > 1. The simplest ordered list in blockquote␊ ␊ - This line however, while very long, doesn't have whitespace after the 80th columnwhichallowsforURLsandotherlongthings.␊ + Text␊ ␊ - [This long line is comprised entirely of a link](https://example.com "This is the long link's title")␊ + > + The simplest unordered list in blockquote␊ ␊ - > [This long line is comprised entirely of a link](https://example.com "This is the long link's title")␊ + Text␊ ␊ - [This long line is comprised entirely of a link](https://example.com "But is inside a code block") {MD013}␊ + >1. Item␊ ␊ - \`\`\`markdown␊ - [This long line is comprised entirely of a link](https://example.com "But is inside a code block") {MD013} {MD046:13}␊ - \`\`\`␊ + Text␊ ␊ - This [long line is comprised mostly of a link](https://example.com "This is the long link's title") {MD013}␊ + >+ Item␊ ␊ - [This long line is comprised mostly of a link](https://example.com "This is the long link's title") text {MD013}␊ + Text␊ ␊ - This long line includes a simple [reference][label] link and is long enough to violate the rule. {MD013}␊ + >1. Item {MD030}␊ ␊ - [This long line is comprised entirely of a reference link and is long enough to violate the rule][label]␊ + Text␊ ␊ - [label]: https://example.org "Title for a link reference that is itself long enough to violate the rule"␊ + >+ Item {MD030}␊ ␊ - [Link to broken label][notlabel] {MD052}␊ + Text␊ ␊ - [notlabel\\]: notlink "Invalid syntax for a link label because the right bracket is backslash-escaped {MD013}"␊ + > 1. Item␊ + > 1. Item␊ ␊ - [](https://example.com "This long line is comprised entirely of a link with empty text and a non-empty title")␊ + Text␊ ␊ - *[This long line is comprised of an emphasized link](https://example.com "This is the long link's title")*␊ + > + Item {MD004}␊ + > + Item {MD004}␊ ␊ - *[This long line is comprised of an emphasized link {MD049}](https://example.com "This is the long link's title")*␊ + Text␊ ␊ - **[This long line is comprised of a bolded link](https://example.com "This is the long link's title")**␊ + > Text␊ + >␊ + > + Item␊ + > + Item␊ + >␊ + > Text␊ ␊ - **[This long line is comprised of a bolded link {MD050}](https://example.com "This is the long link's title")**␊ + Text␊ ␊ - ***[This long line is comprised of an emphasized and bolded link {MD049}](https://example.com "This is the long link's title")***␊ + > Text␊ + >␊ + > + Item {MD032}␊ + > + Item␊ ␊ - ***[This long line is comprised of an emphasized and bolded link {MD049}](https://example.com "This is the long link's title")***␊ + Text␊ ␊ - *[](https://example.com "This long line is comprised of an emphasized link with empty text and a non-empty title")*␊ + > + Item␊ + > + Item {MD032}␊ + >␊ + > ---␊ ␊ - **[](https://example.com "This long line is comprised of a bolded link with empty text and a non-empty title")**␊ + Text␊ ␊ - ![Alternate text for long line image example](https://example.com "Title text for long line image example")␊ + > 1. Item␊ + > 1. Item␊ + > 1. Item {MD030}␊ ␊ - *![Alternate text for long line image example](https://example.com "Title text for long line image example")*␊ + Text␊ ␊ - **![Alternate text for long line image example](https://example.com "Title text for long line image example")**␊ + > + Item {MD004}␊ + > + Item {MD004}␊ + > + Item {MD004} {MD030}␊ + > + Item {MD004} {MD005} {MD007}␊ + > + Item {MD004} {MD005} {MD007} {MD027}␊ + > + Item {MD004}␊ + > + Item {MD004}␊ + > + Item {MD004}␊ + > + Item {MD004} {MD005} {MD007}␊ ␊ - ![Reference style for long line image which is itself an example of a long line with content][image]␊ + Text␊ ␊ - *![Reference style for long line image which is itself an example of a long line with content][image]*␊ + > > + Item {MD004}␊ + > > + Item {MD004}␊ + > > + Item {MD004} {MD030}␊ + > > + Item {MD004} {MD005} {MD007}␊ ␊ - **![Reference style for long line image which is itself an example of a long line with content][image]**␊ + Text␊ ␊ - [image]: https://example.com "Title text for long line image example using reference style for image details"␊ + > Text␊ + >␊ + > > + Item {MD004}␊ + > > + Item {MD004} {MD005} {MD027}␊ + > > + Item {MD004} {MD005}␊ + > >␊ + > > > + Item {MD004}␊ + > > > + Item {MD004} {MD005} {MD027}␊ + > > > + Item {MD004} {MD005} {MD027}␊ ␊ - ␊ + Text␊ ␊ - ␊ + > Text␊ + > >␊ + > > + Item {MD004} {MD032}␊ + > > + Item {MD004} {MD005} {MD027}␊ + > > + Item {MD004} {MD005} {MD032}␊ + > > >␊ + > > > + Item {MD004} {MD032}␊ + > > > + Item {MD004} {MD005} {MD027}␊ + > > > + Item {MD004} {MD005} {MD027}␊ ␊ - ␊ + Text␊ ␊ - Long lines inside HTML comments should also ␊ + >+ Item␊ + > + Item {MD005}␊ + >>␊ + >>+ Item␊ + >> + Item {MD005}␊ + ␊ + Text␊ + ␊ + >+ Item␊ + > + Item {MD005} {MD032}␊ + >>␊ + >>+ Item {MD032}␊ + >> + Item {MD005}␊ + ␊ + Text␊ + ␊ + > Quoted text␊ + >␊ + > + A list {MD004}␊ + > + of items {MD004}␊ + >␊ + > More quoted text␊ + ␊ + Text␊ + ␊ + > Quoted text␊ + >␊ + > > + A list␊ + > > + of items␊ + >␊ + > More quoted text␊ + ␊ + Text␊ + ␊ + > Quoted text␊ + >␊ + > > + A list {MD004}␊ + > > + of items {MD004}␊ + > >␊ + > > More quoted text␊ + ␊ + Text␊ + ␊ + + List␊ + > blockquote in list␊ + >␊ + > + list in blockquote in list␊ + ␊ + Text␊ + ␊ + + List␊ + Text␊ + ␊ + > + list in blockquote␊ + > + list in blockquote␊ + ␊ + Text␊ + ␊ + > + list in blockquote␊ + ␊ + Text␊ + + List␊ + ␊ + Text␊ + ␊ + > + list in blockquote␊ + ␊ + Text␊ + + List␊ + ␊ + > + list in blockquote␊ + > + sublist in blockquote␊ + > + list in blockquote␊ + > + sublist in blockquote␊ + ␊ + Text␊ + ␊ + + List␊ + Text␊ + ␊ + > + list in blockquote␊ + > + list in blockquote {MD005} {MD007} {MD027}␊ + > + list in blockquote␊ + > + sublist in blockquote␊ + > + sublist in blockquote {MD005} {MD007}␊ `, } -## long_lines_100.md +## lists-incomplete.md > Snapshot 1 @@ -35197,40 +34809,78 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: 100; Actual: 111', + errorDetail: null, errorRange: [ - 101, - 11, + 7, + 1, ], - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + editColumn: 8, + insertText: `␊ + `, + }, + lineNumber: 49, + ruleDescription: 'Files should end with a single newline character', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD047', + 'single-trailing-newline', ], }, ], - fixed: `# long_lines_100␊ + fixed: `# Lists Incomplete␊ + ␊ + Text␊ + ␊ + - Item␊ + -␊ + ␊ + Text␊ + ␊ + -␊ + - Item␊ + ␊ + Text␊ + ␊ + - Item␊ + -␊ + - Item␊ + ␊ + Text␊ + ␊ + - Item␊ + -␊ + -␊ + ␊ + Text␊ + ␊ + 1. Item␊ + 1.␊ + ␊ + Text␊ + ␊ + 1.␊ + 1. Item␊ ␊ - This is a very very very very very very very very long line over 80 chars but less than 100␊ + Text␊ ␊ - This is a very very very very very very very very very very long line over 80 chars, and also over 100. {MD013}␊ + 1. Item␊ + 1.␊ + 1. Item␊ ␊ - This is a very very very very very very very very very long line that is exactly 100 characters long␊ + Text␊ ␊ - This line however, while very long, doesn't have whitespace after the 100th columnwhichallowsforURLsandotherlongthings.␊ + 1. Item␊ + 1.␊ + 1.␊ ␊ - ␊ + Text␊ + ␊ + {MD047}␊ `, } -## long_lines_code-default.md +## lists-on-a-line.md > Snapshot 1 @@ -35238,490 +34888,325 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: 80; Actual: 128', - errorRange: [ - 81, - 48, - ], - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', - ruleNames: [ - 'MD013', - 'line-length', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 80; Actual: 139', - errorRange: [ - 81, - 59, - ], - fixInfo: null, - lineNumber: 11, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', - ruleNames: [ - 'MD013', - 'line-length', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 80; Actual: 111', - errorRange: [ - 81, - 31, - ], - fixInfo: null, - lineNumber: 16, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', - ruleNames: [ - 'MD013', - 'line-length', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 80; Actual: 111', - errorRange: [ - 81, - 31, - ], - fixInfo: null, - lineNumber: 17, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', - ruleNames: [ - 'MD013', - 'line-length', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: 80; Actual: 111', + errorDetail: 'Expected: 6; Actual: 7', errorRange: [ - 81, - 31, + 1, + 9, ], fixInfo: null, - lineNumber: 18, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 57, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 111', + errorDetail: 'Expected: 4; Actual: 5', errorRange: [ - 81, - 31, + 1, + 7, ], fixInfo: null, - lineNumber: 19, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 58, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 111', + errorDetail: 'Expected: 2; Actual: 3', errorRange: [ - 81, - 31, + 1, + 5, ], fixInfo: null, - lineNumber: 20, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + lineNumber: 59, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 128', + errorDetail: 'Expected: 0; Actual: 2', errorRange: [ - 81, - 48, + 1, + 4, ], - fixInfo: null, - lineNumber: 22, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 36, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 111', + errorDetail: 'Expected: 2; Actual: 4', errorRange: [ - 81, - 31, + 1, + 6, ], - fixInfo: null, - lineNumber: 26, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 36, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 111', + errorDetail: 'Expected: 0; Actual: 2', errorRange: [ - 81, - 31, + 1, + 4, ], - fixInfo: null, - lineNumber: 27, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 40, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 111', + errorDetail: 'Expected: 2; Actual: 4', errorRange: [ - 81, - 31, + 1, + 6, ], - fixInfo: null, - lineNumber: 28, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 40, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 111', + errorDetail: 'Expected: 4; Actual: 6', errorRange: [ - 81, - 31, + 1, + 8, ], - fixInfo: null, - lineNumber: 29, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 40, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 111', + errorDetail: 'Expected: 0; Actual: 2', errorRange: [ - 81, - 31, + 1, + 4, ], - fixInfo: null, - lineNumber: 30, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 44, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD007', + 'ul-indent', ], }, - ], - fixed: `# long_lines_code-default␊ - ␊ - This is a short line.␊ - ␊ - This is a very very very very very very very very very very very very very very very very very very very very long line. {MD013}␊ - ␊ - This is a short line.␊ - ␊ - \`\`\`text␊ - Here is a short line in a code block.␊ - Here is a very very very very very very very very very very very very very very very very very very very long line in a code block. {MD013}␊ - \`\`\`␊ - ␊ - This is a short line.␊ - ␊ - | First Heading | Second Heading | Third Heading | Fourth Heading | Fifth Heading | Sixth Heading | {MD013}␊ - | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- | {MD013}␊ - | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | {MD013}␊ - | ============== | ============== | ============== | ============== | ============== | ============== | {MD013}␊ - | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | {MD013}␊ - ␊ - This is a very very very very very very very very very very very very very very very very very very very very long line. {MD013}␊ - ␊ - Another line.␊ - ␊ - | First Heading | Second Heading | Third Heading | Fourth Heading | Fifth Heading | Sixth Heading | {MD013}␊ - | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- | {MD013}␊ - | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | {MD013}␊ - | ============== | ============== | ============== | ============== | ============== | ============== | {MD013}␊ - | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | {MD013}␊ - `, - } - -## long_lines_code.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: 80; Actual: 128', + errorDetail: 'Expected: 2; Actual: 4', errorRange: [ - 81, - 48, + 1, + 6, ], - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 44, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 80; Actual: 128', + errorDetail: 'Expected: 4; Actual: 6', errorRange: [ - 81, - 48, + 1, + 8, ], - fixInfo: null, - lineNumber: 33, - ruleDescription: 'Line length', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 44, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD007', + 'ul-indent', ], }, - ], - fixed: `# long_lines_code␊ - ␊ - This is a short line.␊ - ␊ - This is a very very very very very very very very very very very very very very very very very very very very long line. {MD013}␊ - ␊ - This is a short line.␊ - ␊ - \`\`\`text␊ - Here is a short line in a code block.␊ - Here is a very very very very very very very very very very very very very very very very very very very long line in a code block.␊ - \`\`\`␊ - ␊ - \`\`\`text␊ - test␊ - test␊ - ␊ - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut␊ - \`\`\`␊ - ␊ - This is a short line.␊ - ␊ - | First Heading | Second Heading | Third Heading | Fourth Heading | Fifth Heading | Sixth Heading |␊ - | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- |␊ - | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ - | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ - | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- |␊ - | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ - | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ - | ============== | ============== | ============== | ============== | ============== | ============== |␊ - | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell |␊ - ␊ - This is a very very very very very very very very very very very very very very very very very very very very long line. {MD013}␊ - ␊ - Another line.␊ - ␊ - | First Heading | Second Heading | Third Heading | Fourth Heading | Fifth Heading | Sixth Heading |␊ - | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- |␊ - | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ - | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ - | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- |␊ - | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ - | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ - | ============== | ============== | ============== | ============== | ============== | ============== |␊ - | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell |␊ - ␊ - ␊ - `, - } - -## markdown-extra-footnote.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: '(parenthesized footnote)[x^y]', + errorDetail: 'Expected: 0; Actual: 2', errorRange: [ - 15, - 29, + 1, + 4, ], fixInfo: { - deleteCount: 29, - editColumn: 15, - insertText: '[parenthesized footnote](x^y)', + deleteCount: 2, + editColumn: 1, + insertText: '', }, - lineNumber: 7, - ruleDescription: 'Reversed link syntax', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md', + lineNumber: 48, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD011', - 'no-reversed-links', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: '(is this)[z]', + errorDetail: 'Expected: 0; Actual: 2', errorRange: [ - 5, - 12, + 1, + 4, ], fixInfo: { - deleteCount: 12, - editColumn: 5, - insertText: '[is this](z)', + deleteCount: 2, + editColumn: 1, + insertText: '', }, - lineNumber: 9, - ruleDescription: 'Reversed link syntax', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md', - ruleNames: [ - 'MD011', - 'no-reversed-links', - ], - }, - ], - fixed: `# Heading␊ - ␊ - Text with Markdown Extra footnote[^1]␊ - ␊ - Text with (parenthesized footnote)[^2]␊ - ␊ - This is not a [parenthesized footnote](x^y) {MD011}␊ - ␊ - Nor [is this](z) {MD011}␊ - ␊ - [^1]: Footnote␊ - [^2]: Another footnote␊ - `, - } - -## markdown-in-html.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Expected: atx; Actual: atx_closed', - errorRange: null, - fixInfo: null, - lineNumber: 32, - ruleDescription: 'Heading style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', + lineNumber: 52, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD003', - 'heading-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorDetail: 'Expected: 0; Actual: 2', errorRange: [ 1, - 3, + 4, ], fixInfo: { - deleteCount: 1, - editColumn: 2, - insertText: '+', + deleteCount: 2, + editColumn: 1, + insertText: '', }, - lineNumber: 25, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 56, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: plus; Actual: dash', + errorDetail: 'Expected: 2; Actual: 4', errorRange: [ 1, - 2, + 6, ], fixInfo: { - deleteCount: 1, + deleteCount: 2, editColumn: 1, - insertText: '+', + insertText: '', }, - lineNumber: 26, - ruleDescription: 'Unordered list style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', + lineNumber: 56, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD004', - 'ul-style', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 1; Actual: 0', + errorDetail: 'Expected: 4; Actual: 6', errorRange: [ 1, - 2, + 8, ], - fixInfo: null, - lineNumber: 26, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '', + }, + lineNumber: 56, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', + errorDetail: 'Expected: 4; Actual: 7', errorRange: [ 1, - 3, + 9, ], fixInfo: { - deleteCount: 1, + deleteCount: 3, editColumn: 1, insertText: '', }, - lineNumber: 25, + lineNumber: 57, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -35730,316 +35215,516 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: '## Heading 2b {MD019} {MD022}', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 2; Actual: 5', errorRange: [ - 4, 1, + 7, ], fixInfo: { - deleteCount: 1, - editColumn: 4, + deleteCount: 3, + editColumn: 1, + insertText: '', }, - lineNumber: 24, - ruleDescription: 'Multiple spaces after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', + lineNumber: 58, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD019', - 'no-multiple-space-atx', + 'MD007', + 'ul-indent', ], }, { - errorContext: '### Heading 3b {MD003} {MD021...', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0; Actual: 3', errorRange: [ - 5, 1, + 5, ], fixInfo: { - deleteCount: 1, - editColumn: 5, + deleteCount: 3, + editColumn: 1, + insertText: '', }, - lineNumber: 32, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 59, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD007', + 'ul-indent', ], }, + ], + fixed: `# Lists on a Line␊ + ␊ + ## Correct␊ + ␊ + Text␊ + ␊ + * * Item␊ + ␊ + Text␊ + ␊ + * * * Item␊ + ␊ + Text␊ + ␊ + - + * Item␊ + ␊ + Text␊ + ␊ + - 1. Item␊ + ␊ + Text␊ + ␊ + - 1. + Item␊ + ␊ + Text␊ + ␊ + * * * Item␊ + * Item␊ + * Item␊ + * Item␊ + ␊ + ## Incorrect␊ + ␊ + Text␊ + ␊ + * * Item {MD007}␊ + ␊ + Text␊ + ␊ + * * * Item {MD007}␊ + ␊ + Text␊ + ␊ + - + * Item {MD007}␊ + ␊ + Text␊ + ␊ + - 1. Item {MD007}␊ + ␊ + Text␊ + ␊ + - 1. + Item {MD007}␊ + ␊ + Text␊ + ␊ + * * * Item {MD007}␊ + * Item {MD005} {MD007}␊ + * Item {MD005} {MD007}␊ + * Item {MD005} {MD007}␊ + ␊ + ␊ + `, + } + +## lists-with-commented-items.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Lists with Commented Items␊ + ␊ + Text␊ + ␊ + - item ␊ + - item ␊ + ␊ + - item ␊ + - item ␊ + ␊ + Text␊ + ␊ + - item ␊ + - item ␊ + ␊ + - item ␊ + - item ␊ + ␊ + Text␊ + ␊ + - item ␊ + ␊ + - item ␊ + ␊ + Text␊ + ␊ + - item ␊ + - item ␊ + ␊ + ␊ + - item ␊ + - item ␊ + ␊ + Text␊ + `, + } + +## lists-with-fenced-code-tight.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Lists with Fenced Code, Tight␊ + ␊ + - Item␊ + ␊ + \`\`\`text␊ + fence␊ + \`\`\`␊ + ␊ + - Item␊ + - Item␊ + ␊ + \`\`\`text␊ + fence␊ + \`\`\`␊ + ␊ + - Item␊ + ␊ + Text␊ + ␊ + - Item␊ + \`\`\`text␊ + fence␊ + \`\`\`␊ + - Item␊ + - Item␊ + \`\`\`text␊ + fence␊ + \`\`\`␊ + - Item␊ + ␊ + Text␊ + ␊ + 1. Item␊ + ␊ + \`\`\`text␊ + fence␊ + \`\`\`␊ + ␊ + 1. Item␊ + 1. Item␊ + ␊ + \`\`\`text␊ + fence␊ + \`\`\`␊ + ␊ + 1. Item␊ + ␊ + Text␊ + ␊ + 1. Item␊ + \`\`\`text␊ + fence␊ + \`\`\`␊ + 1. Item␊ + 1. Item␊ + \`\`\`text␊ + fence␊ + \`\`\`␊ + 1. Item␊ + ␊ + ␊ + `, + } + +## lists-with-fenced-code.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '...b {MD003} {MD021} {MD022} ###', + errorContext: '```text', errorDetail: null, - errorRange: [ - 41, - 1, - ], + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 41, + insertText: `␊ + `, + lineNumber: 21, }, - lineNumber: 32, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 21, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '## Heading 2b {MD019} {MD022}', - errorDetail: 'Expected: 1; Actual: 0; Below', + errorContext: '```', + errorDetail: null, errorRange: null, fixInfo: { insertText: `␊ `, - lineNumber: 25, + lineNumber: 24, }, - lineNumber: 24, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 23, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '### Heading 3b {MD003} {MD021} {MD022} ###', - errorDetail: 'Expected: 1; Actual: 0; Below', + errorContext: '```text', + errorDetail: null, errorRange: null, fixInfo: { insertText: `␊ `, - lineNumber: 33, + lineNumber: 26, }, - lineNumber: 32, - ruleDescription: 'Headings should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + lineNumber: 26, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD022', - 'blanks-around-headings', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '- Text *text* text * text * te...', + errorContext: '```', errorDetail: null, errorRange: null, fixInfo: { insertText: `␊ `, + lineNumber: 29, }, - lineNumber: 25, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + lineNumber: 28, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: 'https://example.com/', + errorContext: '```text', errorDetail: null, - errorRange: [ - 8, - 20, - ], + errorRange: null, fixInfo: { - deleteCount: 20, - editColumn: 8, - insertText: '', + insertText: `␊ + `, + lineNumber: 51, }, - lineNumber: 26, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + lineNumber: 51, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '* t', + errorContext: '```', errorDetail: null, - errorRange: [ - 21, - 3, - ], + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 22, + insertText: `␊ + `, + lineNumber: 54, }, - lineNumber: 25, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 53, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: 't *', + errorContext: '```text', errorDetail: null, - errorRange: [ - 26, - 3, - ], + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 27, + insertText: `␊ + `, + lineNumber: 56, }, - lineNumber: 25, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 56, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '** t', + errorContext: '```', errorDetail: null, - errorRange: [ - 35, - 4, - ], + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 37, + insertText: `␊ + `, + lineNumber: 59, }, - lineNumber: 25, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 58, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: 't **', + errorContext: '```shell', errorDetail: null, - errorRange: [ - 41, - 4, - ], + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 42, + insertText: `␊ + `, + lineNumber: 64, }, - lineNumber: 25, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + lineNumber: 64, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: '` text `', + errorContext: 'fence {MD031:64} {MD031:65} {M...', errorDetail: null, - errorRange: [ - 63, - 10, + errorRange: null, + fixInfo: null, + lineNumber: 65, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', + ruleNames: [ + 'MD031', + 'blanks-around-fences', ], + }, + { + errorContext: 'fence {MD031:64} {MD031:65} {M...', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 8, - editColumn: 64, - insertText: 'text', + insertText: `␊ + `, + lineNumber: 66, }, - lineNumber: 25, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 65, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: '[ link ]', + errorContext: '```', errorDetail: null, - errorRange: [ - 29, - 8, - ], - fixInfo: { - deleteCount: 6, - editColumn: 30, - insertText: 'link', - }, - lineNumber: 26, - ruleDescription: 'Spaces inside link text', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', + errorRange: null, + fixInfo: null, + lineNumber: 66, + ruleDescription: 'Fenced code blocks should have a language specified', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', ruleNames: [ - 'MD039', - 'no-space-in-links', + 'MD040', + 'fenced-code-language', ], }, ], - fixed: `# Markdown in HTML␊ + fixed: `# Lists with Fenced Code␊ ␊ - Text␊ + - Item␊ ␊ - + Item␊ + \`\`\`text␊ + fence␊ + \`\`\`␊ ␊ - Text␊ + - Item␊ + - Item␊ ␊ -

␊ - ## Heading 2a␊ - - Text *text* text * text * text ** text ** text \`text\` text \` text \` text␊ - - Text https://example.com/ [ link ](https://example.com/)␊ -

␊ + \`\`\`text␊ + fence␊ + \`\`\`␊ ␊ -

␊ - ### Heading 3a ###␊ - Text␊ -

␊ + - Item␊ ␊ Text␊ ␊ -

␊ + - Item␊ ␊ - ## Heading 2b {MD019} {MD022}␊ + \`\`\`text␊ + fence {MD031:21} {MD031:23}␊ + \`\`\`␊ ␊ - + Text *text* text *text* text **text** text \`text\` text \`text\` text {MD004} {MD007} {MD032} {MD037} {MD038}␊ - + Text [link](https://example.com/) {MD004} {MD005} {MD034} {MD039}␊ + - Item␊ + - Item␊ ␊ -

␊ + \`\`\`text␊ + fence {MD031:26} {MD031:28}␊ + \`\`\`␊ ␊ -

␊ + - Item␊ ␊ - ### Heading 3b {MD003} {MD021} {MD022} ###␊ + Text␊ + ␊ + 1. Item␊ + ␊ + \`\`\`text␊ + fence␊ + \`\`\`␊ + ␊ + 1. Item␊ + 1. Item␊ + ␊ + \`\`\`text␊ + fence␊ + \`\`\`␊ + ␊ + 1. Item␊ ␊ Text␊ ␊ -

␊ + 1. Item␊ ␊ - ␊ - `, - } - -## mathjax-scenarios.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Mathjax Scenarios␊ + \`\`\`text␊ + fence {MD031:51} {MD031:53}␊ + \`\`\`␊ ␊ - $1 * 2 * 3$␊ + 1. Item␊ + 1. Item␊ ␊ - $$1 * 2 * 3$$␊ + \`\`\`text␊ + fence {MD031:56} {MD031:58}␊ + \`\`\`␊ ␊ - $$1␊ - + 2␊ - + 3$$␊ + 1. Item␊ ␊ - $$␊ - 1␊ - $$$$␊ - 2␊ - $$␊ + Text␊ + ␊ + 1. Text␊ + ␊ + \`\`\`shell␊ + fence {MD031:64} {MD031:65} {MD032:65} {MD040:66}␊ + ␊ + \`\`\`␊ `, } -## MD001-MD010.md +## lists-with-nesting.md > Snapshot 1 @@ -36047,43 +35732,17 @@ Generated by [AVA](https://avajs.dev). 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/md001.md', - ruleNames: [ - 'MD001', - 'heading-increment', - ], - }, - { - 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/md003.md', - ruleNames: [ - 'MD003', - 'heading-style', - ], - }, - { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: dash', + errorDetail: 'Expected: dash; Actual: asterisk', errorRange: [ 1, - 2, + 3, ], fixInfo: { deleteCount: 1, - editColumn: 1, - insertText: '*', + editColumn: 2, + insertText: '-', }, - lineNumber: 10, + lineNumber: 97, ruleDescription: 'Unordered list style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ @@ -36093,58 +35752,62 @@ Generated by [AVA](https://avajs.dev). }, { errorContext: null, - errorDetail: 'Expected: 0; Actual: 1', + errorDetail: 'Expected: dash; Actual: asterisk', 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/md005.md', + fixInfo: { + deleteCount: 1, + editColumn: 2, + insertText: '-', + }, + lineNumber: 98, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Expected: 1; Actual: 0', + errorDetail: 'Expected: dash; Actual: asterisk', errorRange: [ 1, 3, ], fixInfo: { - deleteCount: 0, - editColumn: 1, - insertText: ' ', + deleteCount: 1, + editColumn: 2, + insertText: '-', }, - lineNumber: 23, - ruleDescription: 'Inconsistent indentation for list items at the same level', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', + lineNumber: 99, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Expected: (3); Actual: (4)', + errorDetail: 'Expected: 0; Actual: 2', errorRange: [ 1, - 5, + 4, ], fixInfo: { - deleteCount: 1, + deleteCount: 2, 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/md005.md', + lineNumber: 22, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD005', - 'list-indent', + 'MD007', + 'ul-indent', ], }, { @@ -36159,7 +35822,7 @@ Generated by [AVA](https://avajs.dev). editColumn: 1, insertText: '', }, - lineNumber: 8, + lineNumber: 97, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -36179,7 +35842,7 @@ Generated by [AVA](https://avajs.dev). editColumn: 1, insertText: '', }, - lineNumber: 12, + lineNumber: 98, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -36199,7 +35862,7 @@ Generated by [AVA](https://avajs.dev). editColumn: 1, insertText: '', }, - lineNumber: 13, + lineNumber: 99, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ @@ -36208,708 +35871,668 @@ Generated by [AVA](https://avajs.dev). ], }, { - errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 1', - errorRange: [ - 13, - 1, - ], + errorContext: '- one {MD032}', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 13, + insertText: `␊ + `, + lineNumber: 18, }, - lineNumber: 15, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + lineNumber: 17, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: null, - errorDetail: 'Column: 5', - errorRange: [ - 5, - 1, - ], + errorContext: '1. two {MD032}', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 5, - insertText: ' ', + insertText: `␊ + `, }, - lineNumber: 17, - ruleDescription: 'Hard tabs', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', + lineNumber: 18, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD010', - 'no-hard-tabs', + 'MD032', + 'blanks-around-lists', ], }, - ], - fixed: `## One␊ - ␊ - #### Two {MD001}␊ - ␊ - ### Three {MD003} ###␊ - ␊ - * Alpha␊ - * Bravo {MD005} {MD007}␊ - ␊ - * Charlie {MD004}␊ - ␊ - * Delta {MD007}␊ - * Echo {MD007}␊ - ␊ - Text {MD009}␊ - ␊ - Text text {MD010}␊ - ␊ - 1. One␊ - 2. Two␊ - 3. Three␊ - 4. Four␊ - 5. Five {MD005}␊ - 6. Six␊ - 7. Seven␊ - 8. Eight␊ - 9. Nine␊ - 10. Ten␊ - 11. Eleven {MD005}␊ - 12. Twelve␊ - ␊ - ␊ - `, - } - -## md003-escaped-trailing-hash.md - -> Snapshot 1 - - { - errors: [ { - errorContext: null, - errorDetail: 'Expected: atx; Actual: atx_closed', + errorContext: '1. two {MD032}', + errorDetail: null, errorRange: null, - fixInfo: null, - lineNumber: 15, - ruleDescription: 'Heading style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', + fixInfo: { + insertText: `␊ + `, + lineNumber: 19, + }, + lineNumber: 18, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD003', - 'heading-style', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: '...railing hash no space{MD020}##', + errorContext: '- three {MD032}', errorDetail: null, - errorRange: [ - 46, - 3, - ], + errorRange: null, fixInfo: { - deleteCount: 48, - editColumn: 1, - insertText: '### Heading with trailing hash no space{MD020} ##', + insertText: `␊ + `, }, - lineNumber: 17, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + lineNumber: 19, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: '...with trailing hash {MD020} \\##', + errorContext: '1. one {MD032}', errorDetail: null, - errorRange: [ - 41, - 2, + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 22, + }, + lineNumber: 21, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + ruleNames: [ + 'MD032', + 'blanks-around-lists', ], + }, + { + errorContext: '- two {MD007} {MD032}', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 42, - editColumn: 1, - insertText: '### Heading with trailing hash {MD020} \\# #', + insertText: `␊ + `, }, - lineNumber: 19, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + lineNumber: 22, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: '...ailing hash no space{MD020}\\##', + errorContext: '- two {MD007} {MD032}', errorDetail: null, - errorRange: [ - 48, - 2, + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 23, + }, + lineNumber: 22, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + ruleNames: [ + 'MD032', + 'blanks-around-lists', ], + }, + { + errorContext: '1. three {MD032}', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 49, - editColumn: 1, - insertText: '### Heading with trailing hash no space{MD020} \\# #', + insertText: `␊ + `, }, - lineNumber: 21, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + lineNumber: 23, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', + 'MD032', + 'blanks-around-lists', ], }, ], - fixed: `# Heading␊ + fixed: `# Lists with Nesting␊ ␊ - ## Heading with trailing hash \\#␊ + ## Excessive nesting␊ ␊ - ## Heading with trailing hash no space\\#␊ + - one␊ + 1. two␊ + 1. three␊ + - four␊ ␊ - ### Heading with trailing hash \\#\\#␊ + 1. one␊ + - two␊ + - three␊ + 1. four␊ ␊ - ### Heading with trailing hash no space\\#\\#␊ + ## Insufficient nesting␊ ␊ - ### Heading with trailing hash #\\#␊ + - one {MD032}␊ ␊ - ### Heading with trailing hash no space#\\#␊ + 1. two {MD032}␊ ␊ - ### Heading with trailing hash {MD003} ##␊ + - three {MD032}␊ ␊ - ### Heading with trailing hash no space{MD020} ##␊ + 1. one {MD032}␊ ␊ - ### Heading with trailing hash {MD020} \\# #␊ + - two {MD007} {MD032}␊ ␊ - ### Heading with trailing hash no space{MD020} \\# #␊ - `, - } - -## md004-list-items-in-blockquote.md - -> Snapshot 1 - - { - errors: [], - fixed: `# Heading␊ + 1. three {MD032}␊ ␊ - Text␊ + ## Correct nesting, same type␊ ␊ - - Item␊ - - Item␊ + - one␊ + - two␊ + - three␊ + - four␊ + - five␊ + - six␊ + - seven␊ ␊ - Text␊ + 1. one␊ + 1. two␊ + 1. three␊ + 1. four␊ + 1. five␊ + 1. six␊ + 1. seven␊ ␊ - >- Item␊ - >- Item␊ + ## Correct nesting, different types␊ ␊ - Text␊ + - one␊ + 1. two␊ + 1. three␊ + - four␊ ␊ - > - Item␊ - > - Item␊ + 1. one␊ + - two␊ + - three␊ + 1. four␊ ␊ - Text␊ + 1. one␊ + - two␊ + - three␊ ␊ - > > - Item␊ - > > - Item␊ + - one␊ + 1. two␊ + - three␊ + ␊ + - one␊ + - two␊ + 1. three␊ + ␊ + 1. one␊ + 1. two␊ + - three␊ + ␊ + 1. one␊ + - two␊ + 1. three␊ + ␊ + - one␊ + 1. two␊ + 1. three␊ + ␊ + - one␊ + 1. two␊ + - three␊ + 1. four␊ + - five␊ + 1. six␊ + - seven␊ + 1. eight␊ + ␊ + 1. one␊ + - two␊ + 1. three␊ + - four␊ + 1. five␊ + - six␊ + 1. seven␊ + - eight␊ ␊ - Text␊ + - 1. Item {MD004} {MD007}␊ + - 2. Item {MD004} {MD007}␊ + - 3. Item {MD004} {MD007}␊ `, } -## MD011-MD021.md +## lists_without_blank_lines.md > Snapshot 1 { errors: [ { - errorContext: null, - errorDetail: '(reversed)[link]', - errorRange: [ - 3, - 16, - ], + errorContext: '```', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 16, - editColumn: 3, - insertText: '[reversed](link)', + insertText: `␊ + `, + lineNumber: 64, }, - lineNumber: 5, - ruleDescription: 'Reversed link syntax', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md', + lineNumber: 64, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD011', - 'no-reversed-links', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: '(reversed)[link]', - errorRange: [ - 11, - 16, - ], + errorContext: '```', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 16, - editColumn: 11, - insertText: '[reversed](link)', + insertText: `␊ + `, + lineNumber: 73, }, - lineNumber: 26, - ruleDescription: 'Reversed link syntax', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md', + lineNumber: 72, + ruleDescription: 'Fenced code blocks should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md', ruleNames: [ - 'MD011', - 'no-reversed-links', + 'MD031', + 'blanks-around-fences', ], }, { - errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorContext: '* list {MD032}', + errorDetail: null, errorRange: null, fixInfo: { - deleteCount: -1, + insertText: `␊ + `, }, - lineNumber: 7, - ruleDescription: 'Multiple consecutive blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md', + lineNumber: 10, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD012', - 'no-multiple-blanks', + 'MD032', + 'blanks-around-lists', ], }, { - 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/md013.md', + errorContext: '* list {MD032}', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 11, + }, + lineNumber: 10, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD032', + 'blanks-around-lists', ], }, { - 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/md013.md', + errorContext: '+ list {MD032}', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `␊ + `, + }, + lineNumber: 12, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD013', - 'line-length', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: '$ command with no output {MD01...', + errorContext: '+ list {MD032}', errorDetail: null, - errorRange: [ - 5, - 2, - ], + errorRange: null, fixInfo: { - deleteCount: 2, - editColumn: 5, + insertText: `␊ + `, + lineNumber: 13, }, lineNumber: 12, - ruleDescription: 'Dollar signs used before commands without showing output', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md', + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD014', - 'commands-show-output', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: '##No space A {MD018}', + errorContext: '- list {MD032}', errorDetail: null, - errorRange: [ - 1, - 3, - ], + errorRange: null, fixInfo: { - editColumn: 3, - insertText: ' ', + insertText: `␊ + `, }, lineNumber: 14, - ruleDescription: 'No space after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md', + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD018', - 'no-missing-space-atx', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: '## Multiple spaces B {MD019}', + errorContext: '- list {MD032}', errorDetail: null, - errorRange: [ - 4, - 1, + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 15, + }, + lineNumber: 14, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + ruleNames: [ + 'MD032', + 'blanks-around-lists', ], + }, + { + errorContext: '1. list {MD032}', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 4, + insertText: `␊ + `, }, lineNumber: 16, - ruleDescription: 'Multiple spaces after hash on atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD019', - 'no-multiple-space-atx', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: '##No space C {MD020} ##', + errorContext: '1. list {MD032}', errorDetail: null, - errorRange: [ - 1, - 3, - ], + errorRange: null, fixInfo: { - deleteCount: 23, - editColumn: 1, - insertText: '## No space C {MD020} ##', + insertText: `␊ + `, + lineNumber: 17, }, - lineNumber: 18, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + lineNumber: 16, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: '## No space D {MD020}##', + errorContext: '* list {MD032}', errorDetail: null, - errorRange: [ - 21, - 3, - ], + errorRange: null, fixInfo: { - deleteCount: 23, - editColumn: 1, - insertText: '## No space D {MD020} ##', + insertText: `␊ + `, + lineNumber: 21, }, lineNumber: 20, - ruleDescription: 'No space inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD020', - 'no-missing-space-closed-atx', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: '## Multiple spaces E {MD021} ...', + errorContext: '1. list {MD032}', errorDetail: null, - errorRange: [ - 4, - 1, + errorRange: null, + fixInfo: { + insertText: `␊ + `, + }, + lineNumber: 24, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + ruleNames: [ + 'MD032', + 'blanks-around-lists', ], + }, + { + errorContext: '* list {MD032} {MD031:64}', + errorDetail: null, + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 4, + insertText: `␊ + `, + lineNumber: 64, }, - lineNumber: 22, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 63, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: '... Multiple spaces F {MD021} ##', + errorContext: '* list {MD032} {MD031:72}', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `␊ + `, + }, + lineNumber: 73, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + ruleNames: [ + 'MD032', + 'blanks-around-lists', + ], + }, + { + errorContext: null, errorDetail: null, errorRange: [ - 30, + 45, 1, ], fixInfo: { - deleteCount: 1, - editColumn: 30, + editColumn: 46, + insertText: `␊ + `, }, - lineNumber: 24, - ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', + lineNumber: 98, + ruleDescription: 'Files should end with a single newline character', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md', ruleNames: [ - 'MD021', - 'no-multiple-space-closed-atx', + 'MD047', + 'single-trailing-newline', ], }, ], - fixed: `# Top level heading␊ + fixed: `# lists_without_blank_lines␊ ␊ - ␊ + * list (on first line)␊ ␊ - A [reversed](link) example. {MD011}␊ + text␊ ␊ - 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789␊ + * list␊ ␊ - ## 123456789 123456789 123456789 123456789 123456789 123456789␊ + ---␊ ␊ - command with no output {MD014}␊ + * list {MD032}␊ ␊ - ## No space A {MD018}␊ + ---␊ ␊ - ## Multiple spaces B {MD019}␊ + + list {MD032}␊ ␊ - ## No space C {MD020} ##␊ + ---␊ ␊ - ## No space D {MD020} ##␊ + - list {MD032}␊ ␊ - ## Multiple spaces E {MD021} ##␊ + ---␊ ␊ - ## Multiple spaces F {MD021} ##␊ + 1. list {MD032}␊ ␊ - *Another* [reversed](link) example. {MD011}␊ + ---␊ ␊ - {MD012:7} {MD013:8} {MD013:10}␊ + * list␊ + * list {MD032}␊ + ␊ + ---␊ + ␊ + text␊ + ␊ + 1. list {MD032}␊ + 2. list␊ + ␊ + text␊ + ␊ + * list␊ + * list␊ + * list␊ + ␊ + text␊ + ␊ + * list␊ + with hanging indent␊ + * list␊ + with hanging indent␊ + * list␊ + with hanging indent␊ + ␊ + Note: list without hanging indent violates MD032␊ + ␊ + * list␊ + ␊ + item with blank lines␊ + ␊ + * list␊ + ␊ + item with blank lines␊ + ␊ + text␊ + ␊ + \`\`\`js␊ + /*␊ + * code block␊ + * not a list␊ + */␊ + \`\`\`␊ + ␊ + text␊ + ␊ + * list {MD032} {MD031:64}␊ + ␊ + \`\`\`␊ + code␊ + \`\`\`␊ + ␊ + text␊ + ␊ + \`\`\`␊ + code␊ + \`\`\`␊ + ␊ + * list {MD032} {MD031:72}␊ + ␊ + text␊ + ␊ +

␊ + 1. Not a␊ + 2. list␊ +

␊ + ␊ +

1. Not a list

␊ + ␊ +

␊ + * Not a␊ + * list␊ +

␊ + ␊ +

* Not a list

␊ ␊ ␊ - `, - } - -## md022-line-number-out-of-range.md - -> Snapshot 1 - - { - errors: [], - fixed: `--␊ - ␊ - `, - } - -## 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/md022.md', - ruleNames: [ - 'MD022', - 'blanks-around-headings', - ], - }, - { - errorContext: ' # Heading', - errorDetail: null, - errorRange: [ - 1, - 1, - ], - 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/md023.md', - ruleNames: [ - 'MD023', - 'heading-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/md024.md', - ruleNames: [ - 'MD024', - 'no-duplicate-heading', - ], - }, - { - 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/md025.md', - ruleNames: [ - 'MD025', - 'single-title', - 'single-h1', - ], - }, + ␊ + * list (on last line without newline) {MD047}␊ + `, + } + +## long-heading-exceptions.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Punctuation: \'.\'', - errorRange: [ - 27, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 27, - }, - lineNumber: 6, - ruleDescription: 'Trailing punctuation in heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md', - ruleNames: [ - 'MD026', - 'no-trailing-punctuation', - ], - }, - { - errorContext: '> Multiple spaces {MD027}', - errorDetail: null, - errorRange: [ - 3, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 3, - }, - lineNumber: 8, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', - ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', - ], - }, - { - errorContext: '> > Multiple spaces, multiple...', - errorDetail: null, - errorRange: [ - 5, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 5, - }, - lineNumber: 15, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', - ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', - ], - }, - { - errorContext: '> > > Multiple spaces, multip...', - errorDetail: null, - errorRange: [ - 7, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 7, - }, - lineNumber: 17, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', - ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', - ], - }, - { - errorContext: '> > > Multiple spaces, multip...', - errorDetail: null, + errorDetail: 'Expected: 80; Actual: 127', errorRange: [ - 3, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 3, - }, - lineNumber: 19, - ruleDescription: 'Multiple spaces after blockquote symbol', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', - ruleNames: [ - 'MD027', - 'no-multiple-space-blockquote', + 81, + 47, ], - }, - { - 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/md028.md', + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD028', - 'no-blanks-blockquote', + 'MD013', + 'line-length', ], }, { errorContext: null, - errorDetail: 'Expected: 2; Actual: 3; Style: 1/2/3', + errorDetail: 'Expected: 80; Actual: 127', errorRange: [ - 1, - 4, + 81, + 47, ], fixInfo: null, - lineNumber: 13, - ruleDescription: 'Ordered list item prefix', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md029.md', + lineNumber: 15, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD029', - 'ol-prefix', + 'MD013', + 'line-length', ], }, { errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorDetail: 'Expected: 80; Actual: 127', errorRange: [ - 1, - 4, + 81, + 47, ], - fixInfo: { - deleteCount: 2, - editColumn: 3, - insertText: ' ', - }, - lineNumber: 13, - ruleDescription: 'Spaces after list markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', + fixInfo: null, + lineNumber: 21, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD030', - 'list-marker-space', + 'MD013', + 'line-length', ], }, ], @@ -36917,28 +36540,123 @@ Generated by [AVA](https://avajs.dev). ␊ Text␊ ␊ - # Heading␊ + ## Heading heading heading heading heading heading heading heading heading heading heading heading heading heading heading heading␊ ␊ - ## Another heading {MD026}␊ + Text␊ ␊ - > Multiple spaces {MD027}␊ + Text text text text text text text text text text text text text text text text text text text text text text text text {MD013}␊ ␊ - > Blank line above␊ + ## Heading heading␊ ␊ - 1. Alpha␊ - 3. Beta {MD029} {MD030}␊ + Text␊ ␊ - > > Multiple spaces, multiple blockquotes {MD027}␊ - > >␊ - > > > Multiple spaces, multiple blockquotes {MD027}␊ - > > >␊ - > > > Multiple spaces, multiple blockquotes {MD027}␊ + Text text text text text text text text text text text text text text text text text text text text text text text text {MD013}␊ ␊ - {MD022:1} {MD023:1} {MD024:4} {MD025:4} {MD028:9}␊ + ### Heading heading heading heading heading heading heading heading heading heading heading heading heading heading heading heading heading␊ + ␊ + Text␊ + ␊ + Text text text text text text text text text text text text text text text text text text text text text text text text {MD013}␊ + ␊ + ␊ `, } -## MD030-warning-message.md +## long-lines-long-reference-definitions-stern.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Long Lines Long Reference Definitions Stern␊ + ␊ + [Link][short-reference-definition]␊ + ␊ + [Link][long-reference-definition]␊ + ␊ + [Link][long-reference-definition-split]␊ + ␊ + ![Image][long-reference-definition-image]␊ + ␊ + [short-reference-definition]: https://example.com/short␊ + [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ + [long-reference-definition-split]:␊ + https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/long␊ + [long-reference-definition-image]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/image␊ + ␊ + [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ + ␊ + ␊ + `, + } + +## long-lines-long-reference-definitions-strict.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Long Lines Long Reference Definitions Strict␊ + ␊ + [Link][short-reference-definition]␊ + ␊ + [Link][long-reference-definition]␊ + ␊ + [Link][long-reference-definition-split]␊ + ␊ + ![Image][long-reference-definition-image]␊ + ␊ + [short-reference-definition]: https://example.com/short␊ + [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ + [long-reference-definition-split]:␊ + https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/long␊ + [long-reference-definition-image]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/image␊ + ␊ + [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ + ␊ + ␊ + `, + } + +## long-lines-long-reference-definitions.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Long Lines Long Reference Definitions␊ + ␊ + [Link][short-reference-definition]␊ + ␊ + [Link][long-reference-definition]␊ + ␊ + [Link][long-reference-definition-split]␊ + ␊ + ![Image][long-reference-definition-image]␊ + ␊ + [short-reference-definition]: https://example.com/short␊ + [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ + [long-reference-definition-split]:␊ + https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/long␊ + [long-reference-definition-image]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/image␊ + ␊ + [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ + `, + } + +## long-lines-short-code.md > Snapshot 1 @@ -36946,1179 +36664,1002 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorDetail: 'Expected: 80; Actual: 92', errorRange: [ - 1, - 3, + 81, + 12, ], - fixInfo: { - deleteCount: 2, - editColumn: 2, - insertText: ' ', - }, - lineNumber: 19, - ruleDescription: 'Spaces after list markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD030', - 'list-marker-space', + 'MD013', + 'line-length', ], }, { errorContext: null, - errorDetail: 'Expected: 1; Actual: 2', + errorDetail: 'Expected: 30; Actual: 46', errorRange: [ - 1, - 4, + 31, + 16, ], - fixInfo: { - deleteCount: 2, - editColumn: 3, - insertText: ' ', - }, - lineNumber: 21, - ruleDescription: 'Spaces after list markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md', + fixInfo: null, + lineNumber: 13, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD030', - 'list-marker-space', + 'MD013', + 'line-length', ], }, { - errorContext: '-', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 4, - }, - lineNumber: 3, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', - ruleNames: [ - 'MD032', - 'blanks-around-lists', + errorContext: null, + errorDetail: 'Expected: 30; Actual: 47', + errorRange: [ + 31, + 17, ], - }, - { - errorContext: '1.', - errorDetail: null, - errorRange: null, - fixInfo: { - insertText: `␊ - `, - lineNumber: 7, - }, - lineNumber: 6, - ruleDescription: 'Lists should be surrounded by blank lines', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', + fixInfo: null, + lineNumber: 24, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD032', - 'blanks-around-lists', + 'MD013', + 'line-length', ], }, ], - fixed: `#␊ + fixed: `# Long Lines, Short Code␊ ␊ - -␊ + Text text text text text text text text text text text text text text text␊ ␊ - (bare list item marker {MD032:3})␊ + Text text text text text text text text text text text text text text text text text {MD013}␊ ␊ - 1.␊ + Text␊ ␊ - (bare list item marker {MD032:6})␊ + Code code code code␊ ␊ - -a␊ - (not a list item)␊ + Text␊ ␊ - 1.a␊ - (not a list item)␊ + Code code code code code code code {MD013}␊ ␊ - - a␊ + Text␊ ␊ - 1. a␊ + \`\`\`text␊ + Code code code code code␊ + \`\`\`␊ ␊ - - a {MD030}␊ + Text␊ ␊ - 1. a {MD030}␊ + \`\`\`text␊ + Code code code code code code code code {MD013}␊ + \`\`\`␊ + ␊ + ␊ `, } -## MD031-MD040.md +## long-lines-short-headings.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/md031.md', - ruleNames: [ - 'MD031', - 'blanks-around-fences', - ], - }, - { - errorContext: '* List {MD032}', - 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/md032.md', - ruleNames: [ - 'MD032', - 'blanks-around-lists', - ], - }, - { - errorContext: '* List {MD032}', - 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/md032.md', - ruleNames: [ - 'MD032', - 'blanks-around-lists', - ], - }, { errorContext: null, - errorDetail: 'Element: hr', + errorDetail: 'Expected: 80; Actual: 92', errorRange: [ - 7, - 5, + 81, + 12, ], fixInfo: null, - lineNumber: 6, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 3, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD013', + 'line-length', ], }, { - errorContext: 'https://example.com', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 30; Actual: 38', errorRange: [ - 6, - 19, + 31, + 8, ], - fixInfo: { - deleteCount: 19, - editColumn: 6, - insertText: '', - }, - lineNumber: 8, - ruleDescription: 'Bare URL used', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', + fixInfo: null, + lineNumber: 9, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD034', - 'no-bare-urls', + 'MD013', + 'line-length', ], }, { 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/md035.md', - ruleNames: [ - 'MD035', - 'hr-style', + errorDetail: 'Expected: 30; Actual: 36', + errorRange: [ + 31, + 6, ], - }, - { - errorContext: 'Emphasis {MD036}', - 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/md036.md', - ruleNames: [ - 'MD036', - 'no-emphasis-as-heading', + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + ruleNames: [ + 'MD013', + 'line-length', ], }, { - errorContext: '* i', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 30; Actual: 53', errorRange: [ - 7, - 3, + 31, + 23, ], - fixInfo: { - deleteCount: 1, - editColumn: 8, - }, - lineNumber: 15, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + fixInfo: null, + lineNumber: 17, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD013', + 'line-length', ], }, + ], + fixed: `# Long Lines, Short Headings␊ + ␊ + Text text text text text text text text text text text text text text text text text {MD013}␊ + ␊ + ## Short heading text text text␊ + ␊ + Text␊ + ␊ + ## Long heading text text text {MD013}␊ + ␊ + Text␊ + ␊ + ## Long heading text text {MD013} ##␊ + ␊ + Text␊ + ␊ + Long heading of text text text text text text {MD013}␊ + -----------------------------------------------------␊ + ␊ + Text␊ + ␊ + ␊ + `, + } + +## long-lines-stern.md + +> Snapshot 1 + + { + errors: [ { - errorContext: 'e *', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 82', errorRange: [ - 14, - 3, + 81, + 2, ], - fixInfo: { - deleteCount: 1, - editColumn: 15, - }, - lineNumber: 15, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD013', + 'line-length', ], }, { - errorContext: '* s', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 81', errorRange: [ - 17, - 3, + 81, + 1, ], - fixInfo: { - deleteCount: 1, - editColumn: 18, - }, - lineNumber: 31, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD013', + 'line-length', ], }, { - errorContext: 'e *', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 87', errorRange: [ - 21, - 3, + 81, + 7, ], - fixInfo: { - deleteCount: 1, - editColumn: 22, - }, - lineNumber: 32, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + fixInfo: null, + lineNumber: 13, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD013', + 'line-length', ], }, { - errorContext: 'e **', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 30; Actual: 31', errorRange: [ - 22, - 4, + 31, + 1, ], - fixInfo: { - deleteCount: 1, - editColumn: 23, - }, - lineNumber: 33, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + fixInfo: null, + lineNumber: 17, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD013', + 'line-length', ], }, { - errorContext: '_ s', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 20; Actual: 21', errorRange: [ - 17, - 3, + 21, + 1, ], - fixInfo: { - deleteCount: 1, - editColumn: 18, - }, - lineNumber: 34, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + fixInfo: null, + lineNumber: 26, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD013', + 'line-length', ], }, { - errorContext: '__ s', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 84', errorRange: [ - 19, + 81, 4, ], - fixInfo: { - deleteCount: 1, - editColumn: 21, - }, - lineNumber: 35, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + fixInfo: null, + lineNumber: 32, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD013', + 'line-length', ], }, { - errorContext: 'e __', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 84', errorRange: [ - 25, + 81, 4, ], - fixInfo: { - deleteCount: 1, - editColumn: 26, - }, + fixInfo: null, lineNumber: 35, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD013', + 'line-length', ], }, { - errorContext: '* i', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 85', errorRange: [ - 7, - 3, + 81, + 5, ], - fixInfo: { - deleteCount: 1, - editColumn: 8, - }, - lineNumber: 62, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + fixInfo: null, + lineNumber: 38, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD013', + 'line-length', ], }, { - errorContext: 'e *', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 84', errorRange: [ - 10, - 3, + 81, + 4, ], - fixInfo: { - deleteCount: 1, - editColumn: 11, - }, - lineNumber: 63, - ruleDescription: 'Spaces inside emphasis markers', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', + fixInfo: null, + lineNumber: 42, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD037', - 'no-space-in-emphasis', + 'MD013', + 'line-length', ], }, + ], + fixed: `# Long Lines Stern␊ + ␊ + 12345678901234567890123456789012345678901234567890123456789012345678901234567890␊ + ␊ + This line is too long. text text text text text text text text text text text text␊ + ␊ + This line is barely too long. text text text text text text text text text text t␊ + ␊ + This line is just okay. text text text text text text text text text text text t␊ + ␊ + This line is not a problem. text text text text text text text text text text t␊ + ␊ + This line is too long. texttexttexttexttexttexttexttexttexttexttexttexttexttexttexttext␊ + ␊ + ThisLineIsOkaytexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttext␊ + ␊ + ## This heading is way too long␊ + ␊ + ## This heading is long but ok␊ + ␊ + ## This heading is short + ok␊ + ␊ + ## ThisTooLongHeadingIsOkaytext␊ + ␊ + \`\`\`text␊ + This code is too long␊ + This code is a-okay.␊ + This code is short.␊ + ThisTooLongCodeIsOkay.␊ + \`\`\`␊ + ␊ + * This list item line is too long. text text text text text text text text text text␊ + * This list item line is okay. text text text text text text text text text␊ + This list item line is okay. text text text text text text text text text␊ + This list item line is too long. text text text text text text text text text text␊ + ThisTooLongListItemLineIsOkaytexttexttexttexttexttexttexttexttexttexttexttexttext␊ + ␊ + > This blockquote line is too long. text text text text text text text text text text␊ + > This blockquote line is okay. text text text text text text text text text␊ + > ThisTooLongBlockquoteLineIsOkaytexttexttexttexttexttexttexttexttexttexttexttexttext␊ + >␊ + > > This double blockquote line is too long. text text text text text text text text␊ + > > This double blockquote line is okay. text text text text text text text␊ + > > ThisTooLongDoubleBlockquoteLineIsOkaytexttexttexttexttexttexttexttexttexttexttext␊ + ␊ + ThisLineIsTooLongButIsNotReportedBecauseItLooksLikePartOfAListItemtexttexttexttext␊ + ␊ + {MD013:5}␊ + {MD013:7}␊ + {MD013:13}␊ + {MD013:17}␊ + {MD013:26}␊ + {MD013:32}␊ + {MD013:35}␊ + {MD013:38}␊ + {MD013:42}␊ + ␊ + ␊ + `, + } + +## long-lines-strict.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '` inside`', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 82', errorRange: [ - 7, - 9, + 81, + 2, ], - 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/md038.md', + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD013', + 'line-length', ], }, { - errorContext: '`` inside``', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 86', errorRange: [ - 7, - 11, + 81, + 6, ], - 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/md038.md', + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD013', + 'line-length', ], }, { - errorContext: '` code`', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 81', errorRange: [ - 19, - 7, + 81, + 1, ], - 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/md038.md', + fixInfo: null, + lineNumber: 9, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD013', + 'line-length', ], }, { - errorContext: '` elements`', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 30; Actual: 31', errorRange: [ - 26, - 11, + 31, + 1, ], - 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/md038.md', + fixInfo: null, + lineNumber: 15, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD013', + 'line-length', ], }, { - errorContext: '`` code``', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 20; Actual: 21', errorRange: [ 21, - 9, + 1, ], - 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/md038.md', + fixInfo: null, + lineNumber: 22, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD013', + 'line-length', ], }, + ], + fixed: `# Long Lines Strict␊ + ␊ + 12345678901234567890123456789012345678901234567890123456789012345678901234567890␊ + ␊ + This line is too long. text text text text text text text text text text text text␊ + ␊ + This line is way too long. text text text text text text text text text text text text␊ + ␊ + This line is barely too long. text text text text text text text text text text t␊ + ␊ + This line is just okay. text text text text text text text text text text text t␊ + ␊ + This line is not a problem. text text text text text text text text text text t␊ + ␊ + ## This heading is way too long␊ + ␊ + ## This heading is long but ok␊ + ␊ + ## This heading is short + ok␊ + ␊ + \`\`\`text␊ + This code is too long␊ + This code is a-okay.␊ + This code is short.␊ + \`\`\`␊ + ␊ + {MD013:5}␊ + {MD013:7}␊ + {MD013:9}␊ + {MD013:15}␊ + {MD013:22}␊ + ␊ + ␊ + `, + } + +## long_lines.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '`` ` embedded backtick``', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 97', errorRange: [ - 1, - 25, + 81, + 17, ], - 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/md038.md', + fixInfo: null, + lineNumber: 3, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD013', + 'line-length', ], }, { - errorContext: '``embedded backtick` ``', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 110', errorRange: [ - 1, - 24, + 81, + 30, ], - 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/md038.md', + fixInfo: null, + lineNumber: 11, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD013', + 'line-length', ], }, { - errorContext: '` code {MD038}', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 117', errorRange: [ - 6, - 14, + 81, + 37, ], - fixInfo: { - deleteCount: 13, - editColumn: 7, - insertText: 'code {MD038}', - }, - lineNumber: 38, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 14, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD013', + 'line-length', ], }, { - errorContext: 'span `', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 107', errorRange: [ - 1, - 7, + 81, + 27, ], - 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/md038.md', + fixInfo: null, + lineNumber: 17, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD013', + 'line-length', ], }, { - errorContext: 'span code ```', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 112', errorRange: [ - 1, - 13, + 81, + 32, ], - 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/md038.md', + fixInfo: null, + lineNumber: 19, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD013', + 'line-length', ], }, { - errorContext: '```` code {MD038}', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 104', errorRange: [ - 11, - 17, + 81, + 24, ], - fixInfo: { - deleteCount: 13, - editColumn: 15, - insertText: 'code {MD038}', - }, - lineNumber: 55, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + fixInfo: null, + lineNumber: 21, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD013', + 'line-length', ], }, { - errorContext: '[ inside ]', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 109', errorRange: [ - 7, - 10, + 81, + 29, ], - 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/md039.md', + fixInfo: null, + lineNumber: 29, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD039', - 'no-space-in-links', + 'MD013', + 'line-length', ], }, { - errorContext: '[ space]', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 96', errorRange: [ - 6, - 8, + 81, + 16, ], - 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/md039.md', + fixInfo: null, + lineNumber: 64, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD039', - 'no-space-in-links', + 'MD013', + 'line-length', ], }, { - errorContext: '[space ]', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 96', errorRange: [ - 26, - 8, + 81, + 16, ], - 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/md039.md', + fixInfo: null, + lineNumber: 68, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD039', - 'no-space-in-links', + 'MD013', + 'line-length', ], }, { - errorContext: '[ space ]', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 96', errorRange: [ - 46, - 9, + 81, + 16, ], - 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/md039.md', + fixInfo: null, + lineNumber: 69, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD039', - 'no-space-in-links', + 'MD013', + 'line-length', ], }, { - errorContext: '```', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 105', + errorRange: [ + 81, + 25, + ], fixInfo: null, - lineNumber: 21, - ruleDescription: 'Fenced code blocks should have a language specified', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', + lineNumber: 72, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD040', - 'fenced-code-language', + 'MD013', + 'line-length', ], }, - ], - fixed: `\`\`\`js␊ - debugger;␊ - \`\`\`␊ - ␊ - * List {MD032}␊ - ␊ - Inline
HTML {MD033}␊ - ␊ - Bare link {MD034}␊ - ␊ - ---␊ - ***␊ - ␊ - *Emphasis {MD036}*␊ - ␊ - Space *inside* emphasis {MD037}␊ - ␊ - Space \`inside\` code span {MD038}␊ - ␊ - Space [inside](link) text {MD039}␊ - ␊ - \`\`\`␊ - \`\`\`␊ - ␊ - space \`\`inside\`\` code {MD038}␊ - space \`inside\` of \`code\` elements {MD038}␊ - \`space\` inside \`of\` code \`elements\` {MD038}␊ - space \`\`inside\`\` of \`\`code\`\` elements {MD038}␊ - \`\` \` embedded backtick\`\` {MD038}␊ - \`\`embedded backtick\` \`\` {MD038}␊ - ␊ - some *space* in *some* emphasis {MD037}␊ - some *space* in *some* emphasis {MD037}␊ - some *space* in **some** emphasis {MD037}␊ - some _space_ in _some_ emphasis {MD037}␊ - some __space__ in __some__ emphasis {MD037}␊ - ␊ - Text␊ - text \`code {MD038}␊ - span\` text␊ - text.␊ - ␊ - Text␊ - text \`code␊ - span\` text {MD038}␊ - text.␊ - ␊ - * List {MD032}␊ - ␊ - ---␊ - ␊ - Text␊ - text \`\`\`code␊ - span code␊ - span code\`\`\` text {MD038}␊ - text␊ - text text \`\`\`\`code {MD038}␊ - span code␊ - span\`\`\`\` text␊ - text.␊ - ␊ - Text [space](link) text [space](link) text [space](link) text. {MD039}␊ - ␊ - Space *inside {MD037}␊ - multi-line* emphasis. {MD037}␊ - ␊ - {MD031:3} {MD035:11} {MD040:21}␊ - ␊ - ␊ - `, - } - -## md033-cannot-read-property-of-undefined.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Element: br', + errorDetail: 'Expected: 80; Actual: 105', errorRange: [ - 1, - 5, + 81, + 25, ], fixInfo: null, - lineNumber: 5, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 74, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD013', + 'line-length', ], }, { errorContext: null, - errorDetail: 'Element: i', - errorRange: [ - 11, - 3, - ], + errorDetail: 'Expected: indented; Actual: fenced', + errorRange: null, fixInfo: null, - lineNumber: 7, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + lineNumber: 13, + ruleDescription: 'Code block style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD046', + 'code-block-style', ], }, { errorContext: null, - errorDetail: 'Element: br', + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ 1, - 5, + 1, ], - fixInfo: null, - lineNumber: 9, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '*', + }, + lineNumber: 35, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD049', + 'emphasis-style', ], }, { errorContext: null, - errorDetail: 'Element: b', + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ - 11, - 3, + 114, + 1, ], - fixInfo: null, - lineNumber: 11, - ruleDescription: 'Inline HTML', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + fixInfo: { + deleteCount: 1, + editColumn: 114, + insertText: '*', + }, + lineNumber: 35, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD033', - 'no-inline-html', + 'MD049', + 'emphasis-style', ], }, - ], - fixed: `# Heading␊ - ␊ - Head | Head␊ - --------|------------␊ -
| {MD033}␊ - ␊ - {MD033} | Head␊ - --------|------------␊ -
| {MD033}␊ - text | text␊ - {MD033} | text␊ - ␊ - ␊ - `, - } - -## md036-emphasis-as-heading.md - -> Snapshot 1 - - { - errors: [ { - errorContext: 'Emphasis as heading {MD036}', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 7, - ruleDescription: 'Emphasis used instead of a heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md', + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 1, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 1, + insertText: '*', + }, + lineNumber: 41, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD036', - 'no-emphasis-as-heading', + 'MD049', + 'emphasis-style', ], }, { - errorContext: 'Emphasis as heading {MD036}', - errorDetail: null, - errorRange: null, - fixInfo: null, - lineNumber: 17, - ruleDescription: 'Emphasis used instead of a heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md', - ruleNames: [ - 'MD036', - 'no-emphasis-as-heading', + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 129, + 1, ], - }, - ], - fixed: `# Simplified examples from issue #26␊ - ␊ - * Item␊ - * **Emphasized item**␊ - * Item␊ - ␊ - _Emphasis as heading {MD036}_␊ - ␊ - 1. **Emphasized item**␊ - * Item␊ - * Item␊ - 1. **Emphasized item**␊ - * Item␊ - * **Emphasized item**␊ - * Item␊ - ␊ - **Emphasis as heading {MD036}**␊ - `, - } - -## md040-allowed_languages.md - -> Snapshot 1 - - { - errors: [ + fixInfo: { + deleteCount: 1, + editColumn: 129, + insertText: '*', + }, + lineNumber: 41, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + ruleNames: [ + 'MD049', + 'emphasis-style', + ], + }, { - errorContext: '` scss`', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ - 17, - 7, + 3, + 1, ], fixInfo: { - deleteCount: 5, - editColumn: 18, - insertText: 'scss', + deleteCount: 1, + editColumn: 3, + insertText: '*', }, - lineNumber: 39, - ruleDescription: 'Spaces inside code span elements', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', + lineNumber: 43, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD038', - 'no-space-in-code', + 'MD049', + 'emphasis-style', ], }, { errorContext: null, - errorDetail: '"html" is not allowed', - errorRange: null, - fixInfo: null, - lineNumber: 5, - ruleDescription: 'Fenced code blocks should have a language specified', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 127, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 127, + insertText: '*', + }, + lineNumber: 43, + ruleDescription: 'Emphasis style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ - 'MD040', - 'fenced-code-language', + 'MD049', + 'emphasis-style', ], }, { errorContext: null, - errorDetail: '"css" is not allowed', - errorRange: null, - fixInfo: null, - lineNumber: 11, - ruleDescription: 'Fenced code blocks should have a language specified', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 1, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 1, + insertText: '**', + }, + lineNumber: 39, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD040', - 'fenced-code-language', + 'MD050', + 'strong-style', ], }, { errorContext: null, - errorDetail: '"MD" is not allowed', - errorRange: null, - fixInfo: null, - lineNumber: 17, - ruleDescription: 'Fenced code blocks should have a language specified', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', + errorDetail: 'Expected: asterisk; Actual: underscore', + errorRange: [ + 110, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 110, + insertText: '**', + }, + lineNumber: 39, + ruleDescription: 'Strong style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ - 'MD040', - 'fenced-code-language', + 'MD050', + 'strong-style', ], }, { - errorContext: null, - errorDetail: '"ts" is not allowed', - errorRange: null, + errorContext: '[Link to broken label][notlabel]', + errorDetail: 'Missing link or image reference definition: "notlabel"', + errorRange: [ + 1, + 32, + ], fixInfo: null, - lineNumber: 23, - ruleDescription: 'Fenced code blocks should have a language specified', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', + lineNumber: 27, + ruleDescription: 'Reference links and images should use a label that is defined', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md', ruleNames: [ - 'MD040', - 'fenced-code-language', + 'MD052', + 'reference-links-images', ], }, ], - fixed: `# md040-allowed_languages.md␊ + fixed: `# Long Lines␊ ␊ - Code block with \`html\` not in allowed_languages:␊ + This is a very very very very very very very very very very very very very very long line {MD013}␊ ␊ - \`\`\`html␊ -

markdownlint

{MD040:5}␊ - \`\`\`␊ + This line however, while very long, doesn't have whitespace after the 80th columnwhichallowsforURLsandotherlongthings.␊ ␊ - Code block with \`css\` not in allowed_languages:␊ + [This long line is comprised entirely of a link](https://example.com "This is the long link's title")␊ ␊ - \`\`\`css␊ - body {} {MD040:11}␊ - \`\`\`␊ + > [This long line is comprised entirely of a link](https://example.com "This is the long link's title")␊ ␊ - Code block with \`MD\` (uppercase) not in allowed_languages:␊ + [This long line is comprised entirely of a link](https://example.com "But is inside a code block") {MD013}␊ ␊ - \`\`\`MD␊ - hello md {MD040:17}␊ + \`\`\`markdown␊ + [This long line is comprised entirely of a link](https://example.com "But is inside a code block") {MD013} {MD046:13}␊ \`\`\`␊ ␊ - Code block with \`ts\` (lowercase) not in allowed_languages:␊ + This [long line is comprised mostly of a link](https://example.com "This is the long link's title") {MD013}␊ ␊ - \`\`\`ts␊ - let foo = "bar"; {MD040:23}␊ - \`\`\`␊ + [This long line is comprised mostly of a link](https://example.com "This is the long link's title") text {MD013}␊ ␊ - Code block with \`js\` in allowed_languages:␊ + This long line includes a simple [reference][label] link and is long enough to violate the rule. {MD013}␊ ␊ - \`\`\`js␊ - console.log('markdownlint')␊ - \`\`\`␊ + [This long line is comprised entirely of a reference link and is long enough to violate the rule][label]␊ ␊ - Code block with \`js foo\` allowed_languages:␊ + [label]: https://example.org "Title for a link reference that is itself long enough to violate the rule"␊ ␊ - \`\`\`js foo␊ - console.log('bar')␊ - \`\`\`␊ + [Link to broken label][notlabel] {MD052}␊ ␊ - Code block with \`scss\` (prefixed by a space) in allowed_languages: {MD038}␊ + [notlabel\\]: notlink "Invalid syntax for a link label because the right bracket is backslash-escaped {MD013}"␊ ␊ - \`\`\` scss␊ - body {␊ - h1 {␊ - color: red;␊ - }␊ - }␊ - \`\`\`␊ + [](https://example.com "This long line is comprised entirely of a link with empty text and a non-empty title")␊ ␊ - Code block with \`md\` (lowercase) in allowed_languages:␊ + *[This long line is comprised of an emphasized link](https://example.com "This is the long link's title")*␊ ␊ - \`\`\`md␊ - hello md␊ - \`\`\`␊ + *[This long line is comprised of an emphasized link {MD049}](https://example.com "This is the long link's title")*␊ ␊ - Code block with \`TS\` (uppercase) in allowed_languages:␊ + **[This long line is comprised of a bolded link](https://example.com "This is the long link's title")**␊ ␊ - \`\`\`TS␊ - body {␊ - h1 {␊ - color: red;␊ - }␊ - }␊ - \`\`\`␊ + **[This long line is comprised of a bolded link {MD050}](https://example.com "This is the long link's title")**␊ ␊ - ␊ - `, - } - -## md040-language_only.md - -> Snapshot 1 - - { - errors: [ - { - errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 1', - errorRange: [ - 7, - 1, - ], - fixInfo: { - deleteCount: 1, - editColumn: 7, - }, - lineNumber: 11, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', - ruleNames: [ - 'MD009', - 'no-trailing-spaces', - ], - }, - { - errorContext: null, - errorDetail: 'Info string contains more than language: "```html version=5"', - errorRange: null, - fixInfo: null, - lineNumber: 17, - ruleDescription: 'Fenced code blocks should have a language specified', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', - ruleNames: [ - 'MD040', - 'fenced-code-language', - ], - }, - ], - fixed: `# md040-language_only.md␊ + ***[This long line is comprised of an emphasized and bolded link {MD049}](https://example.com "This is the long link's title")***␊ ␊ - Fence code block information with leading whitespace:␊ + ***[This long line is comprised of an emphasized and bolded link {MD049}](https://example.com "This is the long link's title")***␊ ␊ - \`\`\` html␊ -

markdownlint

␊ - \`\`\`␊ + *[](https://example.com "This long line is comprised of an emphasized link with empty text and a non-empty title")*␊ ␊ - Fence code block information with trailing whitespace:␊ + **[](https://example.com "This long line is comprised of a bolded link with empty text and a non-empty title")**␊ ␊ - \`\`\`css␊ - body {} {MD009:11}␊ - \`\`\`␊ + ![Alternate text for long line image example](https://example.com "Title text for long line image example")␊ ␊ - Fence code block information with extra data:␊ + *![Alternate text for long line image example](https://example.com "Title text for long line image example")*␊ ␊ - \`\`\`html version=5␊ - MarkdownLint {MD040:17}␊ - \`\`\`␊ + **![Alternate text for long line image example](https://example.com "Title text for long line image example")**␊ ␊ - Fence code block information without whitespaces and extra data:␊ + ![Reference style for long line image which is itself an example of a long line with content][image]␊ ␊ - \`\`\`css␊ - a {}␊ - \`\`\`␊ + *![Reference style for long line image which is itself an example of a long line with content][image]*␊ ␊ - ␊ + **![Reference style for long line image which is itself an example of a long line with content][image]**␊ + ␊ + [image]: https://example.com "Title text for long line image example using reference style for image details"␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + Long lines inside HTML comments should also ␊ `, } -## md041-ignore-leading-comments-combined.md +## long_lines_100.md > Snapshot 1 @@ -38126,43 +37667,40 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 5', + errorDetail: 'Expected: 100; Actual: 111', errorRange: [ - 23, - 5, + 101, + 11, ], - fixInfo: { - deleteCount: 5, - editColumn: 23, - }, - lineNumber: 9, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD013', + 'line-length', ], }, ], - fixed: `# Heading # ␊ - ␊ - Text text text␊ + fixed: `# long_lines_100␊ ␊ - Embedded tab␊ + This is a very very very very very very very very long line over 80 chars but less than 100␊ ␊ - Text text text␊ + This is a very very very very very very very very very very long line over 80 chars, and also over 100. {MD013}␊ ␊ - Trailing space {MD009}␊ + This is a very very very very very very very very very long line that is exactly 100 characters long␊ ␊ - Text text text␊ + This line however, while very long, doesn't have whitespace after the 100th columnwhichallowsforURLsandotherlongthings.␊ ␊ ␊ `, } -## md041-ignore-leading-comments-violation.md +## long_lines_code-default.md > Snapshot 1 @@ -38170,1037 +37708,1499 @@ Generated by [AVA](https://avajs.dev). errors: [ { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 5', + errorDetail: 'Expected: 80; Actual: 128', errorRange: [ - 23, - 5, + 81, + 48, ], - fixInfo: { - deleteCount: 5, - editColumn: 23, - }, - lineNumber: 9, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD013', + 'line-length', ], }, { - errorContext: 'Text text text {MD041}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 139', + errorRange: [ + 81, + 59, + ], fixInfo: null, - lineNumber: 3, - ruleDescription: 'First line in a file should be a top-level heading', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md', + lineNumber: 11, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD041', - 'first-line-heading', - 'first-line-h1', + 'MD013', + 'line-length', ], }, - ], - fixed: `␊ - ␊ - Text text text {MD041}␊ - ␊ - Embedded tab␊ - ␊ - Text text text␊ - ␊ - Trailing space {MD009}␊ - ␊ - Text text text␊ - ␊ - ␊ - `, - } - -## md041-ignore-leading-comments.md - -> Snapshot 1 - - { - errors: [ { errorContext: null, - errorDetail: 'Expected: 0 or 2; Actual: 5', + errorDetail: 'Expected: 80; Actual: 111', errorRange: [ - 23, - 5, + 81, + 31, ], - fixInfo: { - deleteCount: 5, - editColumn: 23, - }, - lineNumber: 11, - ruleDescription: 'Trailing spaces', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + fixInfo: null, + lineNumber: 16, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD009', - 'no-trailing-spaces', + 'MD013', + 'line-length', ], }, - ], - fixed: `␊ - ␊ - # Heading␊ - ␊ - Text text text␊ - ␊ - Embedded tab␊ - ␊ - Text text text␊ - ␊ - Trailing space {MD009}␊ - ␊ - Text text text␊ - ␊ - ␊ - `, - } - -## MD041-MD050.md - -> Snapshot 1 - - { - errors: [ { - errorContext: 'Not a heading {MD041}', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 111', + errorRange: [ + 81, + 31, + ], 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/md041.md', + lineNumber: 17, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD041', - 'first-line-heading', - 'first-line-h1', + 'MD013', + 'line-length', ], }, { - errorContext: '[empty]()', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 111', errorRange: [ - 4, - 9, + 81, + 31, ], fixInfo: null, - lineNumber: 3, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + lineNumber: 18, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD013', + 'line-length', ], }, { - errorContext: '[empty](#)', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 111', + errorRange: [ + 81, + 31, + ], + fixInfo: null, + lineNumber: 19, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + ruleNames: [ + 'MD013', + 'line-length', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 80; Actual: 111', + errorRange: [ + 81, + 31, + ], + fixInfo: null, + lineNumber: 20, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', + ruleNames: [ + 'MD013', + 'line-length', + ], + }, + { + errorContext: null, + errorDetail: 'Expected: 80; Actual: 128', errorRange: [ - 4, - 10, + 81, + 48, ], fixInfo: null, - lineNumber: 5, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + lineNumber: 22, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD013', + 'line-length', ], }, { - errorContext: '[empty](<>)', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 111', errorRange: [ - 4, - 11, + 81, + 31, ], fixInfo: null, - lineNumber: 7, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + lineNumber: 26, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD013', + 'line-length', ], }, { - errorContext: '[empty one]()', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 111', errorRange: [ - 25, - 13, + 81, + 31, ], fixInfo: null, - lineNumber: 17, - ruleDescription: 'No empty links', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md', + lineNumber: 27, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD042', - 'no-empty-links', + 'MD013', + 'line-length', ], }, { - errorContext: '# Heading', - errorDetail: null, - errorRange: null, + errorContext: null, + errorDetail: 'Expected: 80; Actual: 111', + errorRange: [ + 81, + 31, + ], fixInfo: null, - lineNumber: 64, - ruleDescription: 'Required heading structure', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md043.md', + lineNumber: 28, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD043', - 'required-headings', + 'MD013', + 'line-length', ], }, { errorContext: null, - errorDetail: 'Expected: markdownlint; Actual: MARKDOWNLINT', + errorDetail: 'Expected: 80; Actual: 111', errorRange: [ - 29, - 12, + 81, + 31, ], - 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/md044.md', + fixInfo: null, + lineNumber: 29, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD044', - 'proper-names', + 'MD013', + 'line-length', ], }, { errorContext: null, - errorDetail: 'Expected: markdownlint; Actual: Markdownlint', + errorDetail: 'Expected: 80; Actual: 111', errorRange: [ - 7, - 12, + 81, + 31, ], - 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/md044.md', + fixInfo: null, + lineNumber: 30, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD044', - 'proper-names', + 'MD013', + 'line-length', ], }, + ], + fixed: `# long_lines_code-default␊ + ␊ + This is a short line.␊ + ␊ + This is a very very very very very very very very very very very very very very very very very very very very long line. {MD013}␊ + ␊ + This is a short line.␊ + ␊ + \`\`\`text␊ + Here is a short line in a code block.␊ + Here is a very very very very very very very very very very very very very very very very very very very long line in a code block. {MD013}␊ + \`\`\`␊ + ␊ + This is a short line.␊ + ␊ + | First Heading | Second Heading | Third Heading | Fourth Heading | Fifth Heading | Sixth Heading | {MD013}␊ + | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- | {MD013}␊ + | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | {MD013}␊ + | ============== | ============== | ============== | ============== | ============== | ============== | {MD013}␊ + | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | {MD013}␊ + ␊ + This is a very very very very very very very very very very very very very very very very very very very very long line. {MD013}␊ + ␊ + Another line.␊ + ␊ + | First Heading | Second Heading | Third Heading | Fourth Heading | Fifth Heading | Sixth Heading | {MD013}␊ + | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- | {MD013}␊ + | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | {MD013}␊ + | ============== | ============== | ============== | ============== | ============== | ============== | {MD013}␊ + | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | {MD013}␊ + `, + } + +## long_lines_code.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Expected: markdownlint; Actual: MarkDownLint', + errorDetail: 'Expected: 80; Actual: 128', errorRange: [ - 1, - 12, + 81, + 48, ], - 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/md044.md', + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD044', - 'proper-names', + 'MD013', + 'line-length', ], }, { errorContext: null, - errorDetail: null, + errorDetail: 'Expected: 80; Actual: 128', errorRange: [ - 33, - 14, + 81, + 48, ], fixInfo: null, - lineNumber: 19, - ruleDescription: 'Images should have alternate text (alt text)', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md045.md', + lineNumber: 33, + ruleDescription: 'Line length', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ - 'MD045', - 'no-alt-text', + 'MD013', + 'line-length', ], }, + ], + fixed: `# long_lines_code␊ + ␊ + This is a short line.␊ + ␊ + This is a very very very very very very very very very very very very very very very very very very very very long line. {MD013}␊ + ␊ + This is a short line.␊ + ␊ + \`\`\`text␊ + Here is a short line in a code block.␊ + Here is a very very very very very very very very very very very very very very very very very very very long line in a code block.␊ + \`\`\`␊ + ␊ + \`\`\`text␊ + test␊ + test␊ + ␊ + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut␊ + \`\`\`␊ + ␊ + This is a short line.␊ + ␊ + | First Heading | Second Heading | Third Heading | Fourth Heading | Fifth Heading | Sixth Heading |␊ + | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- |␊ + | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ + | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ + | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- |␊ + | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ + | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ + | ============== | ============== | ============== | ============== | ============== | ============== |␊ + | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell |␊ + ␊ + This is a very very very very very very very very very very very very very very very very very very very very long line. {MD013}␊ + ␊ + Another line.␊ + ␊ + | First Heading | Second Heading | Third Heading | Fourth Heading | Fifth Heading | Sixth Heading |␊ + | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- |␊ + | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ + | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ + | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- |␊ + | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ + | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ + | ============== | ============== | ============== | ============== | ============== | ============== |␊ + | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell |␊ + ␊ + ␊ + `, + } + +## markdown-extra-footnote.md + +> Snapshot 1 + + { + errors: [ { 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/md046.md', + errorDetail: '(parenthesized footnote)[x^y]', + errorRange: [ + 15, + 29, + ], + fixInfo: { + deleteCount: 29, + editColumn: 15, + insertText: '[parenthesized footnote](x^y)', + }, + lineNumber: 7, + ruleDescription: 'Reversed link syntax', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md', ruleNames: [ - 'MD046', - 'code-block-style', + 'MD011', + 'no-reversed-links', ], }, { errorContext: null, - errorDetail: null, + errorDetail: '(is this)[z]', errorRange: [ - 41, - 1, + 5, + 12, ], fixInfo: { - editColumn: 42, - insertText: `␊ - `, + deleteCount: 12, + editColumn: 5, + insertText: '[is this](z)', }, - lineNumber: 64, - ruleDescription: 'Files should end with a single newline character', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md', + lineNumber: 9, + ruleDescription: 'Reversed link syntax', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md', ruleNames: [ - 'MD047', - 'single-trailing-newline', + 'MD011', + 'no-reversed-links', ], }, + ], + fixed: `# Heading␊ + ␊ + Text with Markdown Extra footnote[^1]␊ + ␊ + Text with (parenthesized footnote)[^2]␊ + ␊ + This is not a [parenthesized footnote](x^y) {MD011}␊ + ␊ + Nor [is this](z) {MD011}␊ + ␊ + [^1]: Footnote␊ + [^2]: Another footnote␊ + `, + } + +## markdown-in-html.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Expected: backtick; Actual: tilde', + errorDetail: 'Expected: atx; Actual: atx_closed', errorRange: null, fixInfo: null, - lineNumber: 27, - ruleDescription: 'Code fence style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md', + lineNumber: 32, + ruleDescription: 'Heading style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', ruleNames: [ - 'MD048', - 'code-fence-style', + 'MD003', + 'heading-style', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ - 21, 1, + 3, ], fixInfo: { deleteCount: 1, - editColumn: 21, - insertText: '*', + editColumn: 2, + insertText: '+', }, - lineNumber: 31, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 25, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorDetail: 'Expected: plus; Actual: dash', errorRange: [ - 26, 1, + 2, ], fixInfo: { deleteCount: 1, - editColumn: 26, - insertText: '*', + editColumn: 1, + insertText: '+', }, - lineNumber: 31, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 26, + ruleDescription: 'Unordered list style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD004', + 'ul-style', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorDetail: 'Expected: 1; Actual: 0', errorRange: [ - 49, 1, + 2, ], - fixInfo: { - deleteCount: 1, - editColumn: 49, - insertText: '*', - }, - lineNumber: 31, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + fixInfo: null, + lineNumber: 26, + ruleDescription: 'Inconsistent indentation for list items at the same level', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD005', + 'list-indent', ], }, { errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorDetail: 'Expected: 0; Actual: 1', errorRange: [ - 56, 1, + 3, ], fixInfo: { deleteCount: 1, - editColumn: 56, - insertText: '*', + editColumn: 1, + insertText: '', }, - lineNumber: 31, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 25, + ruleDescription: 'Unordered list indentation', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD007', + 'ul-indent', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorContext: '## Heading 2b {MD019} {MD022}', + errorDetail: null, errorRange: [ - 10, + 4, 1, ], fixInfo: { deleteCount: 1, - editColumn: 10, - insertText: '*', + editColumn: 4, }, - lineNumber: 36, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 24, + ruleDescription: 'Multiple spaces after hash on atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD019', + 'no-multiple-space-atx', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorContext: '### Heading 3b {MD003} {MD021...', + errorDetail: null, errorRange: [ - 9, + 5, 1, ], fixInfo: { deleteCount: 1, - editColumn: 9, - insertText: '*', + editColumn: 5, }, - lineNumber: 37, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 32, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD021', + 'no-multiple-space-closed-atx', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorContext: '...b {MD003} {MD021} {MD022} ###', + errorDetail: null, errorRange: [ - 14, + 41, 1, ], fixInfo: { deleteCount: 1, - editColumn: 14, - insertText: '*', + editColumn: 41, }, - lineNumber: 45, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 32, + ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD021', + 'no-multiple-space-closed-atx', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', - errorRange: [ - 21, - 1, + errorContext: '## Heading 2b {MD019} {MD022}', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, + fixInfo: { + insertText: `␊ + `, + lineNumber: 25, + }, + lineNumber: 24, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + ruleNames: [ + 'MD022', + 'blanks-around-headings', ], + }, + { + errorContext: '### Heading 3b {MD003} {MD021} {MD022} ###', + errorDetail: 'Expected: 1; Actual: 0; Below', + errorRange: null, fixInfo: { - deleteCount: 1, - editColumn: 21, - insertText: '*', + insertText: `␊ + `, + lineNumber: 33, }, - lineNumber: 45, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 32, + ruleDescription: 'Headings should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', + ruleNames: [ + 'MD022', + 'blanks-around-headings', + ], + }, + { + errorContext: '- Text *text* text * text * te...', + errorDetail: null, + errorRange: null, + fixInfo: { + insertText: `␊ + `, + }, + lineNumber: 25, + ruleDescription: 'Lists should be surrounded by blank lines', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD032', + 'blanks-around-lists', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorContext: 'https://example.com/', + errorDetail: null, errorRange: [ - 28, - 1, + 8, + 20, ], fixInfo: { - deleteCount: 1, - editColumn: 28, - insertText: '*', + deleteCount: 20, + editColumn: 8, + insertText: '', }, - lineNumber: 45, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 26, + ruleDescription: 'Bare URL used', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD034', + 'no-bare-urls', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorContext: '* t', + errorDetail: null, errorRange: [ - 40, - 1, + 21, + 3, ], fixInfo: { deleteCount: 1, - editColumn: 40, - insertText: '*', + editColumn: 22, }, - lineNumber: 45, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 25, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorContext: 't *', + errorDetail: null, errorRange: [ - 47, - 1, + 26, + 3, ], fixInfo: { deleteCount: 1, - editColumn: 47, - insertText: '*', + editColumn: 27, }, - lineNumber: 45, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 25, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorContext: '** t', + errorDetail: null, errorRange: [ - 54, - 1, + 35, + 4, ], fixInfo: { deleteCount: 1, - editColumn: 54, - insertText: '*', + editColumn: 37, }, - lineNumber: 45, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 25, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorContext: 't **', + errorDetail: null, errorRange: [ - 56, - 1, + 41, + 4, ], fixInfo: { deleteCount: 1, - editColumn: 56, - insertText: '*', + editColumn: 42, }, - lineNumber: 45, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 25, + ruleDescription: 'Spaces inside emphasis markers', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD037', + 'no-space-in-emphasis', ], }, { - errorContext: null, - errorDetail: 'Expected: asterisk; Actual: underscore', + errorContext: '` text `', + errorDetail: null, errorRange: [ - 68, - 1, + 63, + 10, ], fixInfo: { - deleteCount: 1, - editColumn: 68, - insertText: '*', + deleteCount: 8, + editColumn: 64, + insertText: 'text', }, - lineNumber: 45, - ruleDescription: 'Emphasis style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', + lineNumber: 25, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD049', - 'emphasis-style', + 'MD038', + 'no-space-in-code', ], }, { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorContext: '[ link ]', + errorDetail: null, errorRange: [ - 30, - 2, + 29, + 8, ], fixInfo: { - deleteCount: 2, + deleteCount: 6, editColumn: 30, - insertText: '__', + insertText: 'link', }, - lineNumber: 33, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + lineNumber: 26, + ruleDescription: 'Spaces inside link text', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD039', + 'no-space-in-links', ], }, + ], + fixed: `# Markdown in HTML␊ + ␊ + Text␊ + ␊ + + Item␊ + ␊ + Text␊ + ␊ +

␊ + ## Heading 2a␊ + - Text *text* text * text * text ** text ** text \`text\` text \` text \` text␊ + - Text https://example.com/ [ link ](https://example.com/)␊ +

␊ + ␊ +

␊ + ### Heading 3a ###␊ + Text␊ +

␊ + ␊ + Text␊ + ␊ +

␊ + ␊ + ## Heading 2b {MD019} {MD022}␊ + ␊ + + Text *text* text *text* text **text** text \`text\` text \`text\` text {MD004} {MD007} {MD032} {MD037} {MD038}␊ + + Text [link](https://example.com/) {MD004} {MD005} {MD034} {MD039}␊ + ␊ +

␊ + ␊ +

␊ + ␊ + ### Heading 3b {MD003} {MD021} {MD022} ###␊ + ␊ + Text␊ + ␊ +

␊ + ␊ + ␊ + `, + } + +## mathjax-scenarios.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Mathjax Scenarios␊ + ␊ + $1 * 2 * 3$␊ + ␊ + $$1 * 2 * 3$$␊ + ␊ + $$1␊ + + 2␊ + + 3$$␊ + ␊ + $$␊ + 1␊ + $$$$␊ + 2␊ + $$␊ + `, + } + +## md003-escaped-trailing-hash.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorDetail: 'Expected: atx; Actual: atx_closed', + errorRange: null, + fixInfo: null, + lineNumber: 15, + ruleDescription: 'Heading style', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', + ruleNames: [ + 'MD003', + 'heading-style', + ], + }, + { + errorContext: '...railing hash no space{MD020}##', + errorDetail: null, errorRange: [ - 36, - 2, + 46, + 3, ], fixInfo: { - deleteCount: 2, - editColumn: 36, - insertText: '__', + deleteCount: 48, + editColumn: 1, + insertText: '### Heading with trailing hash no space{MD020} ##', }, - lineNumber: 33, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + lineNumber: 17, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD020', + 'no-missing-space-closed-atx', ], }, { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorContext: '...with trailing hash {MD020} \\##', + errorDetail: null, errorRange: [ - 62, + 41, 2, ], fixInfo: { - deleteCount: 2, - editColumn: 62, - insertText: '__', + deleteCount: 42, + editColumn: 1, + insertText: '### Heading with trailing hash {MD020} \\# #', }, - lineNumber: 33, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + lineNumber: 19, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD020', + 'no-missing-space-closed-atx', ], }, { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorContext: '...ailing hash no space{MD020}\\##', + errorDetail: null, errorRange: [ - 70, + 48, 2, ], fixInfo: { - deleteCount: 2, - editColumn: 70, - insertText: '__', + deleteCount: 49, + editColumn: 1, + insertText: '### Heading with trailing hash no space{MD020} \\# #', }, - lineNumber: 33, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + lineNumber: 21, + ruleDescription: 'No space inside hashes on closed atx style heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD020', + 'no-missing-space-closed-atx', ], }, + ], + fixed: `# Heading␊ + ␊ + ## Heading with trailing hash \\#␊ + ␊ + ## Heading with trailing hash no space\\#␊ + ␊ + ### Heading with trailing hash \\#\\#␊ + ␊ + ### Heading with trailing hash no space\\#\\#␊ + ␊ + ### Heading with trailing hash #\\#␊ + ␊ + ### Heading with trailing hash no space#\\#␊ + ␊ + ### Heading with trailing hash {MD003} ##␊ + ␊ + ### Heading with trailing hash no space{MD020} ##␊ + ␊ + ### Heading with trailing hash {MD020} \\# #␊ + ␊ + ### Heading with trailing hash no space{MD020} \\# #␊ + `, + } + +## md004-list-items-in-blockquote.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Heading␊ + ␊ + Text␊ + ␊ + - Item␊ + - Item␊ + ␊ + Text␊ + ␊ + >- Item␊ + >- Item␊ + ␊ + Text␊ + ␊ + > - Item␊ + > - Item␊ + ␊ + Text␊ + ␊ + > > - Item␊ + > > - Item␊ + ␊ + Text␊ + `, + } + +## md022-line-number-out-of-range.md + +> Snapshot 1 + + { + errors: [], + fixed: `--␊ + ␊ + `, + } + +## md033-cannot-read-property-of-undefined.md + +> Snapshot 1 + + { + errors: [ { errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorDetail: 'Element: br', errorRange: [ - 8, - 2, + 1, + 5, ], - fixInfo: { - deleteCount: 2, - editColumn: 8, - insertText: '__', - }, - lineNumber: 41, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorDetail: 'Element: i', errorRange: [ - 9, - 2, + 11, + 3, ], - fixInfo: { - deleteCount: 2, - editColumn: 9, - insertText: '__', - }, - lineNumber: 42, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorDetail: 'Element: br', errorRange: [ - 14, - 2, + 1, + 5, ], - fixInfo: { - deleteCount: 2, - editColumn: 14, - insertText: '__', - }, - lineNumber: 47, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + fixInfo: null, + lineNumber: 9, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD033', + 'no-inline-html', ], }, { errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorDetail: 'Element: b', errorRange: [ - 22, - 2, + 11, + 3, ], - fixInfo: { - deleteCount: 2, - editColumn: 22, - insertText: '__', - }, - lineNumber: 47, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + fixInfo: null, + lineNumber: 11, + ruleDescription: 'Inline HTML', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', + ruleNames: [ + 'MD033', + 'no-inline-html', + ], + }, + ], + fixed: `# Heading␊ + ␊ + Head | Head␊ + --------|------------␊ +
| {MD033}␊ + ␊ + {MD033} | Head␊ + --------|------------␊ +
| {MD033}␊ + text | text␊ + {MD033} | text␊ + ␊ + ␊ + `, + } + +## md036-emphasis-as-heading.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: 'Emphasis as heading {MD036}', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 7, + ruleDescription: 'Emphasis used instead of a heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD036', + 'no-emphasis-as-heading', ], }, { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 30, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 30, - insertText: '__', - }, - lineNumber: 47, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + errorContext: 'Emphasis as heading {MD036}', + errorDetail: null, + errorRange: null, + fixInfo: null, + lineNumber: 17, + ruleDescription: 'Emphasis used instead of a heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD036', + 'no-emphasis-as-heading', ], }, + ], + fixed: `# Simplified examples from issue #26␊ + ␊ + * Item␊ + * **Emphasized item**␊ + * Item␊ + ␊ + _Emphasis as heading {MD036}_␊ + ␊ + 1. **Emphasized item**␊ + * Item␊ + * Item␊ + 1. **Emphasized item**␊ + * Item␊ + * **Emphasized item**␊ + * Item␊ + ␊ + **Emphasis as heading {MD036}**␊ + `, + } + +## md040-allowed_languages.md + +> Snapshot 1 + + { + errors: [ { - errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', + errorContext: '` scss`', + errorDetail: null, errorRange: [ - 43, - 2, + 17, + 7, ], fixInfo: { - deleteCount: 2, - editColumn: 43, - insertText: '__', + deleteCount: 5, + editColumn: 18, + insertText: 'scss', }, - lineNumber: 47, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + lineNumber: 39, + ruleDescription: 'Spaces inside code span elements', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD038', + 'no-space-in-code', ], }, { errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 51, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 51, - insertText: '__', - }, - lineNumber: 47, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + errorDetail: '"html" is not allowed', + errorRange: null, + fixInfo: null, + lineNumber: 5, + ruleDescription: 'Fenced code blocks should have a language specified', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD040', + 'fenced-code-language', ], }, { errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 59, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 59, - insertText: '__', - }, - lineNumber: 47, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + errorDetail: '"css" is not allowed', + errorRange: null, + fixInfo: null, + lineNumber: 11, + ruleDescription: 'Fenced code blocks should have a language specified', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD040', + 'fenced-code-language', ], }, { errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 62, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 62, - insertText: '__', - }, - lineNumber: 47, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + errorDetail: '"MD" is not allowed', + errorRange: null, + fixInfo: null, + lineNumber: 17, + ruleDescription: 'Fenced code blocks should have a language specified', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD040', + 'fenced-code-language', ], }, { errorContext: null, - errorDetail: 'Expected: underscore; Actual: asterisk', - errorRange: [ - 75, - 2, - ], - fixInfo: { - deleteCount: 2, - editColumn: 75, - insertText: '__', - }, - lineNumber: 47, - ruleDescription: 'Strong style', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', + errorDetail: '"ts" is not allowed', + errorRange: null, + fixInfo: null, + lineNumber: 23, + ruleDescription: 'Fenced code blocks should have a language specified', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', ruleNames: [ - 'MD050', - 'strong-style', + 'MD040', + 'fenced-code-language', ], }, ], - fixed: `Not a heading {MD041}␊ + fixed: `# md040-allowed_languages.md␊ ␊ - An [empty]() link {MD042}␊ + Code block with \`html\` not in allowed_languages:␊ ␊ - An [empty](#) link with fragment {MD042}␊ + \`\`\`html␊ +

markdownlint

{MD040:5}␊ + \`\`\`␊ ␊ - An [empty](<>) link with angle brackets {MD042}␊ + Code block with \`css\` not in allowed_languages:␊ ␊ - This is a test file for the markdownlint package. {MD044}␊ + \`\`\`css␊ + body {} {MD040:11}␊ + \`\`\`␊ ␊ - This is a paragraph␊ - about markdownlint {MD044}␊ - that capitalizes the␊ - name wrong twice:␊ - markdownlint. {MD044}␊ + Code block with \`MD\` (uppercase) not in allowed_languages:␊ ␊ - A [normal](link) and an [empty one]() and a [fragment](#one). {MD042}␊ + \`\`\`MD␊ + hello md {MD040:17}␊ + \`\`\`␊ ␊ - An image without alternate text ![](image.jpg) {MD045}␊ + Code block with \`ts\` (lowercase) not in allowed_languages:␊ ␊ - \`\`\`text␊ - Fenced code␊ + \`\`\`ts␊ + let foo = "bar"; {MD040:23}␊ \`\`\`␊ ␊ - Indented code {MD046}␊ + Code block with \`js\` in allowed_languages:␊ ␊ - ~~~text␊ - Fenced code {MD048:27}␊ - ~~~␊ + \`\`\`js␊ + console.log('markdownlint')␊ + \`\`\`␊ ␊ - Mixed *emphasis* on *this* line *with* multiple *issues* {MD049}␊ + Code block with \`js foo\` allowed_languages:␊ ␊ - Mixed __strong emphasis__ on __this__ line __with__ multiple __issues__ {MD050}␊ + \`\`\`js foo␊ + console.log('bar')␊ + \`\`\`␊ ␊ - Inconsistent␊ - emphasis *text {MD049}␊ - spanning* many {MD049}␊ - lines␊ + Code block with \`scss\` (prefixed by a space) in allowed_languages: {MD038}␊ ␊ - Inconsistent␊ - strong __emphasis {MD050}␊ - spanning__ many {MD050}␊ - lines␊ + \`\`\` scss␊ + body {␊ + h1 {␊ + color: red;␊ + }␊ + }␊ + \`\`\`␊ ␊ - Inconsistent *double* text *interleaved* text *double* *interleaved* emphasis. {MD049}␊ + Code block with \`md\` (lowercase) in allowed_languages:␊ ␊ - Inconsistent __double__ text __interleaved__ text __double__ __interleaved__ strong emphasis. {MD050}␊ + \`\`\`md␊ + hello md␊ + \`\`\`␊ + ␊ + Code block with \`TS\` (uppercase) in allowed_languages:␊ + ␊ + \`\`\`TS␊ + body {␊ + h1 {␊ + color: red;␊ + }␊ + }␊ + \`\`\`␊ ␊ ␊ - ␊ - Missing newline character {MD043} {MD047}␊ `, } -## md041-yaml-title-and-first-line-heading.md +## md040-language_only.md > Snapshot 1 { - errors: [], - fixed: `---␊ - path: "/post"␊ - date: "2012-06-21T10:14:00.000+02:00"␊ - title: "First level heading"␊ - ---␊ + errors: [ + { + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 1', + errorRange: [ + 7, + 1, + ], + fixInfo: { + deleteCount: 1, + editColumn: 7, + }, + lineNumber: 11, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + ruleNames: [ + 'MD009', + 'no-trailing-spaces', + ], + }, + { + errorContext: null, + errorDetail: 'Info string contains more than language: "```html version=5"', + errorRange: null, + fixInfo: null, + lineNumber: 17, + ruleDescription: 'Fenced code blocks should have a language specified', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md', + ruleNames: [ + 'MD040', + 'fenced-code-language', + ], + }, + ], + fixed: `# md040-language_only.md␊ ␊ - ## Second level heading␊ + Fence code block information with leading whitespace:␊ + ␊ + \`\`\` html␊ +

markdownlint

␊ + \`\`\`␊ + ␊ + Fence code block information with trailing whitespace:␊ + ␊ + \`\`\`css␊ + body {} {MD009:11}␊ + \`\`\`␊ + ␊ + Fence code block information with extra data:␊ + ␊ + \`\`\`html version=5␊ + MarkdownLint {MD040:17}␊ + \`\`\`␊ + ␊ + Fence code block information without whitespaces and extra data:␊ + ␊ + \`\`\`css␊ + a {}␊ + \`\`\`␊ ␊ ␊ `, } -## MD051-MD060.md +## md041-ignore-leading-comments-combined.md > Snapshot 1 { errors: [ { - errorContext: '[link with a missing](#fragment)', - errorDetail: null, + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 5', errorRange: [ - 3, - 32, + 23, + 5, ], - fixInfo: null, - lineNumber: 3, - ruleDescription: 'Link fragments should be valid', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md', + fixInfo: { + deleteCount: 5, + editColumn: 23, + }, + lineNumber: 9, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD051', - 'link-fragments', + 'MD009', + 'no-trailing-spaces', ], }, + ], + fixed: `# Heading # ␊ + ␊ + Text text text␊ + ␊ + Embedded tab␊ + ␊ + Text text text␊ + ␊ + Trailing space {MD009}␊ + ␊ + Text text text␊ + ␊ + ␊ + `, + } + +## md041-ignore-leading-comments-violation.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '[link with a][undefined-label]', - errorDetail: 'Missing link or image reference definition: "undefined-label"', + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 5', errorRange: [ - 3, - 30, + 23, + 5, + ], + fixInfo: { + deleteCount: 5, + editColumn: 23, + }, + lineNumber: 9, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', + ruleNames: [ + 'MD009', + 'no-trailing-spaces', ], + }, + { + errorContext: 'Text text text {MD041}', + errorDetail: null, + errorRange: null, fixInfo: null, - lineNumber: 7, - ruleDescription: 'Reference links and images should use a label that is defined', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md', + lineNumber: 3, + ruleDescription: 'First line in a file should be a top-level heading', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md', ruleNames: [ - 'MD052', - 'reference-links-images', + 'MD041', + 'first-line-heading', + 'first-line-h1', ], }, + ], + fixed: `␊ + ␊ + Text text text {MD041}␊ + ␊ + Embedded tab␊ + ␊ + Text text text␊ + ␊ + Trailing space {MD009}␊ + ␊ + Text text text␊ + ␊ + ␊ + `, + } + +## md041-ignore-leading-comments.md + +> Snapshot 1 + + { + errors: [ { - errorContext: '[unused-label]: {MD053}', - errorDetail: 'Unused link or image reference definition: "unused-label"', + errorContext: null, + errorDetail: 'Expected: 0 or 2; Actual: 5', errorRange: [ - 1, 23, + 5, ], fixInfo: { - deleteCount: -1, + deleteCount: 5, + editColumn: 23, }, - lineNumber: 10, - ruleDescription: 'Link and image reference definitions should be needed', - ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md053.md', + lineNumber: 11, + ruleDescription: 'Trailing spaces', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ - 'MD053', - 'link-image-reference-definitions', + 'MD009', + 'no-trailing-spaces', ], }, ], - fixed: `# detailed-results-MD051-MD060␊ + fixed: `␊ ␊ - A [link with a missing](#fragment) {MD051}␊ + # Heading␊ ␊ - A [link with a][defined-label]␊ + Text text text␊ ␊ - A [link with a][undefined-label] {MD052}␊ + Embedded tab␊ ␊ - [defined-label]: https://example.com␊ + Text text text␊ + ␊ + Trailing space {MD009}␊ + ␊ + Text text text␊ + ␊ + ␊ + `, + } + +## md041-yaml-title-and-first-line-heading.md + +> Snapshot 1 + + { + errors: [], + fixed: `---␊ + path: "/post"␊ + date: "2012-06-21T10:14:00.000+02:00"␊ + title: "First level heading"␊ + ---␊ + ␊ + ## Second level heading␊ + ␊ + ␊ `, } diff --git a/test/snapshots/markdownlint-test-scenarios.js.snap b/test/snapshots/markdownlint-test-scenarios.js.snap index f7bbf2074..8bbe46a80 100644 Binary files a/test/snapshots/markdownlint-test-scenarios.js.snap and b/test/snapshots/markdownlint-test-scenarios.js.snap differ