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: ' ␊
- https://example.com/pass␊
- ␊
- Not bare due to being in an HTML block:␊
- https://example.com␊
- https://example.com/pass
text.␊
+ fixed: `# Heading␊
␊
- Text https://example.com/pass
text https://example.com/pass
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
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: '
Another violation:
␊
- ␊
-
Another violation:
␊
- ␊
- This is not a bare [link]( https://example.com ).␊
- ␊
- Nor is [link](https://example.com/path-with(parens)).␊
- ␊
- Or https://example.com
bare.␊
- ␊
- Not https://example.com
bare.␊
- ␊
- https://example.com
␊
- https://example.com
␊
-
https://example.com#heading-
␊
- ␊
- Links with spaces inside angle brackets are okay: [blue jay](␊ + https://example.com/pass␊ +
␊ ␊ - > two blank lines above me␊ + Texthttps://example.com/pass
text.␊
␊
- * List with embedded blockquote␊
+ Text https://example.com/pass
text https://example.com/pass
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 https://example.com
bare.␊
+ ␊
+ Not https://example.combare.␊ + ␊ +
␊
+ Not bare due to being in an HTML block:␊
+ https://example.com␊
+ https://example.com
␊
+
https://example.com␊ + ␊ + ␊ +
https://example.com#heading-
␊
+ ␊
+ Links with spaces inside angle brackets are okay: [blue jay](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: '␊ - 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␊ ␊ - ␊ -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 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␊ ␊ - _ _ _␊ + ␊ +␊ - 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}␊ ␊ - \\␊ + # 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␊ + ␊ +␊ + 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␊ + ␊ + \\␊ - This is allowed.␊ -
␊ + fixed: `# incorrect_bullet_style_asterisk␊ ␊ -␊
-
␊
-
More inline HTML {MD033}␊ - but this time on multiple lines␊ -
␊ - ␊ -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␊
-
␊ + This is allowed.␊ +
␊ ␊ - Text [url](#fragment) text␊ +␊
+
␊
+
More inline HTML {MD033}␊ + but this time on multiple lines␊ +
␊ ␊ - TextNeither should this as it's also in a code block {MD046:11}
␊ + \`\`\`␊ ␊ - Text\` text \\\` text␊
+ 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␊
+