mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-28 18:06:10 +01:00
14003 lines
365 KiB
Markdown
14003 lines
365 KiB
Markdown
# Snapshot report for `test/markdownlint-test-scenarios-1.mjs`
|
||
|
||
The actual snapshot is saved in `markdownlint-test-scenarios-1.mjs.snap`.
|
||
|
||
Generated by [AVA](https://avajs.dev).
|
||
|
||
## 4-tabs-MD010.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Column: 1',
|
||
errorRange: [
|
||
1,
|
||
13,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 13,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 1,
|
||
ruleDescription: 'Hard tabs',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
|
||
ruleNames: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Column: 5',
|
||
errorRange: [
|
||
5,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 5,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 2,
|
||
ruleDescription: 'Hard tabs',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
|
||
ruleNames: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Column: 35',
|
||
errorRange: [
|
||
35,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 3,
|
||
editColumn: 35,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 3,
|
||
ruleDescription: 'Hard tabs',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
|
||
ruleNames: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
],
|
||
fixed: ` text {MD010}␊
|
||
text and text 2 {MD010}␊
|
||
texts with trailing spaces {MD010} ␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"no-trailing-spaces": false,␊
|
||
"no-hard-tabs": {␊
|
||
"spaces_per_tab": 4␊
|
||
},␊
|
||
"first-line-heading": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## MD001-MD010.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: h3; Actual: h4',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 3,
|
||
ruleDescription: 'Heading levels should only increment by one level at a time',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md',
|
||
ruleNames: [
|
||
'MD001',
|
||
'heading-increment',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: atx; Actual: atx_closed',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 5,
|
||
ruleDescription: 'Heading style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
|
||
ruleNames: [
|
||
'MD003',
|
||
'heading-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: dash',
|
||
errorRange: [
|
||
1,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 10,
|
||
ruleDescription: 'Unordered list style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
|
||
ruleNames: [
|
||
'MD004',
|
||
'ul-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0; Actual: 1',
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 8,
|
||
ruleDescription: 'Inconsistent indentation for list items at the same level',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md',
|
||
ruleNames: [
|
||
'MD005',
|
||
'list-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 1; Actual: 0',
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 0,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 23,
|
||
ruleDescription: 'Inconsistent indentation for list items at the same level',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md',
|
||
ruleNames: [
|
||
'MD005',
|
||
'list-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: (3); Actual: (4)',
|
||
errorRange: [
|
||
1,
|
||
5,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 29,
|
||
ruleDescription: 'Inconsistent indentation for list items at the same level',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md',
|
||
ruleNames: [
|
||
'MD005',
|
||
'list-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0; Actual: 1',
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 8,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0; Actual: 1',
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 12,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0; Actual: 1',
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 13,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0 or 2; Actual: 1',
|
||
errorRange: [
|
||
13,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 13,
|
||
},
|
||
lineNumber: 15,
|
||
ruleDescription: 'Trailing spaces',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
|
||
ruleNames: [
|
||
'MD009',
|
||
'no-trailing-spaces',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Column: 5',
|
||
errorRange: [
|
||
5,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 5,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 17,
|
||
ruleDescription: 'Hard tabs',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
|
||
ruleNames: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
],
|
||
fixed: `## One␊
|
||
␊
|
||
#### Two {MD001}␊
|
||
␊
|
||
### Three {MD003} ###␊
|
||
␊
|
||
* Alpha␊
|
||
* Bravo {MD005} {MD007}␊
|
||
␊
|
||
* Charlie {MD004}␊
|
||
␊
|
||
* Delta {MD007}␊
|
||
* Echo {MD007}␊
|
||
␊
|
||
Text {MD009}␊
|
||
␊
|
||
Text text {MD010}␊
|
||
␊
|
||
1. One␊
|
||
2. Two␊
|
||
3. Three␊
|
||
4. Four␊
|
||
5. Five {MD005}␊
|
||
6. Six␊
|
||
7. Seven␊
|
||
8. Eight␊
|
||
9. Nine␊
|
||
10. Ten␊
|
||
11. Eleven {MD005}␊
|
||
12. Twelve␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"first-line-heading": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## MD011-MD021.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: '(reversed)[link]',
|
||
errorRange: [
|
||
3,
|
||
16,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 16,
|
||
editColumn: 3,
|
||
insertText: '[reversed](link)',
|
||
},
|
||
lineNumber: 5,
|
||
ruleDescription: 'Reversed link syntax',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md',
|
||
ruleNames: [
|
||
'MD011',
|
||
'no-reversed-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: '(reversed)[link]',
|
||
errorRange: [
|
||
11,
|
||
16,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 16,
|
||
editColumn: 11,
|
||
insertText: '[reversed](link)',
|
||
},
|
||
lineNumber: 26,
|
||
ruleDescription: 'Reversed link syntax',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md',
|
||
ruleNames: [
|
||
'MD011',
|
||
'no-reversed-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 1; Actual: 2',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
deleteCount: -1,
|
||
},
|
||
lineNumber: 7,
|
||
ruleDescription: 'Multiple consecutive blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/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: [
|
||
5,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 12,
|
||
ruleDescription: 'Dollar signs used before commands without showing output',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
|
||
ruleNames: [
|
||
'MD014',
|
||
'commands-show-output',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '##No space A {MD018}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
editColumn: 3,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 14,
|
||
ruleDescription: 'No space after hash on atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
|
||
ruleNames: [
|
||
'MD018',
|
||
'no-missing-space-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Multiple spaces B {MD019}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 4,
|
||
},
|
||
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: [
|
||
'MD019',
|
||
'no-multiple-space-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '##No space C {MD020} ##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 23,
|
||
editColumn: 1,
|
||
insertText: '## No space C {MD020} ##',
|
||
},
|
||
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: [
|
||
'MD020',
|
||
'no-missing-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## No space D {MD020}##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
21,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 23,
|
||
editColumn: 1,
|
||
insertText: '## No space D {MD020} ##',
|
||
},
|
||
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: [
|
||
'MD020',
|
||
'no-missing-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Multiple spaces E {MD021} ...',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 4,
|
||
},
|
||
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: [
|
||
'MD021',
|
||
'no-multiple-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '... Multiple spaces F {MD021} ##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
30,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 30,
|
||
},
|
||
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: [
|
||
'MD021',
|
||
'no-multiple-space-closed-atx',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Top level heading␊
|
||
␊
|
||
<!-- markdownlint-disable MD003 -->␊
|
||
␊
|
||
A [reversed](link) example. {MD011}␊
|
||
␊
|
||
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789␊
|
||
␊
|
||
## 123456789 123456789 123456789 123456789 123456789 123456789␊
|
||
␊
|
||
command with no output {MD014}␊
|
||
␊
|
||
## No space A {MD018}␊
|
||
␊
|
||
## Multiple spaces B {MD019}␊
|
||
␊
|
||
## No space C {MD020} ##␊
|
||
␊
|
||
## No space D {MD020} ##␊
|
||
␊
|
||
## Multiple spaces E {MD021} ##␊
|
||
␊
|
||
## Multiple spaces F {MD021} ##␊
|
||
␊
|
||
*Another* [reversed](link) example. {MD011}␊
|
||
␊
|
||
{MD012:7} {MD013:8} {MD013:10}␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"line-length": {␊
|
||
"heading_line_length": 40␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## MD022-MD030.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '# Heading',
|
||
errorDetail: 'Expected: 1; Actual: 0; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 2,
|
||
},
|
||
lineNumber: 1,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: ' # Heading',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
},
|
||
lineNumber: 1,
|
||
ruleDescription: 'Headings must start at the beginning of the line',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
|
||
ruleNames: [
|
||
'MD023',
|
||
'heading-start-left',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Heading',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 4,
|
||
ruleDescription: 'Multiple headings with the same content',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
|
||
ruleNames: [
|
||
'MD024',
|
||
'no-duplicate-heading',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Heading',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 4,
|
||
ruleDescription: 'Multiple top-level headings in the same document',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
|
||
ruleNames: [
|
||
'MD025',
|
||
'single-title',
|
||
'single-h1',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Punctuation: \'.\'',
|
||
errorRange: [
|
||
27,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 27,
|
||
},
|
||
lineNumber: 6,
|
||
ruleDescription: 'Trailing punctuation in heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
|
||
ruleNames: [
|
||
'MD026',
|
||
'no-trailing-punctuation',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> Multiple spaces {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 8,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > Multiple spaces, multiple...',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 15,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > > Multiple spaces, multip...',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
7,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 7,
|
||
},
|
||
lineNumber: 17,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > > Multiple spaces, multip...',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 19,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 9,
|
||
ruleDescription: 'Blank line inside blockquote',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
|
||
ruleNames: [
|
||
'MD028',
|
||
'no-blanks-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 2; Actual: 3; Style: 1/2/3',
|
||
errorRange: [
|
||
1,
|
||
4,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 13,
|
||
ruleDescription: 'Ordered list item prefix',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md029.md',
|
||
ruleNames: [
|
||
'MD029',
|
||
'ol-prefix',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 1; Actual: 2',
|
||
errorRange: [
|
||
1,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 3,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 13,
|
||
ruleDescription: 'Spaces after list markers',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md',
|
||
ruleNames: [
|
||
'MD030',
|
||
'list-marker-space',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Heading␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
# Heading␊
|
||
␊
|
||
## Another heading {MD026}␊
|
||
␊
|
||
> Multiple spaces {MD027}␊
|
||
␊
|
||
> Blank line above␊
|
||
␊
|
||
1. Alpha␊
|
||
3. Beta {MD029} {MD030}␊
|
||
␊
|
||
> > 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}␊
|
||
`,
|
||
}
|
||
|
||
## MD030-warning-message.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 1; Actual: 2',
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 2,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 19,
|
||
ruleDescription: 'Spaces after list markers',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md',
|
||
ruleNames: [
|
||
'MD030',
|
||
'list-marker-space',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 1; Actual: 2',
|
||
errorRange: [
|
||
1,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 3,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 21,
|
||
ruleDescription: 'Spaces after list markers',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md',
|
||
ruleNames: [
|
||
'MD030',
|
||
'list-marker-space',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '-',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 4,
|
||
},
|
||
lineNumber: 3,
|
||
ruleDescription: 'Lists should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
|
||
ruleNames: [
|
||
'MD032',
|
||
'blanks-around-lists',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '1.',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 7,
|
||
},
|
||
lineNumber: 6,
|
||
ruleDescription: 'Lists should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
|
||
ruleNames: [
|
||
'MD032',
|
||
'blanks-around-lists',
|
||
],
|
||
},
|
||
],
|
||
fixed: `#␊
|
||
␊
|
||
-␊
|
||
␊
|
||
(bare list item marker {MD032:3})␊
|
||
␊
|
||
1.␊
|
||
␊
|
||
(bare list item marker {MD032:6})␊
|
||
␊
|
||
-a␊
|
||
(not a list item)␊
|
||
␊
|
||
1.a␊
|
||
(not a list item)␊
|
||
␊
|
||
- a␊
|
||
␊
|
||
1. a␊
|
||
␊
|
||
- a {MD030}␊
|
||
␊
|
||
1. a {MD030}␊
|
||
`,
|
||
}
|
||
|
||
## MD031-MD040.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 4,
|
||
},
|
||
lineNumber: 3,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '* List {MD032}',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 4,
|
||
ruleDescription: 'Lists should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
|
||
ruleNames: [
|
||
'MD032',
|
||
'blanks-around-lists',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '* List {MD032}',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 48,
|
||
},
|
||
lineNumber: 47,
|
||
ruleDescription: 'Lists should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
|
||
ruleNames: [
|
||
'MD032',
|
||
'blanks-around-lists',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Element: hr',
|
||
errorRange: [
|
||
7,
|
||
5,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 6,
|
||
ruleDescription: 'Inline HTML',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
|
||
ruleNames: [
|
||
'MD033',
|
||
'no-inline-html',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
6,
|
||
19,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 19,
|
||
editColumn: 6,
|
||
insertText: '<https://example.com>',
|
||
},
|
||
lineNumber: 8,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: ---; Actual: ***',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 11,
|
||
ruleDescription: 'Horizontal rule style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
|
||
ruleNames: [
|
||
'MD035',
|
||
'hr-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Emphasis {MD036}',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 13,
|
||
ruleDescription: 'Emphasis used instead of a heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
|
||
ruleNames: [
|
||
'MD036',
|
||
'no-emphasis-as-heading',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '* i',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
7,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 8,
|
||
},
|
||
lineNumber: 15,
|
||
ruleDescription: 'Spaces inside emphasis markers',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
|
||
ruleNames: [
|
||
'MD037',
|
||
'no-space-in-emphasis',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'e *',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
14,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 15,
|
||
},
|
||
lineNumber: 15,
|
||
ruleDescription: 'Spaces inside emphasis markers',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
|
||
ruleNames: [
|
||
'MD037',
|
||
'no-space-in-emphasis',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '* s',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
17,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 18,
|
||
},
|
||
lineNumber: 31,
|
||
ruleDescription: 'Spaces inside emphasis markers',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
|
||
ruleNames: [
|
||
'MD037',
|
||
'no-space-in-emphasis',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'e *',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
21,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 22,
|
||
},
|
||
lineNumber: 32,
|
||
ruleDescription: 'Spaces inside emphasis markers',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
|
||
ruleNames: [
|
||
'MD037',
|
||
'no-space-in-emphasis',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'e **',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
22,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 23,
|
||
},
|
||
lineNumber: 33,
|
||
ruleDescription: 'Spaces inside emphasis markers',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
|
||
ruleNames: [
|
||
'MD037',
|
||
'no-space-in-emphasis',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '_ s',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
17,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 18,
|
||
},
|
||
lineNumber: 34,
|
||
ruleDescription: 'Spaces inside emphasis markers',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
|
||
ruleNames: [
|
||
'MD037',
|
||
'no-space-in-emphasis',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '__ s',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
19,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 21,
|
||
},
|
||
lineNumber: 35,
|
||
ruleDescription: 'Spaces inside emphasis markers',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
|
||
ruleNames: [
|
||
'MD037',
|
||
'no-space-in-emphasis',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'e __',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
25,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 26,
|
||
},
|
||
lineNumber: 35,
|
||
ruleDescription: 'Spaces inside emphasis markers',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
|
||
ruleNames: [
|
||
'MD037',
|
||
'no-space-in-emphasis',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '* i',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
7,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 8,
|
||
},
|
||
lineNumber: 62,
|
||
ruleDescription: 'Spaces inside emphasis markers',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
|
||
ruleNames: [
|
||
'MD037',
|
||
'no-space-in-emphasis',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'e *',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
10,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 11,
|
||
},
|
||
lineNumber: 63,
|
||
ruleDescription: 'Spaces inside emphasis markers',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
|
||
ruleNames: [
|
||
'MD037',
|
||
'no-space-in-emphasis',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '` inside`',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
8,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 8,
|
||
},
|
||
lineNumber: 17,
|
||
ruleDescription: 'Spaces inside code span elements',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||
ruleNames: [
|
||
'MD038',
|
||
'no-space-in-code',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '`` inside``',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
9,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 9,
|
||
},
|
||
lineNumber: 24,
|
||
ruleDescription: 'Spaces inside code span elements',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||
ruleNames: [
|
||
'MD038',
|
||
'no-space-in-code',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '` code`',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
20,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 20,
|
||
},
|
||
lineNumber: 25,
|
||
ruleDescription: 'Spaces inside code span elements',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||
ruleNames: [
|
||
'MD038',
|
||
'no-space-in-code',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '` elements`',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
27,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 27,
|
||
},
|
||
lineNumber: 26,
|
||
ruleDescription: 'Spaces inside code span elements',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||
ruleNames: [
|
||
'MD038',
|
||
'no-space-in-code',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '`` code``',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
23,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 23,
|
||
},
|
||
lineNumber: 27,
|
||
ruleDescription: 'Spaces inside code span elements',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||
ruleNames: [
|
||
'MD038',
|
||
'no-space-in-code',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '`` ` embedded backtick``',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 28,
|
||
ruleDescription: 'Spaces inside code span elements',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||
ruleNames: [
|
||
'MD038',
|
||
'no-space-in-code',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '``embedded backtick` ``',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
22,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 22,
|
||
},
|
||
lineNumber: 29,
|
||
ruleDescription: 'Spaces inside code span elements',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||
ruleNames: [
|
||
'MD038',
|
||
'no-space-in-code',
|
||
],
|
||
},
|
||
{
|
||
errorContext: `\` code {MD038}␊
|
||
span\``,
|
||
errorDetail: null,
|
||
errorRange: [
|
||
7,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 7,
|
||
},
|
||
lineNumber: 38,
|
||
ruleDescription: 'Spaces inside code span elements',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||
ruleNames: [
|
||
'MD038',
|
||
'no-space-in-code',
|
||
],
|
||
},
|
||
{
|
||
errorContext: `\`code␊
|
||
span \``,
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 44,
|
||
ruleDescription: 'Spaces inside code span elements',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||
ruleNames: [
|
||
'MD038',
|
||
'no-space-in-code',
|
||
],
|
||
},
|
||
{
|
||
errorContext: `...\`\`code␊
|
||
span code␊
|
||
span code \`\`\``,
|
||
errorDetail: null,
|
||
errorRange: [
|
||
10,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 10,
|
||
},
|
||
lineNumber: 53,
|
||
ruleDescription: 'Spaces inside code span elements',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||
ruleNames: [
|
||
'MD038',
|
||
'no-space-in-code',
|
||
],
|
||
},
|
||
{
|
||
errorContext: `\`\`\`\` code {MD038}␊
|
||
span code␊
|
||
sp...`,
|
||
errorDetail: null,
|
||
errorRange: [
|
||
15,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 15,
|
||
},
|
||
lineNumber: 55,
|
||
ruleDescription: 'Spaces inside code span elements',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||
ruleNames: [
|
||
'MD038',
|
||
'no-space-in-code',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[ inside ]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
8,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 8,
|
||
},
|
||
lineNumber: 19,
|
||
ruleDescription: 'Spaces inside link text',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
|
||
ruleNames: [
|
||
'MD039',
|
||
'no-space-in-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[ inside ]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
15,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 15,
|
||
},
|
||
lineNumber: 19,
|
||
ruleDescription: 'Spaces inside link text',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
|
||
ruleNames: [
|
||
'MD039',
|
||
'no-space-in-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[ space]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
7,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 7,
|
||
},
|
||
lineNumber: 60,
|
||
ruleDescription: 'Spaces inside link text',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
|
||
ruleNames: [
|
||
'MD039',
|
||
'no-space-in-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[space ]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
32,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 32,
|
||
},
|
||
lineNumber: 60,
|
||
ruleDescription: 'Spaces inside link text',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
|
||
ruleNames: [
|
||
'MD039',
|
||
'no-space-in-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[ space ]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
47,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 47,
|
||
},
|
||
lineNumber: 60,
|
||
ruleDescription: 'Spaces inside link text',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
|
||
ruleNames: [
|
||
'MD039',
|
||
'no-space-in-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[ space ]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
53,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 53,
|
||
},
|
||
lineNumber: 60,
|
||
ruleDescription: 'Spaces inside link text',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
|
||
ruleNames: [
|
||
'MD039',
|
||
'no-space-in-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 21,
|
||
ruleDescription: 'Fenced code blocks should have a language specified',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md',
|
||
ruleNames: [
|
||
'MD040',
|
||
'fenced-code-language',
|
||
],
|
||
},
|
||
],
|
||
fixed: `\`\`\`js␊
|
||
debugger;␊
|
||
\`\`\`␊
|
||
␊
|
||
* List {MD032}␊
|
||
␊
|
||
Inline<hr/>HTML {MD033}␊
|
||
␊
|
||
Bare <https://example.com> link {MD034}␊
|
||
␊
|
||
---␊
|
||
***␊
|
||
␊
|
||
*Emphasis {MD036}*␊
|
||
␊
|
||
Space *inside* emphasis {MD037}␊
|
||
␊
|
||
Space \`inside\` code span {MD038}␊
|
||
␊
|
||
Space [inside](link) text {MD039}␊
|
||
␊
|
||
\`\`\`␊
|
||
\`\`\`␊
|
||
␊
|
||
space \`\`inside\`\` code {MD038}␊
|
||
space \`inside\` of \`code\` elements {MD038}␊
|
||
\`space\` inside \`of\` code \`elements\` {MD038}␊
|
||
space \`\`inside\`\` of \`\`code\`\` elements {MD038}␊
|
||
\`\` \` embedded backtick\`\` {MD038}␊
|
||
\`\`embedded backtick\` \`\` {MD038}␊
|
||
␊
|
||
some *space* in *some* emphasis {MD037}␊
|
||
some *space* in *some* emphasis {MD037}␊
|
||
some *space* in **some** emphasis {MD037}␊
|
||
some _space_ in _some_ emphasis {MD037}␊
|
||
some __space__ in __some__ emphasis {MD037}␊
|
||
␊
|
||
Text␊
|
||
text \`code {MD038}␊
|
||
span\` text␊
|
||
text.␊
|
||
␊
|
||
Text␊
|
||
text \`code␊
|
||
span\` text {MD038}␊
|
||
text.␊
|
||
␊
|
||
* List {MD032}␊
|
||
␊
|
||
---␊
|
||
␊
|
||
Text␊
|
||
text \`\`\`code␊
|
||
span code␊
|
||
span code\`\`\` text {MD038}␊
|
||
text␊
|
||
text text \`\`\`\`code {MD038}␊
|
||
span code␊
|
||
span\`\`\`\` text␊
|
||
text.␊
|
||
␊
|
||
Text [space](link) text [space](link) text [space](link) text. {MD039}␊
|
||
␊
|
||
Space *inside {MD037}␊
|
||
multi-line* emphasis. {MD037}␊
|
||
␊
|
||
{MD031:3} {MD035:11} {MD040:21}␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"first-line-heading": false,␊
|
||
"emphasis-style": false,␊
|
||
"strong-style": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## MD041-MD050.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: 'Not a heading {MD041}',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 1,
|
||
ruleDescription: 'First line in a file should be a top-level heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md',
|
||
ruleNames: [
|
||
'MD041',
|
||
'first-line-heading',
|
||
'first-line-h1',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[empty]()',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
9,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 3,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[empty](#)',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
10,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 5,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[empty](<>)',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
11,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 7,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[empty one]()',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
25,
|
||
13,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 17,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '# Heading',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 64,
|
||
ruleDescription: 'Required heading structure',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md043.md',
|
||
ruleNames: [
|
||
'MD043',
|
||
'required-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: markdownlint; Actual: MARKDOWNLINT',
|
||
errorRange: [
|
||
29,
|
||
12,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 12,
|
||
editColumn: 29,
|
||
insertText: 'markdownlint',
|
||
},
|
||
lineNumber: 9,
|
||
ruleDescription: 'Proper names should have the correct capitalization',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
|
||
ruleNames: [
|
||
'MD044',
|
||
'proper-names',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: markdownlint; Actual: Markdownlint',
|
||
errorRange: [
|
||
7,
|
||
12,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 12,
|
||
editColumn: 7,
|
||
insertText: 'markdownlint',
|
||
},
|
||
lineNumber: 12,
|
||
ruleDescription: 'Proper names should have the correct capitalization',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
|
||
ruleNames: [
|
||
'MD044',
|
||
'proper-names',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: markdownlint; Actual: MarkDownLint',
|
||
errorRange: [
|
||
1,
|
||
12,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 12,
|
||
editColumn: 1,
|
||
insertText: 'markdownlint',
|
||
},
|
||
lineNumber: 15,
|
||
ruleDescription: 'Proper names should have the correct capitalization',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
|
||
ruleNames: [
|
||
'MD044',
|
||
'proper-names',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: null,
|
||
errorRange: [
|
||
33,
|
||
14,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 19,
|
||
ruleDescription: 'Images should have alternate text (alt text)',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md045.md',
|
||
ruleNames: [
|
||
'MD045',
|
||
'no-alt-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: fenced; Actual: indented',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 25,
|
||
ruleDescription: 'Code block style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
|
||
ruleNames: [
|
||
'MD046',
|
||
'code-block-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: null,
|
||
errorRange: [
|
||
41,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
editColumn: 42,
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 64,
|
||
ruleDescription: 'Files should end with a single newline character',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md',
|
||
ruleNames: [
|
||
'MD047',
|
||
'single-trailing-newline',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: backtick; Actual: tilde',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 27,
|
||
ruleDescription: 'Code fence style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
|
||
ruleNames: [
|
||
'MD048',
|
||
'code-fence-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
21,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 21,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 31,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
26,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 26,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 31,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
49,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 49,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 31,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
56,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 56,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 31,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
10,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 10,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 36,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
9,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 9,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 37,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
14,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 14,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 45,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
21,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 21,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 45,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
28,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 28,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 45,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
40,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 40,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 45,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
47,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 47,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 45,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
54,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 54,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 45,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
56,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 56,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 45,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
68,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 68,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 45,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
30,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 30,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 33,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
36,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 36,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 33,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
62,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 62,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 33,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
70,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 70,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 33,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
8,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 8,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 41,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
9,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 9,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 42,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
14,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 14,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 47,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
22,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 22,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 47,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
30,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 30,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 47,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
43,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 43,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 47,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
51,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 51,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 47,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
59,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 59,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 47,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
62,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 62,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 47,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
75,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 75,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 47,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
],
|
||
fixed: `Not a heading {MD041}␊
|
||
␊
|
||
An [empty]() link {MD042}␊
|
||
␊
|
||
An [empty](#) link with fragment {MD042}␊
|
||
␊
|
||
An [empty](<>) link with angle brackets {MD042}␊
|
||
␊
|
||
This is a test file for the markdownlint package. {MD044}␊
|
||
␊
|
||
This is a paragraph␊
|
||
about markdownlint {MD044}␊
|
||
that capitalizes the␊
|
||
name wrong twice:␊
|
||
markdownlint. {MD044}␊
|
||
␊
|
||
A [normal](link) and an [empty one]() and a [fragment](#one). {MD042}␊
|
||
␊
|
||
An image without alternate text  {MD045}␊
|
||
␊
|
||
\`\`\`text␊
|
||
Fenced code␊
|
||
\`\`\`␊
|
||
␊
|
||
Indented code {MD046}␊
|
||
␊
|
||
~~~text␊
|
||
Fenced code {MD048:27}␊
|
||
~~~␊
|
||
␊
|
||
Mixed *emphasis* on *this* line *with* multiple *issues* {MD049}␊
|
||
␊
|
||
Mixed __strong emphasis__ on __this__ line __with__ multiple __issues__ {MD050}␊
|
||
␊
|
||
Inconsistent␊
|
||
emphasis *text {MD049}␊
|
||
spanning* many {MD049}␊
|
||
lines␊
|
||
␊
|
||
Inconsistent␊
|
||
strong __emphasis {MD050}␊
|
||
spanning__ many {MD050}␊
|
||
lines␊
|
||
␊
|
||
Inconsistent *double* text *interleaved* text *double* *interleaved* emphasis. {MD049}␊
|
||
␊
|
||
Inconsistent __double__ text __interleaved__ text __double__ __interleaved__ strong emphasis. {MD050}␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"line-length": false,␊
|
||
"required-headings": {␊
|
||
"headings": [␊
|
||
"# Heading"␊
|
||
]␊
|
||
},␊
|
||
"proper-names": {␊
|
||
"names": [␊
|
||
"markdownlint"␊
|
||
]␊
|
||
},␊
|
||
"link-fragments": false␊
|
||
} -->␊
|
||
␊
|
||
Missing newline character {MD043} {MD047}␊
|
||
`,
|
||
}
|
||
|
||
## MD051-MD060.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '[link with a missing](#fragment)',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
32,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 3,
|
||
ruleDescription: 'Link fragments should be valid',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
|
||
ruleNames: [
|
||
'MD051',
|
||
'link-fragments',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[link with a][undefined-label]',
|
||
errorDetail: 'Missing link or image reference definition: "undefined-label"',
|
||
errorRange: [
|
||
3,
|
||
30,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 7,
|
||
ruleDescription: 'Reference links and images should use a label that is defined',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md',
|
||
ruleNames: [
|
||
'MD052',
|
||
'reference-links-images',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[unused-label]: {MD053}',
|
||
errorDetail: 'Unused link or image reference definition: "unused-label"',
|
||
errorRange: [
|
||
1,
|
||
23,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: -1,
|
||
},
|
||
lineNumber: 10,
|
||
ruleDescription: 'Link and image reference definitions should be needed',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md053.md',
|
||
ruleNames: [
|
||
'MD053',
|
||
'link-image-reference-definitions',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# detailed-results-MD051-MD060␊
|
||
␊
|
||
A [link with a missing](#fragment) {MD051}␊
|
||
␊
|
||
A [link with a][defined-label]␊
|
||
␊
|
||
A [link with a][undefined-label] {MD052}␊
|
||
␊
|
||
[defined-label]: https://example.com␊
|
||
`,
|
||
}
|
||
|
||
## alternate_top_level_heading.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: 'Another one {MD025}',
|
||
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',
|
||
],
|
||
},
|
||
],
|
||
fixed: `## A level 2 top level heading␊
|
||
␊
|
||
## Another one {MD025}␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"single-title": {␊
|
||
"level": 2␊
|
||
},␊
|
||
"first-line-heading": {␊
|
||
"level": 2␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## atx-heading-spacing-trailing-spaces.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '##Heading 1 {MD018}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
editColumn: 3,
|
||
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',
|
||
ruleNames: [
|
||
'MD018',
|
||
'no-missing-space-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 2 {MD019}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
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',
|
||
ruleNames: [
|
||
'MD019',
|
||
'no-multiple-space-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '##Heading 3 {MD020} ##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 24,
|
||
editColumn: 1,
|
||
insertText: '## Heading 3 {MD020} ##',
|
||
},
|
||
lineNumber: 9,
|
||
ruleDescription: 'No space inside hashes on closed atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
|
||
ruleNames: [
|
||
'MD020',
|
||
'no-missing-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 4 {MD020}##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
20,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 24,
|
||
editColumn: 1,
|
||
insertText: '## Heading 4 {MD020} ##',
|
||
},
|
||
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',
|
||
ruleNames: [
|
||
'MD020',
|
||
'no-missing-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '##Heading 5 {MD020}##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 23,
|
||
editColumn: 1,
|
||
insertText: '## Heading 5 {MD020} ##',
|
||
},
|
||
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',
|
||
ruleNames: [
|
||
'MD020',
|
||
'no-missing-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 5 {MD021} ##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 3,
|
||
editColumn: 4,
|
||
},
|
||
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',
|
||
ruleNames: [
|
||
'MD021',
|
||
'no-multiple-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 6 {MD021} ##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
22,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 22,
|
||
},
|
||
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',
|
||
ruleNames: [
|
||
'MD021',
|
||
'no-multiple-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 7 {MD021} ##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 3,
|
||
editColumn: 4,
|
||
},
|
||
lineNumber: 19,
|
||
ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
|
||
ruleNames: [
|
||
'MD021',
|
||
'no-multiple-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 7 {MD021} ##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
25,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 25,
|
||
},
|
||
lineNumber: 19,
|
||
ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
|
||
ruleNames: [
|
||
'MD021',
|
||
'no-multiple-space-closed-atx',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# atx-heading-spacing-trailing-spaces␊
|
||
␊
|
||
<!-- markdownlint-disable heading-style -->␊
|
||
␊
|
||
## Heading 1 {MD018} ␊
|
||
␊
|
||
## Heading 2 {MD019} ␊
|
||
␊
|
||
## Heading 3 {MD020} ##␊
|
||
␊
|
||
## Heading 4 {MD020} ##␊
|
||
␊
|
||
## Heading 5 {MD020} ##␊
|
||
␊
|
||
## Heading 5 {MD021} ## ␊
|
||
␊
|
||
## Heading 6 {MD021} ## ␊
|
||
␊
|
||
## Heading 7 {MD021} ## ␊
|
||
`,
|
||
}
|
||
|
||
## atx_closed_heading_spacing.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '#Heading 1 {MD020} #',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 20,
|
||
editColumn: 1,
|
||
insertText: '# Heading 1 {MD020} #',
|
||
},
|
||
lineNumber: 1,
|
||
ruleDescription: 'No space inside hashes on closed atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
|
||
ruleNames: [
|
||
'MD020',
|
||
'no-missing-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 2 {MD020}##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
20,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 22,
|
||
editColumn: 1,
|
||
insertText: '## Heading 2 {MD020} ##',
|
||
},
|
||
lineNumber: 3,
|
||
ruleDescription: 'No space inside hashes on closed atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
|
||
ruleNames: [
|
||
'MD020',
|
||
'no-missing-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '##Heading 3 {MD020}##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 21,
|
||
editColumn: 1,
|
||
insertText: '## Heading 3 {MD020} ##',
|
||
},
|
||
lineNumber: 5,
|
||
ruleDescription: 'No space inside hashes on closed atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
|
||
ruleNames: [
|
||
'MD020',
|
||
'no-missing-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 4 {MD021} ##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 4,
|
||
},
|
||
lineNumber: 7,
|
||
ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
|
||
ruleNames: [
|
||
'MD021',
|
||
'no-multiple-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 5 {MD021} ##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
22,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 22,
|
||
},
|
||
lineNumber: 9,
|
||
ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
|
||
ruleNames: [
|
||
'MD021',
|
||
'no-multiple-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 6 {MD021} ##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 4,
|
||
},
|
||
lineNumber: 11,
|
||
ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
|
||
ruleNames: [
|
||
'MD021',
|
||
'no-multiple-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 6 {MD021} ##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
23,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 23,
|
||
},
|
||
lineNumber: 11,
|
||
ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
|
||
ruleNames: [
|
||
'MD021',
|
||
'no-multiple-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 7 {MD021} ##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 4,
|
||
},
|
||
lineNumber: 13,
|
||
ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
|
||
ruleNames: [
|
||
'MD021',
|
||
'no-multiple-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 7 {MD021} ##',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
24,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 24,
|
||
},
|
||
lineNumber: 13,
|
||
ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
|
||
ruleNames: [
|
||
'MD021',
|
||
'no-multiple-space-closed-atx',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Heading 1 {MD020} #␊
|
||
␊
|
||
## Heading 2 {MD020} ##␊
|
||
␊
|
||
## Heading 3 {MD020} ##␊
|
||
␊
|
||
## Heading 4 {MD021} ##␊
|
||
␊
|
||
## Heading 5 {MD021} ##␊
|
||
␊
|
||
## Heading 6 {MD021} ##␊
|
||
␊
|
||
## Heading 7 {MD021} ##␊
|
||
␊
|
||
## Heading 8\\#␊
|
||
␊
|
||
## Heading 9 \\#␊
|
||
␊
|
||
## Heading 10 \\#␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"first-line-heading": false,␊
|
||
"heading-style": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## atx_heading_spacing.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '#Heading 1 {MD018}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
editColumn: 2,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 1,
|
||
ruleDescription: 'No space after hash on atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
|
||
ruleNames: [
|
||
'MD018',
|
||
'no-missing-space-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 2 {MD019}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 4,
|
||
},
|
||
lineNumber: 3,
|
||
ruleDescription: 'Multiple spaces after hash on atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
|
||
ruleNames: [
|
||
'MD019',
|
||
'no-multiple-space-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 3 {MD019}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 4,
|
||
},
|
||
lineNumber: 5,
|
||
ruleDescription: 'Multiple spaces after hash on atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
|
||
ruleNames: [
|
||
'MD019',
|
||
'no-multiple-space-atx',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Heading 1 {MD018}␊
|
||
␊
|
||
## Heading 2 {MD019}␊
|
||
␊
|
||
## Heading 3 {MD019}␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"first-line-heading": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## 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 -␊
|
||
␊
|
||
-␊
|
||
-␊
|
||
-␊
|
||
␊
|
||
<!-- markdownlint-disable-file ul-style -->␊
|
||
`,
|
||
}
|
||
|
||
## bare-urls-in-html.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: 'https://example.com/fail',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
6,
|
||
24,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 24,
|
||
editColumn: 6,
|
||
insertText: '<https://example.com/fail>',
|
||
},
|
||
lineNumber: 7,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com/fail',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
49,
|
||
24,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 24,
|
||
editColumn: 49,
|
||
insertText: '<https://example.com/fail>',
|
||
},
|
||
lineNumber: 11,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com/fail',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
49,
|
||
24,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 24,
|
||
editColumn: 49,
|
||
insertText: '<https://example.com/fail>',
|
||
},
|
||
lineNumber: 13,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com/fail',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
41,
|
||
24,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 24,
|
||
editColumn: 41,
|
||
insertText: '<https://example.com/fail>',
|
||
},
|
||
lineNumber: 19,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com/fail',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
16,
|
||
24,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 24,
|
||
editColumn: 16,
|
||
insertText: '<https://example.com/fail>',
|
||
},
|
||
lineNumber: 21,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com/fail',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
17,
|
||
24,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 24,
|
||
editColumn: 17,
|
||
insertText: '<https://example.com/fail>',
|
||
},
|
||
lineNumber: 23,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Bare URLs in HTML␊
|
||
␊
|
||
<p>␊
|
||
https://example.com/pass␊
|
||
</p>␊
|
||
␊
|
||
Text <https://example.com/fail> text. {MD034}␊
|
||
␊
|
||
Text <code>https://example.com/pass</code> text.␊
|
||
␊
|
||
Text <code>https://example.com/pass</code> text <https://example.com/fail> text. {MD034}␊
|
||
␊
|
||
Text <code>https://example.com/pass</code> text <https://example.com/fail> text <code>https://example.com/pass</code> text. {MD034}␊
|
||
␊
|
||
Text <em> text <strong>text</strong> https://example.com/pass </em> text.␊
|
||
␊
|
||
Text <em> text <em>text</em> https://example.com/pass </em> text.␊
|
||
␊
|
||
Text <em> text <em>text</em> text </em> <https://example.com/fail> text. {MD034}␊
|
||
␊
|
||
Text <br> text <https://example.com/fail> <br> text. {MD034}␊
|
||
␊
|
||
Text <br/> text <https://example.com/fail> <br/> text. {MD034}␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"line-length": false,␊
|
||
"no-inline-html": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## bare-urls.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: 'https://example.com',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
15,
|
||
19,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 19,
|
||
editColumn: 15,
|
||
insertText: '<https://example.com>',
|
||
},
|
||
lineNumber: 3,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com/',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
15,
|
||
20,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 20,
|
||
editColumn: 15,
|
||
insertText: '<https://example.com/>',
|
||
},
|
||
lineNumber: 5,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com/?query=str...',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
15,
|
||
38,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 38,
|
||
editColumn: 15,
|
||
insertText: '<https://example.com/?query=string#hash>',
|
||
},
|
||
lineNumber: 7,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com/info.htm',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
15,
|
||
28,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 28,
|
||
editColumn: 15,
|
||
insertText: '<https://example.com/info.htm>',
|
||
},
|
||
lineNumber: 9,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
7,
|
||
19,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 19,
|
||
editColumn: 7,
|
||
insertText: '<https://example.com>',
|
||
},
|
||
lineNumber: 11,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
11,
|
||
19,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 19,
|
||
editColumn: 11,
|
||
insertText: '<https://example.com>',
|
||
},
|
||
lineNumber: 13,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
25,
|
||
19,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 19,
|
||
editColumn: 25,
|
||
insertText: '<https://example.com>',
|
||
},
|
||
lineNumber: 29,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
26,
|
||
19,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 19,
|
||
editColumn: 26,
|
||
insertText: '<https://example.com>',
|
||
},
|
||
lineNumber: 31,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
19,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 19,
|
||
editColumn: 1,
|
||
insertText: '<https://example.com>',
|
||
},
|
||
lineNumber: 73,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
19,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 19,
|
||
editColumn: 1,
|
||
insertText: '<https://example.com>',
|
||
},
|
||
lineNumber: 78,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com#heading-',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
27,
|
||
28,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 28,
|
||
editColumn: 27,
|
||
insertText: '<https://example.com#heading->',
|
||
},
|
||
lineNumber: 88,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'user@example.com',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
40,
|
||
16,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 16,
|
||
editColumn: 40,
|
||
insertText: '<user@example.com>',
|
||
},
|
||
lineNumber: 96,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
59,
|
||
19,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 19,
|
||
editColumn: 59,
|
||
insertText: '<https://example.com>',
|
||
},
|
||
lineNumber: 106,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Detailed Results Bare URLs␊
|
||
␊
|
||
For more, see <https://example.com>. {MD034}␊
|
||
␊
|
||
For more, see <https://example.com/>. {MD034}␊
|
||
␊
|
||
For more, see <https://example.com/?query=string#hash>. {MD034}␊
|
||
␊
|
||
For more, see <https://example.com/info.htm>. {MD034}␊
|
||
␊
|
||
Visit <https://example.com>, then refresh. {MD034}␊
|
||
␊
|
||
The site (<https://example.com>) is down. {MD034}␊
|
||
␊
|
||
<!-- markdownlint-disable descriptive-link-text line-length no-inline-html -->␊
|
||
␊
|
||
Some documents use <a href="https://example.com">to link</a>.␊
|
||
␊
|
||
Or <a href="https://example.com/info.htm">to link</a>.␊
|
||
␊
|
||
Or repeat the URL <a href="https://example.com">https://example.com</a>.␊
|
||
␊
|
||
Or <a href="https://example.com/info.htm">https://example.com/info.htm</a>.␊
|
||
␊
|
||
This is allowed to avoid embedding angle brackets in HTML <a href="https://example.com">Text https://example.com</a>.␊
|
||
␊
|
||
As is <a href="https://example.com/info.htm">https://example.com/info.htm text</a>.␊
|
||
␊
|
||
<br> Another violation: <https://example.com>. {MD034} <br>␊
|
||
␊
|
||
<br/> Another violation: <https://example.com>. {MD034} <br/>␊
|
||
␊
|
||
This is not a bare [link]( https://example.com ).␊
|
||
␊
|
||
Nor is [link](https://example.com/path-with(parens)).␊
|
||
␊
|
||
Or <https://example.com/path-with(parens)>.␊
|
||
␊
|
||
URLs in HTML attributes are not bare:␊
|
||
␊
|
||
<element-name first-attribute=" https://example.com/first " second-attribute=" https://example.com/second ">␊
|
||
Text␊
|
||
</element-name>␊
|
||
␊
|
||
<element-name␊
|
||
first-attribute=" https://example.com/first "␊
|
||
second-attribute=" https://example.com/second "></element-name>␊
|
||
␊
|
||
URLs surrounded by HTML tags are not bare:␊
|
||
␊
|
||
Not <code>https://example.com</code> bare.␊
|
||
␊
|
||
Not <pre>https://example.com</pre> bare.␊
|
||
␊
|
||
<p>␊
|
||
Not bare due to being in an HTML block:␊
|
||
https://example.com␊
|
||
<code>https://example.com</code>␊
|
||
<pre>https://example.com</pre>␊
|
||
</p>␊
|
||
␊
|
||
<div>␊
|
||
https://example.com␊
|
||
</div>␊
|
||
␊
|
||
<div>␊
|
||
https://example.com␊
|
||
␊
|
||
</div>␊
|
||
␊
|
||
<div>␊
|
||
␊
|
||
<https://example.com> {MD034}␊
|
||
</div>␊
|
||
␊
|
||
<div>␊
|
||
␊
|
||
<https://example.com> {MD034}␊
|
||
␊
|
||
</div>␊
|
||
␊
|
||
URLs in link and image text are not bare:␊
|
||
␊
|
||
Text [link to https://example.com site](https://example.com) text.␊
|
||
␊
|
||
Image  text.␊
|
||
␊
|
||
URLs may end with a dash: <https://example.com#heading-> {MD034}␊
|
||
␊
|
||
... when explicit: <https://example.com#heading->␊
|
||
␊
|
||
... when embedded: <code>https://example.com#heading-</code>␊
|
||
␊
|
||
Links with spaces inside angle brackets are okay: [blue jay](<https://en.wikipedia.org/wiki/Blue jay>)␊
|
||
␊
|
||
Email addresses are treated similarly: <user@example.com> {MD034}␊
|
||
␊
|
||
Angle brackets work the same for email: <user@example.com>␊
|
||
␊
|
||
Unusual email addresses are handled: <user@.com>␊
|
||
␊
|
||
---␊
|
||
␊
|
||
[is-a-valid]: https://example.com␊
|
||
␊
|
||
Links bind to the innermost [link that [is-a-valid] link](<https://example.com>) {MD034}␊
|
||
␊
|
||
But not if the [link [is-not-a-valid] link](https://example.com)␊
|
||
␊
|
||
Escaping both inner square brackets avoids confusion:␊
|
||
[link \\[is-not-a-valid\\] link](https://example.com)␊
|
||
`,
|
||
}
|
||
|
||
## blanks-around-fences-in-lists.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 6,
|
||
},
|
||
lineNumber: 5,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '2. ```text',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 6,
|
||
},
|
||
lineNumber: 6,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 9,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '3. ```text',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 9,
|
||
},
|
||
lineNumber: 9,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 18,
|
||
},
|
||
lineNumber: 17,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '- ```text',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 18,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 21,
|
||
},
|
||
lineNumber: 20,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '- ```text',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 21,
|
||
},
|
||
lineNumber: 21,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> ```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
lineNumber: 30,
|
||
},
|
||
lineNumber: 29,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> 2. ```text',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
lineNumber: 30,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> ```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
lineNumber: 33,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> 3. ```text',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
lineNumber: 33,
|
||
},
|
||
lineNumber: 33,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> ```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
lineNumber: 42,
|
||
},
|
||
lineNumber: 41,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> - ```text',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
lineNumber: 42,
|
||
},
|
||
lineNumber: 42,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> ```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
lineNumber: 45,
|
||
},
|
||
lineNumber: 44,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> - ```text',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
lineNumber: 45,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > ```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `> >␊
|
||
`,
|
||
lineNumber: 54,
|
||
},
|
||
lineNumber: 53,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > 2. ```text',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `> >␊
|
||
`,
|
||
lineNumber: 54,
|
||
},
|
||
lineNumber: 54,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > ```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `> >␊
|
||
`,
|
||
lineNumber: 57,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > 3. ```text',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `> >␊
|
||
`,
|
||
lineNumber: 57,
|
||
},
|
||
lineNumber: 57,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > ```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `> >␊
|
||
`,
|
||
lineNumber: 66,
|
||
},
|
||
lineNumber: 65,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > - ```text',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `> >␊
|
||
`,
|
||
lineNumber: 66,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > ```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `> >␊
|
||
`,
|
||
lineNumber: 69,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > - ```text',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `> >␊
|
||
`,
|
||
lineNumber: 69,
|
||
},
|
||
lineNumber: 69,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Blanks Around Fences In Lists␊
|
||
␊
|
||
1. \`\`\`text␊
|
||
Text␊
|
||
\`\`\`␊
|
||
␊
|
||
2. \`\`\`text␊
|
||
Text␊
|
||
\`\`\`␊
|
||
␊
|
||
3. \`\`\`text␊
|
||
Text␊
|
||
\`\`\`␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
- \`\`\`text␊
|
||
Text␊
|
||
\`\`\`␊
|
||
␊
|
||
- \`\`\`text␊
|
||
Text␊
|
||
\`\`\`␊
|
||
␊
|
||
- \`\`\`text␊
|
||
Text␊
|
||
\`\`\`␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> 1. \`\`\`text␊
|
||
> Text␊
|
||
> \`\`\`␊
|
||
>␊
|
||
> 2. \`\`\`text␊
|
||
> Text␊
|
||
> \`\`\`␊
|
||
>␊
|
||
> 3. \`\`\`text␊
|
||
> Text␊
|
||
> \`\`\`␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> - \`\`\`text␊
|
||
> Text␊
|
||
> \`\`\`␊
|
||
>␊
|
||
> - \`\`\`text␊
|
||
> Text␊
|
||
> \`\`\`␊
|
||
>␊
|
||
> - \`\`\`text␊
|
||
> Text␊
|
||
> \`\`\`␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> > 1. \`\`\`text␊
|
||
> > Text␊
|
||
> > \`\`\`␊
|
||
> >␊
|
||
> > 2. \`\`\`text␊
|
||
> > Text␊
|
||
> > \`\`\`␊
|
||
> >␊
|
||
> > 3. \`\`\`text␊
|
||
> > Text␊
|
||
> > \`\`\`␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> > - \`\`\`text␊
|
||
> > Text␊
|
||
> > \`\`\`␊
|
||
> >␊
|
||
> > - \`\`\`text␊
|
||
> > Text␊
|
||
> > \`\`\`␊
|
||
> >␊
|
||
> > - \`\`\`text␊
|
||
> > Text␊
|
||
> > \`\`\`␊
|
||
␊
|
||
{MD031:5} {MD031:6} {MD031:8} {MD031:9} {MD031:17} {MD031:18} {MD031:20}␊
|
||
{MD031:21} {MD031:29} {MD031:30} {MD031:32} {MD031:33} {MD031:41} {MD031:42}␊
|
||
{MD031:44} {MD031:45} {MD031:53} {MD031:54} {MD031:56} {MD031:57} {MD031:65}␊
|
||
{MD031:66} {MD031:68} {MD031:69}␊
|
||
`,
|
||
}
|
||
|
||
## blanks-around-headings--1-1.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: 'Elderberry {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 21,
|
||
},
|
||
lineNumber: 19,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Blanks Around Headings␊
|
||
␊
|
||
## Apple␊
|
||
␊
|
||
Text␊
|
||
## Banana␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
## Cherry␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
␊
|
||
## Durian ##␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
Elderberry {MD022}␊
|
||
------------------␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
---␊
|
||
## Fig␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"heading-style": false,␊
|
||
"no-multiple-blanks": false,␊
|
||
"blanks-around-headings": {␊
|
||
"lines_above": -1,␊
|
||
"lines_below": 1␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## blanks-around-headings-0-2.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '## Banana {MD022}',
|
||
errorDetail: 'Expected: 2; Actual: 1; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 9,
|
||
},
|
||
lineNumber: 8,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Elderberry {MD022}',
|
||
errorDetail: 'Expected: 2; Actual: 0; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
␊
|
||
`,
|
||
lineNumber: 23,
|
||
},
|
||
lineNumber: 21,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Blanks Around Headings␊
|
||
␊
|
||
␊
|
||
## Apple␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
## Banana {MD022}␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
## Cherry␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
## Durian ##␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
---␊
|
||
Elderberry {MD022}␊
|
||
------------------␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
## Fig␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"heading-style": false,␊
|
||
"no-multiple-blanks": false,␊
|
||
"blanks-around-headings": {␊
|
||
"lines_above": 0,␊
|
||
"lines_below": 2␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## blanks-around-headings-1--1.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '## Durian {MD022} ##',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 16,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Blanks Around Headings␊
|
||
␊
|
||
## Apple␊
|
||
Text␊
|
||
␊
|
||
## Banana␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
## Cherry␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
---␊
|
||
␊
|
||
## Durian {MD022} ##␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
---␊
|
||
␊
|
||
Elderberry␊
|
||
------------------␊
|
||
Text␊
|
||
␊
|
||
## Fig␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"heading-style": false,␊
|
||
"no-multiple-blanks": false,␊
|
||
"blanks-around-headings": {␊
|
||
"lines_above": 1,␊
|
||
"lines_below": -1␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## blanks-around-headings-3-0.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '## Durian {MD022} ##',
|
||
errorDetail: 'Expected: 3; Actual: 2; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 19,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Elderberry {MD022}',
|
||
errorDetail: 'Expected: 3; Actual: 1; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
␊
|
||
`,
|
||
},
|
||
lineNumber: 22,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Blanks Around Headings␊
|
||
␊
|
||
␊
|
||
␊
|
||
## Apple␊
|
||
Text␊
|
||
␊
|
||
␊
|
||
␊
|
||
## Banana␊
|
||
Text␊
|
||
␊
|
||
␊
|
||
␊
|
||
## Cherry␊
|
||
Text␊
|
||
␊
|
||
␊
|
||
␊
|
||
## Durian {MD022} ##␊
|
||
Text␊
|
||
␊
|
||
␊
|
||
␊
|
||
Elderberry {MD022}␊
|
||
------------------␊
|
||
Text␊
|
||
␊
|
||
␊
|
||
␊
|
||
## Fig␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"heading-style": false,␊
|
||
"no-multiple-blanks": false,␊
|
||
"blanks-around-headings": {␊
|
||
"lines_above": 3,␊
|
||
"lines_below": 0␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## blanks-around-headings-arrays.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '# Apple - Top {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: '## Banana - Top {MD022}',
|
||
errorDetail: 'Expected: 2; Actual: 1; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 18,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Banana - Bottom {MD022}',
|
||
errorDetail: 'Expected: 2; Actual: 1; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 25,
|
||
},
|
||
lineNumber: 24,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '### Cherry - Top {MD022}',
|
||
errorDetail: 'Expected: 3; Actual: 2; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 35,
|
||
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: '### Cherry - Bottom {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 42,
|
||
},
|
||
lineNumber: 41,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '#### Durian - Bottom {MD022} ####',
|
||
errorDetail: 'Expected: 3; Actual: 1; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
␊
|
||
`,
|
||
lineNumber: 55,
|
||
},
|
||
lineNumber: 54,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '##### Elderberry - Top {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 61,
|
||
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: '###### Fig - Top {MD022} ######',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 74,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '###### Fig - Bottom {MD022} ######',
|
||
errorDetail: 'Expected: 4; Actual: 1; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
␊
|
||
␊
|
||
`,
|
||
lineNumber: 82,
|
||
},
|
||
lineNumber: 81,
|
||
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: 'Grape - Top {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 89,
|
||
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: 'Honeycomb - Top {MD022}',
|
||
errorDetail: 'Expected: 2; Actual: 1; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 107,
|
||
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: 'Honeycomb - Bottom {MD022}',
|
||
errorDetail: 'Expected: 2; Actual: 1; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 116,
|
||
},
|
||
lineNumber: 114,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Blanks Around Headings (Arrays)␊
|
||
␊
|
||
# Apple - Good␊
|
||
Text␊
|
||
␊
|
||
# Apple - Top {MD022}␊
|
||
Text␊
|
||
␊
|
||
# Apple - Bottom␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
␊
|
||
## Banana - Good␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
␊
|
||
## Banana - Top {MD022}␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
␊
|
||
## Banana - Bottom {MD022}␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
␊
|
||
␊
|
||
### Cherry - Good␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
␊
|
||
␊
|
||
### Cherry - Top {MD022}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
␊
|
||
␊
|
||
### Cherry - Bottom {MD022}␊
|
||
␊
|
||
Text␊
|
||
#### Durian - Good ####␊
|
||
␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
#### Durian - Top ####␊
|
||
␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
#### Durian - Bottom {MD022} ####␊
|
||
␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
##### Elderberry - Good␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
##### Elderberry - Top {MD022}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
##### Elderberry - Bottom␊
|
||
Text␊
|
||
␊
|
||
###### Fig - Good ######␊
|
||
␊
|
||
␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
###### Fig - Top {MD022} ######␊
|
||
␊
|
||
␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
###### Fig - Bottom {MD022} ######␊
|
||
␊
|
||
␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
Grape - Good␊
|
||
============␊
|
||
␊
|
||
---␊
|
||
␊
|
||
Grape - Top {MD022}␊
|
||
===================␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
Grape - Bottom␊
|
||
==============␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
␊
|
||
Honeycomb - Good␊
|
||
---------␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
␊
|
||
Honeycomb - Top {MD022}␊
|
||
-----------------------␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
␊
|
||
Honeycomb - Bottom {MD022}␊
|
||
--------------------------␊
|
||
␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"heading-style": false,␊
|
||
"no-multiple-blanks": false,␊
|
||
"single-title": false,␊
|
||
"blanks-around-headings": {␊
|
||
"lines_above": [ 1, 2, 3, -1],␊
|
||
"lines_below": [ -1, 2, 1, 3, -1, 4, 10 ]␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## blanks-around-headings.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '## Banana {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 8,
|
||
},
|
||
lineNumber: 7,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Durian {MD022} ##',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 13,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Elderberry {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 18,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Elderberry {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 20,
|
||
},
|
||
lineNumber: 18,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Blanks Around Headings␊
|
||
␊
|
||
## Apple␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
## Banana {MD022}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
## Cherry␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
## Durian {MD022} ##␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
---␊
|
||
␊
|
||
Elderberry {MD022}␊
|
||
------------------␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
## Fig␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"heading-style": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## blanks-around-tables.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe',
|
||
errorRange: [
|
||
1,
|
||
1,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 15,
|
||
ruleDescription: 'Table pipe style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md055.md',
|
||
ruleNames: [
|
||
'MD055',
|
||
'table-pipe-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe',
|
||
errorRange: [
|
||
29,
|
||
1,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 15,
|
||
ruleDescription: 'Table pipe style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md055.md',
|
||
ruleNames: [
|
||
'MD055',
|
||
'table-pipe-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 2; Actual: 1; Too few cells, row will be missing data',
|
||
errorRange: [
|
||
29,
|
||
1,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 15,
|
||
ruleDescription: 'Table column count',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md056.md',
|
||
ruleNames: [
|
||
'MD056',
|
||
'table-column-count',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '| Header | {MD058} |',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 8,
|
||
ruleDescription: 'Tables should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
|
||
ruleNames: [
|
||
'MD058',
|
||
'blanks-around-tables',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '| Cell | {MD058} |',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 20,
|
||
},
|
||
lineNumber: 19,
|
||
ruleDescription: 'Tables should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
|
||
ruleNames: [
|
||
'MD058',
|
||
'blanks-around-tables',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> | Header | {MD058} |',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
},
|
||
lineNumber: 25,
|
||
ruleDescription: 'Tables should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
|
||
ruleNames: [
|
||
'MD058',
|
||
'blanks-around-tables',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> | Cell | {MD058} |',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
lineNumber: 28,
|
||
},
|
||
lineNumber: 27,
|
||
ruleDescription: 'Tables should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
|
||
ruleNames: [
|
||
'MD058',
|
||
'blanks-around-tables',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> | Cell | {MD058} |',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
lineNumber: 33,
|
||
},
|
||
lineNumber: 32,
|
||
ruleDescription: 'Tables should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
|
||
ruleNames: [
|
||
'MD058',
|
||
'blanks-around-tables',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '| Header | {MD058} |',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 36,
|
||
ruleDescription: 'Tables should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
|
||
ruleNames: [
|
||
'MD058',
|
||
'blanks-around-tables',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '| Cell | {MD058} |',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 39,
|
||
},
|
||
lineNumber: 38,
|
||
ruleDescription: 'Tables should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
|
||
ruleNames: [
|
||
'MD058',
|
||
'blanks-around-tables',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '| Header | {MD058} |',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 42,
|
||
ruleDescription: 'Tables should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
|
||
ruleNames: [
|
||
'MD058',
|
||
'blanks-around-tables',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '| Cell | {MD058} |',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 45,
|
||
},
|
||
lineNumber: 44,
|
||
ruleDescription: 'Tables should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
|
||
ruleNames: [
|
||
'MD058',
|
||
'blanks-around-tables',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '| Header | {MD058} |',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 48,
|
||
ruleDescription: 'Tables should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
|
||
ruleNames: [
|
||
'MD058',
|
||
'blanks-around-tables',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '| Cell | {MD058} |',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 51,
|
||
},
|
||
lineNumber: 50,
|
||
ruleDescription: 'Tables should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
|
||
ruleNames: [
|
||
'MD058',
|
||
'blanks-around-tables',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Blanks Around Tables␊
|
||
␊
|
||
| Header | Header |␊
|
||
| ------ | ------ |␊
|
||
| Cell | Cell |␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
| Header | {MD058} |␊
|
||
| ------ | ------- |␊
|
||
| Cell | Cell |␊
|
||
␊
|
||
| Header | Header |␊
|
||
| ------ | ------ |␊
|
||
| Cell | Cell |␊
|
||
Part of table {MD055} {MD056}␊
|
||
␊
|
||
| Header | Header |␊
|
||
| ------ | ------- |␊
|
||
| Cell | {MD058} |␊
|
||
␊
|
||
> Blockquote␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> Text␊
|
||
>␊
|
||
> | Header | {MD058} |␊
|
||
> | ------ | ------- |␊
|
||
> | Cell | {MD058} |␊
|
||
>␊
|
||
Text␊
|
||
␊
|
||
> | Header | Header |␊
|
||
> | ------ | ------- |␊
|
||
> | Cell | {MD058} |␊
|
||
>␊
|
||
> > Blockquote␊
|
||
␊
|
||
- List Item␊
|
||
␊
|
||
| Header | {MD058} |␊
|
||
| ------ | ------- |␊
|
||
| Cell | {MD058} |␊
|
||
␊
|
||
- List Item␊
|
||
␊
|
||
1. List Item␊
|
||
␊
|
||
| Header | {MD058} |␊
|
||
| ------ | ------- |␊
|
||
| Cell | {MD058} |␊
|
||
␊
|
||
1. List Item␊
|
||
␊
|
||
:::directive␊
|
||
␊
|
||
| Header | {MD058} |␊
|
||
| ------ | ------- |␊
|
||
| Cell | {MD058} |␊
|
||
␊
|
||
:::␊
|
||
`,
|
||
}
|
||
|
||
## blanks-around.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: `# Blanks Around␊
|
||
␊
|
||
---␊
|
||
␊
|
||
## MD022/blanks-around-headings␊
|
||
␊
|
||
>␊
|
||
### Alpha␊
|
||
> >␊
|
||
␊
|
||
<!-- comment -->␊
|
||
### Beta␊
|
||
<!-- comments --><!-- comments -->␊
|
||
␊
|
||
> Text␊
|
||
>␊
|
||
> ### Gamma␊
|
||
> >␊
|
||
> > Text␊
|
||
␊
|
||
---␊
|
||
␊
|
||
## MD031/blanks-around-fences␊
|
||
␊
|
||
> >␊
|
||
\`\`\`js␊
|
||
console.log();␊
|
||
\`\`\`␊
|
||
>␊
|
||
␊
|
||
<!-- prettier-ignore -->␊
|
||
\`\`\`js␊
|
||
console.log();␊
|
||
\`\`\`␊
|
||
<!-- prettier-ignore -->␊
|
||
␊
|
||
> Text␊
|
||
>␊
|
||
> \`\`\`js␊
|
||
> console.log();␊
|
||
> \`\`\`␊
|
||
> >␊
|
||
> >Text␊
|
||
␊
|
||
---␊
|
||
␊
|
||
## MD032/blanks-around-lists␊
|
||
␊
|
||
>␊
|
||
- List item␊
|
||
>>␊
|
||
␊
|
||
<!--comments--><!-- comments -->␊
|
||
- List item␊
|
||
<!--comment-->␊
|
||
␊
|
||
> Text␊
|
||
>␊
|
||
> - List item␊
|
||
>>␊
|
||
>> Text␊
|
||
`,
|
||
}
|
||
|
||
## blockquote-headings.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '> # Quoted heading in list {MD022} {MD025}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 23,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> # Quoted heading in list {MD022} {MD025}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 24,
|
||
},
|
||
lineNumber: 23,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > # Double-quoted heading in list {MD022} {MD025}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 26,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > # Double-quoted heading in list {MD022} {MD025}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 27,
|
||
},
|
||
lineNumber: 26,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> ## Quoted sub-heading in list {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 29,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> ## Quoted sub-heading in list {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 30,
|
||
},
|
||
lineNumber: 29,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> ## Quoted indented sub-heading in list {MD022} {MD023} {MD027}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 33,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> ## Quoted indented sub-heading in list {MD022} {MD023} {MD027}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 34,
|
||
},
|
||
lineNumber: 33,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> ## Heading One {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
lineNumber: 41,
|
||
},
|
||
lineNumber: 40,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> ## Heading Two {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
},
|
||
lineNumber: 46,
|
||
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 Three {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
},
|
||
lineNumber: 53,
|
||
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 Three {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
lineNumber: 54,
|
||
},
|
||
lineNumber: 53,
|
||
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 Four {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `> >␊
|
||
`,
|
||
},
|
||
lineNumber: 59,
|
||
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 Four {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `> >␊
|
||
`,
|
||
lineNumber: 60,
|
||
},
|
||
lineNumber: 59,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > ### Heading Five {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
},
|
||
lineNumber: 65,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > ### Heading Five {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `> >␊
|
||
`,
|
||
lineNumber: 66,
|
||
},
|
||
lineNumber: 65,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > ### Heading Six {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `> >␊
|
||
`,
|
||
},
|
||
lineNumber: 71,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > ### Heading Six {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Below',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
lineNumber: 72,
|
||
},
|
||
lineNumber: 71,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> ## Quoted indented sub-head...',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 17,
|
||
ruleDescription: 'Headings must start at the beginning of the line',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
|
||
ruleNames: [
|
||
'MD023',
|
||
'heading-start-left',
|
||
],
|
||
},
|
||
{
|
||
errorContext: ' > ## Quoted indented sub-he...',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 33,
|
||
ruleDescription: 'Headings must start at the beginning of the line',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
|
||
ruleNames: [
|
||
'MD023',
|
||
'heading-start-left',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Quoted heading {MD025}',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 5,
|
||
ruleDescription: 'Multiple top-level headings in the same document',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
|
||
ruleNames: [
|
||
'MD025',
|
||
'single-title',
|
||
'single-h1',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Double-quoted heading {MD025}',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 9,
|
||
ruleDescription: 'Multiple top-level headings in the same document',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
|
||
ruleNames: [
|
||
'MD025',
|
||
'single-title',
|
||
'single-h1',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Quoted heading in list {MD022}...',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 23,
|
||
ruleDescription: 'Multiple top-level headings in the same document',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
|
||
ruleNames: [
|
||
'MD025',
|
||
'single-title',
|
||
'single-h1',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Double-quoted heading in list ...',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 26,
|
||
ruleDescription: 'Multiple top-level headings in the same document',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
|
||
ruleNames: [
|
||
'MD025',
|
||
'single-title',
|
||
'single-h1',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> ## Quoted indented sub-head...',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 17,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: ' > ## Quoted indented sub-he...',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 33,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Heading␊
|
||
␊
|
||
## Sub-heading␊
|
||
␊
|
||
> # Quoted heading {MD025}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> > # Double-quoted heading {MD025}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> ## Quoted sub-heading␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> ## Quoted indented sub-heading {MD023} {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
- Item␊
|
||
item␊
|
||
␊
|
||
> # Quoted heading in list {MD022} {MD025}␊
|
||
␊
|
||
- Item␊
|
||
item␊
|
||
␊
|
||
> > # Double-quoted heading in list {MD022} {MD025}␊
|
||
␊
|
||
- Item␊
|
||
item␊
|
||
␊
|
||
> ## Quoted sub-heading in list {MD022}␊
|
||
␊
|
||
- Item␊
|
||
- Item␊
|
||
item␊
|
||
␊
|
||
> ## Quoted indented sub-heading in list {MD022} {MD023} {MD027}␊
|
||
␊
|
||
- Item␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> Text␊
|
||
>␊
|
||
> ## Heading One {MD022}␊
|
||
>␊
|
||
> Text␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> Text␊
|
||
>␊
|
||
> ## Heading Two {MD022}␊
|
||
>␊
|
||
> Text␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> Text␊
|
||
>␊
|
||
> ## Heading Three {MD022}␊
|
||
>␊
|
||
> Text␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> > Text␊
|
||
> >␊
|
||
> > ### Heading Four {MD022}␊
|
||
> >␊
|
||
> > Text␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> Text␊
|
||
>␊
|
||
> > ### Heading Five {MD022}␊
|
||
> >␊
|
||
> > Text␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> > Text␊
|
||
> >␊
|
||
> > ### Heading Six {MD022}␊
|
||
>␊
|
||
> Text␊
|
||
␊
|
||
Text␊
|
||
`,
|
||
}
|
||
|
||
## blockquote-spaces-nested.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '> A {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 3,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > B {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 5,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> C {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 7,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> A {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 11,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > B {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 13,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > > C {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
7,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 7,
|
||
},
|
||
lineNumber: 15,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > D {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 17,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> E {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 19,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> A {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 23,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '>> B {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 4,
|
||
},
|
||
lineNumber: 25,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '>>> C {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 27,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '>> D {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 4,
|
||
},
|
||
lineNumber: 29,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> E {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 31,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > Text {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 35,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: ' > > Text {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
6,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 6,
|
||
},
|
||
lineNumber: 39,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: ' > > Text {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
7,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 7,
|
||
},
|
||
lineNumber: 43,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > Text {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 47,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > > Text {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 51,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > > > Text {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 55,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '>> >> Text {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 4,
|
||
},
|
||
lineNumber: 59,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: ' > > Text {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
6,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 6,
|
||
},
|
||
lineNumber: 63,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: ' > > Text {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
7,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 7,
|
||
},
|
||
lineNumber: 67,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: ' > > Text {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
8,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 8,
|
||
},
|
||
lineNumber: 71,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: ' > > Text {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 4,
|
||
},
|
||
lineNumber: 75,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Nested blockquote␊
|
||
␊
|
||
> A {MD027}␊
|
||
>␊
|
||
> > B {MD027}␊
|
||
>␊
|
||
> C {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> A {MD027}␊
|
||
>␊
|
||
> > B {MD027}␊
|
||
> >␊
|
||
> > > C {MD027}␊
|
||
> >␊
|
||
> > D {MD027}␊
|
||
>␊
|
||
> E {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> A {MD027}␊
|
||
>␊
|
||
>> B {MD027}␊
|
||
>>␊
|
||
>>> C {MD027}␊
|
||
>>␊
|
||
>> D {MD027}␊
|
||
>␊
|
||
> E {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> > Text {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> > Text {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> > Text {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> > Text {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> > > Text {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> > > > Text {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
>> >> Text {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> > Text {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> > Text {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> > Text {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> > Text {MD027}␊
|
||
`,
|
||
}
|
||
|
||
## blockquote_blank_lines.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0 or 2; Actual: 1',
|
||
errorRange: [
|
||
1,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
},
|
||
lineNumber: 12,
|
||
ruleDescription: 'Trailing spaces',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
|
||
ruleNames: [
|
||
'MD009',
|
||
'no-trailing-spaces',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 1; Actual: 2',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
deleteCount: -1,
|
||
},
|
||
lineNumber: 10,
|
||
ruleDescription: 'Multiple consecutive blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md',
|
||
ruleNames: [
|
||
'MD012',
|
||
'no-multiple-blanks',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 7,
|
||
ruleDescription: 'Blank line inside blockquote',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
|
||
ruleNames: [
|
||
'MD028',
|
||
'no-blanks-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 9,
|
||
ruleDescription: 'Blank line inside blockquote',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
|
||
ruleNames: [
|
||
'MD028',
|
||
'no-blanks-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 10,
|
||
ruleDescription: 'Blank line inside blockquote',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
|
||
ruleNames: [
|
||
'MD028',
|
||
'no-blanks-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 12,
|
||
ruleDescription: 'Blank line inside blockquote',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
|
||
ruleNames: [
|
||
'MD028',
|
||
'no-blanks-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 19,
|
||
ruleDescription: 'Blank line inside blockquote',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
|
||
ruleNames: [
|
||
'MD028',
|
||
'no-blanks-blockquote',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# blockquote_blank_lines␊
|
||
␊
|
||
Some text␊
|
||
␊
|
||
> a quote␊
|
||
> same quote␊
|
||
␊
|
||
> blank line above me␊
|
||
␊
|
||
> two blank lines above me␊
|
||
␊
|
||
> space above me␊
|
||
␊
|
||
* List with embedded blockquote␊
|
||
␊
|
||
> Test␊
|
||
> Test␊
|
||
␊
|
||
> Test␊
|
||
␊
|
||
* Item 2␊
|
||
␊
|
||
> Test. The blank line below should _not_ trigger MD028 as one blockquote is␊
|
||
> inside the list, and the other is outside it.␊
|
||
␊
|
||
> Test␊
|
||
␊
|
||
Expected errors:␊
|
||
␊
|
||
{MD028:7} {MD028:9} {MD028:10} {MD028:12} {MD028:19}␊
|
||
{MD009:12} (trailing space is intentional)␊
|
||
{MD012:10} (multiple blank lines are intentional)␊
|
||
`,
|
||
}
|
||
|
||
## blockquote_spaces.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '> Foo {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 6,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> Bar {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 7,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> *foo* {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 14,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> **bar** {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 15,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> "Baz" {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 16,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> `qux` {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 17,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> Foo {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 27,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> Bar {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 28,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: ' > Text {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
4,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 4,
|
||
},
|
||
lineNumber: 33,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: ' > Text {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 37,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: ' > Text {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
6,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 6,
|
||
},
|
||
lineNumber: 41,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> ',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 47,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# blockquote_spaces␊
|
||
␊
|
||
Some text␊
|
||
␊
|
||
> Hello world␊
|
||
> Foo {MD027}␊
|
||
> Bar {MD027}␊
|
||
␊
|
||
This tests other things embedded in the blockquote:␊
|
||
␊
|
||
- foo␊
|
||
␊
|
||
> *Hello world*␊
|
||
> *foo* {MD027}␊
|
||
> **bar** {MD027}␊
|
||
> "Baz" {MD027}␊
|
||
> \`qux\` {MD027}␊
|
||
> *foo* more text␊
|
||
> **bar** more text␊
|
||
> 'baz' more text␊
|
||
> \`qux\` more text␊
|
||
>␊
|
||
> - foo␊
|
||
␊
|
||
Test the first line being indented too much:␊
|
||
␊
|
||
> Foo {MD027}␊
|
||
> Bar {MD027}␊
|
||
> Baz␊
|
||
␊
|
||
Test spaces before the blockquote:␊
|
||
␊
|
||
> Text {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> Text {MD027}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
> Text {MD027}␊
|
||
␊
|
||
Test nothing in the blockquote:␊
|
||
␊
|
||
<!-- markdownlint-disable no-trailing-spaces -->␊
|
||
␊
|
||
> ␊
|
||
{MD027:-1}␊
|
||
␊
|
||
<!-- markdownlint-disable code-block-style -->␊
|
||
␊
|
||
> Blockquoted code blocks:␊
|
||
>␊
|
||
> Code␊
|
||
> Code␊
|
||
> Code␊
|
||
>␊
|
||
> \`\`\`text␊
|
||
> Code␊
|
||
> Code␊
|
||
> Code␊
|
||
> \`\`\`␊
|
||
`,
|
||
}
|
||
|
||
## break-all-the-rules.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: h3; Actual: h4',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 3,
|
||
ruleDescription: 'Heading levels should only increment by one level at a time',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md',
|
||
ruleNames: [
|
||
'MD001',
|
||
'heading-increment',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: atx; Actual: atx_closed',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 5,
|
||
ruleDescription: 'Heading style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
|
||
ruleNames: [
|
||
'MD003',
|
||
'heading-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: atx; Actual: atx_closed',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 31,
|
||
ruleDescription: 'Heading style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
|
||
ruleNames: [
|
||
'MD003',
|
||
'heading-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: plus',
|
||
errorRange: [
|
||
2,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 2,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 8,
|
||
ruleDescription: 'Unordered list style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
|
||
ruleNames: [
|
||
'MD004',
|
||
'ul-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 3; Actual: 2',
|
||
errorRange: [
|
||
1,
|
||
4,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 12,
|
||
ruleDescription: 'Inconsistent indentation for list items at the same level',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md',
|
||
ruleNames: [
|
||
'MD005',
|
||
'list-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0; Actual: 1',
|
||
errorRange: [
|
||
1,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 8,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 2; Actual: 3',
|
||
errorRange: [
|
||
1,
|
||
5,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 11,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0 or 2; Actual: 1',
|
||
errorRange: [
|
||
17,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 17,
|
||
},
|
||
lineNumber: 14,
|
||
ruleDescription: 'Trailing spaces',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
|
||
ruleNames: [
|
||
'MD009',
|
||
'no-trailing-spaces',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Column: 1',
|
||
errorRange: [
|
||
1,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 14,
|
||
ruleDescription: 'Hard tabs',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
|
||
ruleNames: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: '(name)[link]',
|
||
errorRange: [
|
||
1,
|
||
12,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 12,
|
||
editColumn: 1,
|
||
insertText: '[name](link)',
|
||
},
|
||
lineNumber: 16,
|
||
ruleDescription: 'Reversed link syntax',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md',
|
||
ruleNames: [
|
||
'MD011',
|
||
'no-reversed-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 1; Actual: 2',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
deleteCount: -1,
|
||
},
|
||
lineNumber: 18,
|
||
ruleDescription: 'Multiple consecutive blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md',
|
||
ruleNames: [
|
||
'MD012',
|
||
'no-multiple-blanks',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 80; Actual: 97',
|
||
errorRange: [
|
||
81,
|
||
17,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 21,
|
||
ruleDescription: 'Line length',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
|
||
ruleNames: [
|
||
'MD013',
|
||
'line-length',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '$ dollar {MD014}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 5,
|
||
},
|
||
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: [
|
||
'MD014',
|
||
'commands-show-output',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '#Heading 4 {MD018}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
editColumn: 2,
|
||
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',
|
||
ruleNames: [
|
||
'MD018',
|
||
'no-missing-space-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '# Heading 5 {MD019}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
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: '#Heading 6 {MD020} #',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 20,
|
||
editColumn: 1,
|
||
insertText: '# Heading 6 {MD020} #',
|
||
},
|
||
lineNumber: 29,
|
||
ruleDescription: 'No space inside hashes on closed atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
|
||
ruleNames: [
|
||
'MD020',
|
||
'no-missing-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '# Heading 7 {MD021} {MD003} ...',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 31,
|
||
ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
|
||
ruleNames: [
|
||
'MD021',
|
||
'no-multiple-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '... Heading 7 {MD021} {MD003} #',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
30,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 30,
|
||
},
|
||
lineNumber: 31,
|
||
ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
|
||
ruleNames: [
|
||
'MD021',
|
||
'no-multiple-space-closed-atx',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 10 {MD022}',
|
||
errorDetail: 'Expected: 1; Actual: 0; Above',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 86,
|
||
ruleDescription: 'Headings should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
|
||
ruleNames: [
|
||
'MD022',
|
||
'blanks-around-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: ' # Heading 9 {MD023} {MD026}.',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
},
|
||
lineNumber: 40,
|
||
ruleDescription: 'Headings must start at the beginning of the line',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
|
||
ruleNames: [
|
||
'MD023',
|
||
'heading-start-left',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Heading 8',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 35,
|
||
ruleDescription: 'Multiple headings with the same content',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
|
||
ruleNames: [
|
||
'MD024',
|
||
'no-duplicate-heading',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Punctuation: \'.\'',
|
||
errorRange: [
|
||
29,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 29,
|
||
},
|
||
lineNumber: 40,
|
||
ruleDescription: 'Trailing punctuation in heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
|
||
ruleNames: [
|
||
'MD026',
|
||
'no-trailing-punctuation',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> {MD027}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
},
|
||
lineNumber: 42,
|
||
ruleDescription: 'Multiple spaces after blockquote symbol',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
|
||
ruleNames: [
|
||
'MD027',
|
||
'no-multiple-space-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 43,
|
||
ruleDescription: 'Blank line inside blockquote',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
|
||
ruleNames: [
|
||
'MD028',
|
||
'no-blanks-blockquote',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 2; Actual: 3; Style: 1/2/3',
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 47,
|
||
ruleDescription: 'Ordered list item prefix',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md029.md',
|
||
ruleNames: [
|
||
'MD029',
|
||
'ol-prefix',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 1; Actual: 2',
|
||
errorRange: [
|
||
2,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 3,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 8,
|
||
ruleDescription: 'Spaces after list markers',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md',
|
||
ruleNames: [
|
||
'MD030',
|
||
'list-marker-space',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 51,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '* list {MD032}',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 8,
|
||
},
|
||
lineNumber: 7,
|
||
ruleDescription: 'Lists should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
|
||
ruleNames: [
|
||
'MD032',
|
||
'blanks-around-lists',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '+ list {MD004} {MD007} {MD030...',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 8,
|
||
ruleDescription: 'Lists should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
|
||
ruleNames: [
|
||
'MD032',
|
||
'blanks-around-lists',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '* list {MD032} {MD046:49}',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 51,
|
||
ruleDescription: 'Lists should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
|
||
ruleNames: [
|
||
'MD032',
|
||
'blanks-around-lists',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Element: br',
|
||
errorRange: [
|
||
1,
|
||
5,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 55,
|
||
ruleDescription: 'Inline HTML',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
|
||
ruleNames: [
|
||
'MD033',
|
||
'no-inline-html',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'https://example.com/page',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
24,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 24,
|
||
editColumn: 1,
|
||
insertText: '<https://example.com/page>',
|
||
},
|
||
lineNumber: 57,
|
||
ruleDescription: 'Bare URL used',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
|
||
ruleNames: [
|
||
'MD034',
|
||
'no-bare-urls',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: ---; Actual: ***',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 61,
|
||
ruleDescription: 'Horizontal rule style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
|
||
ruleNames: [
|
||
'MD035',
|
||
'hr-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Section {MD036} Heading',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 65,
|
||
ruleDescription: 'Emphasis used instead of a heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
|
||
ruleNames: [
|
||
'MD036',
|
||
'no-emphasis-as-heading',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'h _',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
14,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 15,
|
||
},
|
||
lineNumber: 67,
|
||
ruleDescription: 'Spaces inside emphasis markers',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
|
||
ruleNames: [
|
||
'MD037',
|
||
'no-space-in-emphasis',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '`with `',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
11,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 11,
|
||
},
|
||
lineNumber: 69,
|
||
ruleDescription: 'Spaces inside code span elements',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
|
||
ruleNames: [
|
||
'MD038',
|
||
'no-space-in-code',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[link with space ]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
17,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 17,
|
||
},
|
||
lineNumber: 71,
|
||
ruleDescription: 'Spaces inside link text',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
|
||
ruleNames: [
|
||
'MD039',
|
||
'no-space-in-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 73,
|
||
ruleDescription: 'Fenced code blocks should have a language specified',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md',
|
||
ruleNames: [
|
||
'MD040',
|
||
'fenced-code-language',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '## Heading 1 {MD041:1}',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 1,
|
||
ruleDescription: 'First line in a file should be a top-level heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md',
|
||
ruleNames: [
|
||
'MD041',
|
||
'first-line-heading',
|
||
'first-line-h1',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[empty link]()',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
14,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 81,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: # Broken; Actual: # Heading 3 {MD003} {MD043}',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 5,
|
||
ruleDescription: 'Required heading structure',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md043.md',
|
||
ruleNames: [
|
||
'MD043',
|
||
'required-headings',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: markdownlint; Actual: markdownLint',
|
||
errorRange: [
|
||
1,
|
||
12,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 12,
|
||
editColumn: 1,
|
||
insertText: 'markdownlint',
|
||
},
|
||
lineNumber: 83,
|
||
ruleDescription: 'Proper names should have the correct capitalization',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
|
||
ruleNames: [
|
||
'MD044',
|
||
'proper-names',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
14,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 85,
|
||
ruleDescription: 'Images should have alternate text (alt text)',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md045.md',
|
||
ruleNames: [
|
||
'MD045',
|
||
'no-alt-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: indented; Actual: fenced',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 49,
|
||
ruleDescription: 'Code block style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
|
||
ruleNames: [
|
||
'MD046',
|
||
'code-block-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: indented; Actual: fenced',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 73,
|
||
ruleDescription: 'Code block style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
|
||
ruleNames: [
|
||
'MD046',
|
||
'code-block-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: indented; Actual: fenced',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 77,
|
||
ruleDescription: 'Code block style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
|
||
ruleNames: [
|
||
'MD046',
|
||
'code-block-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: null,
|
||
errorRange: [
|
||
11,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
editColumn: 12,
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 140,
|
||
ruleDescription: 'Files should end with a single newline character',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md',
|
||
ruleNames: [
|
||
'MD047',
|
||
'single-trailing-newline',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: backtick; Actual: tilde',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 77,
|
||
ruleDescription: 'Code fence style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
|
||
ruleNames: [
|
||
'MD048',
|
||
'code-fence-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
10,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 10,
|
||
insertText: '_',
|
||
},
|
||
lineNumber: 90,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
15,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 15,
|
||
insertText: '_',
|
||
},
|
||
lineNumber: 90,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
8,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 8,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 94,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
14,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 14,
|
||
insertText: '__',
|
||
},
|
||
lineNumber: 94,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[Missing link fragment](#missing)',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
33,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 96,
|
||
ruleDescription: 'Link fragments should be valid',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
|
||
ruleNames: [
|
||
'MD051',
|
||
'link-fragments',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[Missing link][label]',
|
||
errorDetail: 'Missing link or image reference definition: "label"',
|
||
errorRange: [
|
||
1,
|
||
21,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 98,
|
||
ruleDescription: 'Reference links and images should use a label that is defined',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md',
|
||
ruleNames: [
|
||
'MD052',
|
||
'reference-links-images',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[unused]: link-destination',
|
||
errorDetail: 'Unused link or image reference definition: "unused"',
|
||
errorRange: [
|
||
1,
|
||
26,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: -1,
|
||
},
|
||
lineNumber: 100,
|
||
ruleDescription: 'Link and image reference definitions should be needed',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md053.md',
|
||
ruleNames: [
|
||
'MD053',
|
||
'link-image-reference-definitions',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text][url]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
11,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 11,
|
||
editColumn: 1,
|
||
insertText: '[text](https://example.com/page)',
|
||
},
|
||
lineNumber: 103,
|
||
ruleDescription: 'Link and image style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
|
||
ruleNames: [
|
||
'MD054',
|
||
'link-image-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe',
|
||
errorRange: [
|
||
2,
|
||
1,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 110,
|
||
ruleDescription: 'Table pipe style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md055.md',
|
||
ruleNames: [
|
||
'MD055',
|
||
'table-pipe-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 2; Actual: 1; Too few cells, row will be missing data',
|
||
errorRange: [
|
||
11,
|
||
1,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 114,
|
||
ruleDescription: 'Table column count',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md056.md',
|
||
ruleNames: [
|
||
'MD056',
|
||
'table-column-count',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '| table {MD058} |',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
},
|
||
lineNumber: 117,
|
||
ruleDescription: 'Tables should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
|
||
ruleNames: [
|
||
'MD058',
|
||
'blanks-around-tables',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '| cell {MD058} |',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 120,
|
||
},
|
||
lineNumber: 119,
|
||
ruleDescription: 'Tables should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
|
||
ruleNames: [
|
||
'MD058',
|
||
'blanks-around-tables',
|
||
],
|
||
},
|
||
],
|
||
fixed: `## Heading 1 {MD041:1}␊
|
||
␊
|
||
#### Heading 2 {MD001:3}␊
|
||
␊
|
||
# Heading 3 {MD003} {MD043} #␊
|
||
␊
|
||
* list {MD032}␊
|
||
␊
|
||
* list {MD004} {MD007} {MD030} {MD032}␊
|
||
␊
|
||
* list␊
|
||
* list {MD007}␊
|
||
* list {MD005}␊
|
||
␊
|
||
{MD009} {MD010}␊
|
||
␊
|
||
[name](link) {MD011}␊
|
||
␊
|
||
{MD012:18}␊
|
||
␊
|
||
long line long line long line long line long line long line long line long line long line {MD013}␊
|
||
␊
|
||
dollar {MD014}␊
|
||
␊
|
||
# Heading 4 {MD018}␊
|
||
␊
|
||
# Heading 5 {MD019}␊
|
||
␊
|
||
# Heading 6 {MD020} #␊
|
||
␊
|
||
# Heading 7 {MD021} {MD003} #␊
|
||
␊
|
||
# Heading 8␊
|
||
␊
|
||
# Heading 8␊
|
||
␊
|
||
{MD024:35}␊
|
||
Note: Can not break MD025 and MD041 in the same file␊
|
||
␊
|
||
# Heading 9 {MD023} {MD026}␊
|
||
␊
|
||
> {MD027}␊
|
||
␊
|
||
> {MD028:43}␊
|
||
␊
|
||
1. list␊
|
||
3. list {MD029}␊
|
||
␊
|
||
\`\`\`js␊
|
||
\`\`\`␊
|
||
␊
|
||
* list {MD032} {MD046:49}␊
|
||
␊
|
||
{MD031:50}␊
|
||
␊
|
||
<br/> {MD033}␊
|
||
␊
|
||
<https://example.com/page> {MD034}␊
|
||
␊
|
||
---␊
|
||
␊
|
||
***␊
|
||
␊
|
||
{MD035:61}␊
|
||
␊
|
||
_Section {MD036} Heading_␊
|
||
␊
|
||
Emphasis _with_ space {MD037}␊
|
||
␊
|
||
Code \`with\` space {MD038}␊
|
||
␊
|
||
[link with space](link) {MD039}␊
|
||
␊
|
||
\`\`\`␊
|
||
code fence without language {MD040:73} {MD046:73}␊
|
||
\`\`\`␊
|
||
␊
|
||
~~~js␊
|
||
code fence with different style {MD048:77} {MD046:77}␊
|
||
~~~␊
|
||
␊
|
||
[empty link]() {MD042}␊
|
||
␊
|
||
markdownlint {MD044}␊
|
||
␊
|
||
 {MD045}␊
|
||
␊
|
||
## Heading 10 {MD022}␊
|
||
␊
|
||
Emphasis _with_ underscore style␊
|
||
␊
|
||
Emphasis _with_ different style {MD049}␊
|
||
␊
|
||
Strong __with__ underscore style␊
|
||
␊
|
||
Strong __with__ different style {MD050}␊
|
||
␊
|
||
[Missing link fragment](#missing) {MD051}␊
|
||
␊
|
||
[Missing link][label] {MD052}␊
|
||
␊
|
||
{MD053:100}␊
|
||
␊
|
||
[text](https://example.com/page) {MD054}␊
|
||
␊
|
||
<!-- markdownlint-disable-next-line MD053 -->␊
|
||
[url]: https://example.com/page␊
|
||
␊
|
||
| table | header |␊
|
||
|--------|--------|␊
|
||
{MD055} | cell |␊
|
||
␊
|
||
| table | header |␊
|
||
|---------|--------|␊
|
||
| {MD056} |␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
| table {MD058} |␊
|
||
|-------|␊
|
||
| cell {MD058} |␊
|
||
␊
|
||
> Blockquote␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"required-headings": {␊
|
||
"headings": [␊
|
||
"## Heading 1 {MD041:1}",␊
|
||
"#### Heading 2 {MD001:3}",␊
|
||
"# Broken"␊
|
||
]␊
|
||
},␊
|
||
"proper-names": {␊
|
||
"names": [␊
|
||
"markdownlint"␊
|
||
]␊
|
||
},␊
|
||
"link-image-style": {␊
|
||
"full": false␊
|
||
}␊
|
||
} -->␊
|
||
␊
|
||
EOF {MD047}␊
|
||
`,
|
||
}
|
||
|
||
## bulleted_list_2_space_indent.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 4; Actual: 2',
|
||
errorRange: [
|
||
1,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 0,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 7,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 8; Actual: 4',
|
||
errorRange: [
|
||
1,
|
||
6,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 0,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 8,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# bulleted_list_2_space_indent␊
|
||
␊
|
||
This is a document where the lists are indented by 2 spaces, but the style is␊
|
||
set to 4 space indents for lists:␊
|
||
␊
|
||
* Test X␊
|
||
* Test Y {MD007}␊
|
||
* Test Z {MD007}␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"ul-indent": {␊
|
||
"indent": 4␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## bulleted_list_4_space_indent.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 2; Actual: 4',
|
||
errorRange: [
|
||
1,
|
||
6,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 4,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 4; Actual: 8',
|
||
errorRange: [
|
||
1,
|
||
10,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 4,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 5,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# bulleted_list_4_space_indent␊
|
||
␊
|
||
* Test X␊
|
||
* Test Y {MD007}␊
|
||
* Test Z {MD007}␊
|
||
`,
|
||
}
|
||
|
||
## bulleted_list_not_at_beginning_of_line.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0; Actual: 2',
|
||
errorRange: [
|
||
1,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 15,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 2; Actual: 4',
|
||
errorRange: [
|
||
1,
|
||
6,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 16,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 2; Actual: 4',
|
||
errorRange: [
|
||
1,
|
||
6,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 17,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 4; Actual: 6',
|
||
errorRange: [
|
||
1,
|
||
8,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 18,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 2; Actual: 4',
|
||
errorRange: [
|
||
1,
|
||
6,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 19,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0; Actual: 2',
|
||
errorRange: [
|
||
1,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 20,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0; Actual: 2',
|
||
errorRange: [
|
||
1,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 21,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0; Actual: 2',
|
||
errorRange: [
|
||
1,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 30,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 2; Actual: 4',
|
||
errorRange: [
|
||
1,
|
||
6,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 31,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0; Actual: 1',
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 41,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0; Actual: 1',
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 42,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0; Actual: 1',
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 43,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0; Actual: 2',
|
||
errorRange: [
|
||
1,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 55,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0; Actual: 2',
|
||
errorRange: [
|
||
1,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 57,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0; Actual: 2',
|
||
errorRange: [
|
||
1,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
insertText: '',
|
||
},
|
||
lineNumber: 59,
|
||
ruleDescription: 'Unordered list indentation',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
|
||
ruleNames: [
|
||
'MD007',
|
||
'ul-indent',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Bulleted List Not at Beginning of Line␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
* Item␊
|
||
* Item␊
|
||
* Item␊
|
||
* Item␊
|
||
* Item␊
|
||
* Item␊
|
||
* Item␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
* Item {MD007}␊
|
||
* Item {MD007}␊
|
||
* Item {MD007}␊
|
||
* Item {MD007}␊
|
||
* Item {MD007}␊
|
||
* Item {MD007}␊
|
||
* Item {MD007}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
* Item␊
|
||
* Item␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
* Item {MD007}␊
|
||
* Item {MD007}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
* Item␊
|
||
* Item␊
|
||
* Item␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
* Item {MD007}␊
|
||
* Item {MD007}␊
|
||
* Item {MD007}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
* Item␊
|
||
␊
|
||
* Item␊
|
||
␊
|
||
* Item␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
* Item {MD007}␊
|
||
␊
|
||
* Item {MD007}␊
|
||
␊
|
||
* Item {MD007}␊
|
||
`,
|
||
}
|
||
|
||
## byte-order-marker-utf8.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: `# Heading␊
|
||
␊
|
||
Text␊
|
||
`,
|
||
}
|
||
|
||
## code-block-in-list.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: `# Code Block in List␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
\`\`\`js␊
|
||
// Code␊
|
||
\`\`\`␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
1. Item␊
|
||
␊
|
||
\`\`\`js␊
|
||
// Code␊
|
||
\`\`\`␊
|
||
␊
|
||
1. Item␊
|
||
␊
|
||
\`\`\`js␊
|
||
// Code␊
|
||
\`\`\`␊
|
||
`,
|
||
}
|
||
|
||
## code-block-trailing-spaces.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 0 or 2; Actual: 2',
|
||
errorRange: [
|
||
28,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 28,
|
||
},
|
||
lineNumber: 5,
|
||
ruleDescription: 'Trailing spaces',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
|
||
ruleNames: [
|
||
'MD009',
|
||
'no-trailing-spaces',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# code-block-trailing-spaces␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
Two trailing spaces {MD009}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
Indented code block␊
|
||
␊
|
||
Statement␊
|
||
Indented statement␊
|
||
␊
|
||
Statement␊
|
||
Indented statement␊
|
||
␊
|
||
Two trailing spaces ␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
\`\`\`text␊
|
||
Fenced code block␊
|
||
␊
|
||
Statement␊
|
||
Indented statement␊
|
||
␊
|
||
Statement␊
|
||
Indented statement␊
|
||
␊
|
||
Two trailing spaces ␊
|
||
\`\`\`␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
<!-- markdownlint-configure-file␊
|
||
{␊
|
||
"no-trailing-spaces": { "strict": true },␊
|
||
"code-block-style": false␊
|
||
}␊
|
||
-->␊
|
||
`,
|
||
}
|
||
|
||
## code-block-with-language-allowed.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
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: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
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: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
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: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
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: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Column: 1',
|
||
errorRange: [
|
||
1,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 38,
|
||
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,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 39,
|
||
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: 10',
|
||
errorRange: [
|
||
10,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 10,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 41,
|
||
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,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 45,
|
||
ruleDescription: 'Hard tabs',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
|
||
ruleNames: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Column: 1',
|
||
errorRange: [
|
||
1,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
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: '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,
|
||
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: `# Heading␊
|
||
␊
|
||
\`\`\`js␊
|
||
if (true) {␊
|
||
console.log("true");␊
|
||
if (false) {␊
|
||
console.log("false");␊
|
||
}␊
|
||
}␊
|
||
\`\`\`␊
|
||
␊
|
||
\`\`\`js␊
|
||
if (true) {␊
|
||
console.log("true");␊
|
||
if (false) {␊
|
||
console.log("false");␊
|
||
}␊
|
||
}␊
|
||
\`\`\`␊
|
||
␊
|
||
if (true) {␊
|
||
console.log("true");␊
|
||
if (false) {␊
|
||
console.log("false");␊
|
||
}␊
|
||
}␊
|
||
␊
|
||
\`\`\` Text␊
|
||
hello␊
|
||
world␊
|
||
}␊
|
||
\`\`\`␊
|
||
␊
|
||
if (true) { // {MD010}␊
|
||
console.log("true"); // {MD010}␊
|
||
if (false) { // {MD010}␊
|
||
console.log("false"); // {MD010}␊
|
||
} // {MD010}␊
|
||
} // {MD010}␊
|
||
␊
|
||
Line with hard tab. {MD010}␊
|
||
␊
|
||
\`\`\`javascript␊
|
||
if (true) {␊
|
||
console.log("true"); // {MD010}␊
|
||
if (false) { // {MD010}␊
|
||
console.log("false"); // {MD010}␊
|
||
} // {MD010}␊
|
||
}␊
|
||
\`\`\`␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"no-hard-tabs": {␊
|
||
"ignore_code_languages": [␊
|
||
"js",␊
|
||
"text"␊
|
||
]␊
|
||
},␊
|
||
"code-block-style": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## 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␊
|
||
if (true) {␊
|
||
console.log("true");␊
|
||
if (false) {␊
|
||
console.log("false");␊
|
||
}␊
|
||
}␊
|
||
\`\`\`␊
|
||
␊
|
||
\`\`\`js␊
|
||
if (true) {␊
|
||
console.log("true");␊
|
||
if (false) {␊
|
||
console.log("false");␊
|
||
}␊
|
||
}␊
|
||
\`\`\`␊
|
||
␊
|
||
if (true) { // {MD046}␊
|
||
console.log("true");␊
|
||
if (false) {␊
|
||
console.log("false");␊
|
||
}␊
|
||
}␊
|
||
␊
|
||
if (true) {␊
|
||
console.log("true");␊
|
||
if (false) {␊
|
||
console.log("false");␊
|
||
}␊
|
||
}␊
|
||
␊
|
||
Line with hard tab. {MD010}␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"no-hard-tabs": {␊
|
||
"code_blocks": false␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## code-block-with-tabs.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Column: 1',
|
||
errorRange: [
|
||
1,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 14,
|
||
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,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 15,
|
||
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: 16,
|
||
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,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 17,
|
||
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,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 28,
|
||
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: 29,
|
||
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: 30,
|
||
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,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 3,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 31,
|
||
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: 32,
|
||
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,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 33,
|
||
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: 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␊
|
||
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: null,
|
||
errorDetail: 'Expected: code; Actual: Code',
|
||
errorRange: [
|
||
3,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 4,
|
||
editColumn: 3,
|
||
insertText: 'code',
|
||
},
|
||
lineNumber: 1,
|
||
ruleDescription: 'Proper names should have the correct capitalization',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
|
||
ruleNames: [
|
||
'MD044',
|
||
'proper-names',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: code; Actual: CODE',
|
||
errorRange: [
|
||
6,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 4,
|
||
editColumn: 6,
|
||
insertText: 'code',
|
||
},
|
||
lineNumber: 3,
|
||
ruleDescription: 'Proper names should have the correct capitalization',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
|
||
ruleNames: [
|
||
'MD044',
|
||
'proper-names',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: code; Actual: CODE',
|
||
errorRange: [
|
||
7,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 4,
|
||
editColumn: 7,
|
||
insertText: 'code',
|
||
},
|
||
lineNumber: 26,
|
||
ruleDescription: 'Proper names should have the correct capitalization',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
|
||
ruleNames: [
|
||
'MD044',
|
||
'proper-names',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: code; Actual: CODE',
|
||
errorRange: [
|
||
7,
|
||
4,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 4,
|
||
editColumn: 7,
|
||
insertText: 'code',
|
||
},
|
||
lineNumber: 28,
|
||
ruleDescription: 'Proper names should have the correct capitalization',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
|
||
ruleNames: [
|
||
'MD044',
|
||
'proper-names',
|
||
],
|
||
},
|
||
],
|
||
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}␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"proper-names": {␊
|
||
"names": [␊
|
||
"code"␊
|
||
],␊
|
||
"code_blocks": false␊
|
||
},␊
|
||
"code-block-style": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## code-blocks-prefixed-by-spaces.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
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: [
|
||
'MD013',
|
||
'line-length',
|
||
],
|
||
},
|
||
{
|
||
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: [
|
||
'MD013',
|
||
'line-length',
|
||
],
|
||
},
|
||
{
|
||
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: [
|
||
'MD013',
|
||
'line-length',
|
||
],
|
||
},
|
||
{
|
||
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: `# 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}␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"line-length": {␊
|
||
"code_blocks": false␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## code-fences-in-blockquotes.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '```markdown',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 4,
|
||
},
|
||
lineNumber: 4,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 7,
|
||
},
|
||
lineNumber: 6,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> ```markdown',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
lineNumber: 10,
|
||
},
|
||
lineNumber: 10,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> ```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `>␊
|
||
`,
|
||
lineNumber: 13,
|
||
},
|
||
lineNumber: 12,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > ```markdown',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `> >␊
|
||
`,
|
||
lineNumber: 15,
|
||
},
|
||
lineNumber: 15,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '> > ```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `> >␊
|
||
`,
|
||
lineNumber: 18,
|
||
},
|
||
lineNumber: 17,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'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: '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',
|
||
ruleNames: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
{
|
||
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: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Code With Tabs Allowed␊
|
||
␊
|
||
Text text {MD010}␊
|
||
␊
|
||
Text \`code code\` text␊
|
||
␊
|
||
Text \` code\` text␊
|
||
␊
|
||
Text \`code \` text␊
|
||
␊
|
||
Text \`code code␊
|
||
code code␊
|
||
code code\` text␊
|
||
␊
|
||
console.log(" ");␊
|
||
␊
|
||
\`\`\`js␊
|
||
console.log(" ");␊
|
||
\`\`\`␊
|
||
␊
|
||
\`\`\`j s {MD010}␊
|
||
console.log(" ");␊
|
||
\`\`\`␊
|
||
␊
|
||
console.log("");␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"code-block-style": false,␊
|
||
"no-space-in-code": false,␊
|
||
"no-hard-tabs": {␊
|
||
"code_blocks": false␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## code-with-tabs-blocked.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
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',
|
||
ruleNames: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Column: 11',
|
||
errorRange: [
|
||
11,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 11,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 5,
|
||
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: 7',
|
||
errorRange: [
|
||
7,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 7,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 7,
|
||
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: 11',
|
||
errorRange: [
|
||
11,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 11,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 9,
|
||
ruleDescription: 'Hard tabs',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
|
||
ruleNames: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Column: 5',
|
||
errorRange: [
|
||
5,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 5,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 12,
|
||
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: 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: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Column: 14',
|
||
errorRange: [
|
||
14,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 14,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 18,
|
||
ruleDescription: 'Hard tabs',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
|
||
ruleNames: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Column: 5',
|
||
errorRange: [
|
||
5,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 5,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 21,
|
||
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: 14',
|
||
errorRange: [
|
||
14,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 14,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 22,
|
||
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,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 25,
|
||
ruleDescription: 'Hard tabs',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
|
||
ruleNames: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Code With Tabs Blocked␊
|
||
␊
|
||
Text text {MD010}␊
|
||
␊
|
||
Text \`code code\` text {MD010}␊
|
||
␊
|
||
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}␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"code-block-style": false,␊
|
||
"no-space-in-code": false,␊
|
||
"no-hard-tabs": {␊
|
||
"code_blocks": true␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## code_block_consistency.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: indented; Actual: fenced',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 10,
|
||
ruleDescription: 'Code block style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
|
||
ruleNames: [
|
||
'MD046',
|
||
'code-block-style',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# code_block_consistency␊
|
||
␊
|
||
This is text.␊
|
||
␊
|
||
This is a␊
|
||
code block.␊
|
||
␊
|
||
And here is more text␊
|
||
␊
|
||
\`\`\`text␊
|
||
and here is a different {MD046:10}␊
|
||
code block␊
|
||
\`\`\`␊
|
||
`,
|
||
}
|
||
|
||
## code_block_dollar.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '$ ls {MD014}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 5,
|
||
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: '$ less foo {MD014}',
|
||
errorDetail: null,
|
||
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: [
|
||
'MD014',
|
||
'commands-show-output',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '$ cat bar {MD014}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 8,
|
||
ruleDescription: 'Dollar signs used before commands without showing output',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
|
||
ruleNames: [
|
||
'MD014',
|
||
'commands-show-output',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '$ mkdir test {MD014}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 5,
|
||
},
|
||
lineNumber: 74,
|
||
ruleDescription: 'Dollar signs used before commands without showing output',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
|
||
ruleNames: [
|
||
'MD014',
|
||
'commands-show-output',
|
||
],
|
||
},
|
||
{
|
||
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␊
|
||
␊
|
||
The following code block shouldn't have $ before the commands:␊
|
||
␊
|
||
ls {MD014}␊
|
||
less foo {MD014}␊
|
||
␊
|
||
cat bar {MD014}␊
|
||
␊
|
||
However the following code block shows output, and $ can be used to␊
|
||
distinguish between command and output:␊
|
||
␊
|
||
$ ls␊
|
||
foo bar␊
|
||
$ less foo␊
|
||
Hello world␊
|
||
␊
|
||
$ cat bar␊
|
||
baz␊
|
||
␊
|
||
The following code block uses variable names, and likewise shouldn't fire:␊
|
||
␊
|
||
$foo = 'bar';␊
|
||
$baz = 'qux';␊
|
||
␊
|
||
The following code block doesn't have any dollar signs, and shouldn't fire:␊
|
||
␊
|
||
ls foo␊
|
||
cat bar␊
|
||
␊
|
||
The following (fenced) code block doesn't have any content at all, and␊
|
||
shouldn't fire: {MD046:34}␊
|
||
␊
|
||
\`\`\`bash␊
|
||
\`\`\`␊
|
||
␊
|
||
Mixed content:␊
|
||
␊
|
||
$ ls␊
|
||
file.md other.md␊
|
||
$ git branch␊
|
||
$ cat stuff␊
|
||
␊
|
||
output␊
|
||
␊
|
||
More mixed content:␊
|
||
␊
|
||
$ ls␊
|
||
$ git branch␊
|
||
$ cat stuff␊
|
||
stuff here␊
|
||
more stuff␊
|
||
$ tail cat␊
|
||
meow␊
|
||
␊
|
||
Command with blank lines in output:␊
|
||
␊
|
||
$ dig example.com␊
|
||
␊
|
||
; ...␊
|
||
;; ...␊
|
||
␊
|
||
;; ...␊
|
||
␊
|
||
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}␊
|
||
`,
|
||
}
|
||
|
||
## code_block_dollar_fence-empty.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: `# Heading␊
|
||
␊
|
||
\`\`\`js␊
|
||
␊
|
||
\`\`\`␊
|
||
␊
|
||
\`\`\`css␊
|
||
␊
|
||
␊
|
||
\`\`\`␊
|
||
␊
|
||
\`\`\`spaces␊
|
||
␊
|
||
\`\`\`␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"no-trailing-spaces": {␊
|
||
"br_spaces": 2␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## code_block_dollar_fence.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '$ code {MD014}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
},
|
||
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: [
|
||
'MD014',
|
||
'commands-show-output',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '$ code {MD014}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
},
|
||
lineNumber: 10,
|
||
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: '$ code {MD014}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 1,
|
||
},
|
||
lineNumber: 16,
|
||
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: '$ code {MD014}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
2,
|
||
],
|
||
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: [
|
||
'MD014',
|
||
'commands-show-output',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '$ code {MD014}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
2,
|
||
],
|
||
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: [
|
||
'MD014',
|
||
'commands-show-output',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '$ code {MD014}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
2,
|
||
],
|
||
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: [
|
||
'MD014',
|
||
'commands-show-output',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '$ npm install --save multimatc...',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
2,
|
||
],
|
||
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: [
|
||
'MD014',
|
||
'commands-show-output',
|
||
],
|
||
},
|
||
{
|
||
errorContext: ' $ ls example {MD014}',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
2,
|
||
2,
|
||
],
|
||
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: [
|
||
'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: 'Expected: fenced; Actual: indented',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 5,
|
||
ruleDescription: 'Code block style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
|
||
ruleNames: [
|
||
'MD046',
|
||
'code-block-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: fenced; Actual: indented',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 16,
|
||
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_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␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"code-block-style": {␊
|
||
"style": "fenced"␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## code_block_indented.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: indented; Actual: fenced',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 10,
|
||
ruleDescription: 'Code block style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
|
||
ruleNames: [
|
||
'MD046',
|
||
'code-block-style',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# code_block_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.␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"code-block-style": {␊
|
||
"style": "indented"␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## code_fence_style_backtick.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: backtick; Actual: tilde',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 7,
|
||
ruleDescription: 'Code fence style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
|
||
ruleNames: [
|
||
'MD048',
|
||
'code-fence-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: backtick; Actual: tilde',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 17,
|
||
ruleDescription: 'Code fence style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
|
||
ruleNames: [
|
||
'MD048',
|
||
'code-fence-style',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# code_fence_style_backtick␊
|
||
␊
|
||
\`\`\`text␊
|
||
This is a code block␊
|
||
\`\`\`␊
|
||
␊
|
||
~~~text␊
|
||
This is {MD048:7} a code block␊
|
||
~~~␊
|
||
␊
|
||
\`\`\`text␊
|
||
~~~␊
|
||
This is fine␊
|
||
~~~␊
|
||
\`\`\`␊
|
||
␊
|
||
~~~text␊
|
||
\`\`\`␊
|
||
This is not {MD048:17}␊
|
||
\`\`\`␊
|
||
~~~␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"code-fence-style": {␊
|
||
"style": "backtick"␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## code_fence_style_tilde.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: tilde; Actual: backtick',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 3,
|
||
ruleDescription: 'Code fence style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
|
||
ruleNames: [
|
||
'MD048',
|
||
'code-fence-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: tilde; Actual: backtick',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 11,
|
||
ruleDescription: 'Code fence style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
|
||
ruleNames: [
|
||
'MD048',
|
||
'code-fence-style',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# code_fence_style_tilde␊
|
||
␊
|
||
\`\`\`text␊
|
||
This is {MD048:3} a code block␊
|
||
\`\`\`␊
|
||
␊
|
||
~~~text␊
|
||
This is a code block␊
|
||
~~~␊
|
||
␊
|
||
\`\`\`text␊
|
||
~~~␊
|
||
This is not fine {MD048:11}␊
|
||
~~~␊
|
||
\`\`\`␊
|
||
␊
|
||
~~~text␊
|
||
\`\`\`␊
|
||
This is␊
|
||
\`\`\`␊
|
||
~~~␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"code-fence-style": {␊
|
||
"style": "tilde"␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## consecutive_blank_lines.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 1; Actual: 2',
|
||
errorRange: null,
|
||
fixInfo: {
|
||
deleteCount: -1,
|
||
},
|
||
lineNumber: 5,
|
||
ruleDescription: 'Multiple consecutive blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md',
|
||
ruleNames: [
|
||
'MD012',
|
||
'no-multiple-blanks',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# consecutive_blank_lines␊
|
||
␊
|
||
Some text␊
|
||
␊
|
||
Some text {MD012:5}␊
|
||
␊
|
||
This is a code block␊
|
||
␊
|
||
␊
|
||
with two blank lines in it␊
|
||
␊
|
||
Some more text␊
|
||
`,
|
||
}
|
||
|
||
## consistent_bullet_styles_asterisk.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: `# consistent_bullet_styles_asterisk␊
|
||
␊
|
||
* Item␊
|
||
* Item␊
|
||
* Item␊
|
||
`,
|
||
}
|
||
|
||
## consistent_bullet_styles_dash.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: `# consistent_bullet_styles_dash␊
|
||
␊
|
||
- Item␊
|
||
- Item␊
|
||
- Item␊
|
||
`,
|
||
}
|
||
|
||
## consistent_bullet_styles_plus.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: `# consistent_bullet_styles_plus␊
|
||
␊
|
||
+ Item␊
|
||
+ Item␊
|
||
+ Item␊
|
||
`,
|
||
}
|
||
|
||
## custom-rules.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: `# Heading␊
|
||
␊
|
||
Sample text.␊
|
||
<!-- markdownlint-disable letters-e-x -->␊
|
||
Sample text.␊
|
||
<!-- markdownlint-enable LETTERS-E-X -->␊
|
||
Sample text.␊
|
||
<!-- markdownlint-disable TeSt -->␊
|
||
Sample text.␊
|
||
<!-- markdownlint-enable TEST -->␊
|
||
␊
|
||
> Blockquote␊
|
||
`,
|
||
}
|
||
|
||
## default-spaces-MD010.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Column: 1',
|
||
errorRange: [
|
||
1,
|
||
13,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 13,
|
||
editColumn: 1,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 1,
|
||
ruleDescription: 'Hard tabs',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
|
||
ruleNames: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Column: 5',
|
||
errorRange: [
|
||
5,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 5,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 2,
|
||
ruleDescription: 'Hard tabs',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
|
||
ruleNames: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Column: 35',
|
||
errorRange: [
|
||
35,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 3,
|
||
editColumn: 35,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 3,
|
||
ruleDescription: 'Hard tabs',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
|
||
ruleNames: [
|
||
'MD010',
|
||
'no-hard-tabs',
|
||
],
|
||
},
|
||
],
|
||
fixed: ` text {MD010}␊
|
||
text and text 2 {MD010}␊
|
||
texts with trailing spaces {MD010} ␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"no-trailing-spaces": false,␊
|
||
"first-line-heading": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## descriptive-link-text-empty-config.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: `# Descriptive Link Text Empty Config␊
|
||
␊
|
||
[Learn more](https://example.com/images/about) about us.␊
|
||
␊
|
||
[Click here](https://example.com/dir/file.txt).␊
|
||
␊
|
||
Go to this [link](https://example.com/second).␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"descriptive-link-text": {␊
|
||
"prohibited_texts": []␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## descriptive-link-text-override.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '[Go here]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
2,
|
||
7,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 3,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[this]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
40,
|
||
4,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 13,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Descriptive Link Text Override␊
|
||
␊
|
||
[Go here](https://example.com/javascript/about) {MD059}␊
|
||
␊
|
||
[Learn more](https://example.com/javascript/about).␊
|
||
␊
|
||
[Click here](https://example.com/javascript/about).␊
|
||
␊
|
||
To learn more, go [here!](https://example.com/site).␊
|
||
␊
|
||
To learn more, go to this [link!](https://example.com/links).␊
|
||
␊
|
||
If you need additional guidance, read [this](https://example.com/links). {MD059}␊
|
||
␊
|
||
[link][url]␊
|
||
␊
|
||
[url]: https://example.com␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"descriptive-link-text": {␊
|
||
"prohibited_texts": [ "go here", "THIS" ]␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## descriptive-link-text.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Element: link',
|
||
errorRange: [
|
||
2,
|
||
6,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 40,
|
||
ruleDescription: 'Inline HTML',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
|
||
ruleNames: [
|
||
'MD033',
|
||
'no-inline-html',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[ link ]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
2,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 2,
|
||
},
|
||
lineNumber: 35,
|
||
ruleDescription: 'Spaces inside link text',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
|
||
ruleNames: [
|
||
'MD039',
|
||
'no-space-in-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[ link ]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
7,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 7,
|
||
},
|
||
lineNumber: 35,
|
||
ruleDescription: 'Spaces inside link text',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
|
||
ruleNames: [
|
||
'MD039',
|
||
'no-space-in-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
2,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 2,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 37,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
7,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 7,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 37,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[here]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
5,
|
||
4,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 9,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[Click here]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
2,
|
||
10,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 13,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[here!]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
26,
|
||
5,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 17,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[more]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
8,
|
||
4,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 19,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[click here!!!!]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
17,
|
||
14,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 21,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[click-here!!!!]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
2,
|
||
14,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 23,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[link]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
13,
|
||
4,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 25,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[link]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
2,
|
||
4,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 27,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: `[click␊
|
||
here]`,
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 31,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[link]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
2,
|
||
4,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 34,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[ link ]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
2,
|
||
6,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 35,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[*link*]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
2,
|
||
6,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 36,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[_link_]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
2,
|
||
6,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 37,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[~~link~~]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
2,
|
||
8,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 38,
|
||
ruleDescription: 'Link text should be descriptive',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md059.md',
|
||
ruleNames: [
|
||
'MD059',
|
||
'descriptive-link-text',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Descriptive Link Text␊
|
||
␊
|
||
[Learn about Javascript](https://example.com/javascript/about)␊
|
||
␊
|
||
[About Javascript](https://example.com/file.txt)␊
|
||
␊
|
||
Learn about [our mission](https://example.com/mission).␊
|
||
␊
|
||
Go [here](https://example.com/descriptive-links) {MD059}␊
|
||
␊
|
||
[Learn more](https://example.com/images/about) about us.␊
|
||
␊
|
||
[Click here](https://example.com/dir/file.txt). {MD059}␊
|
||
␊
|
||
[Read more](https://example.com/guide).␊
|
||
␊
|
||
To get more support, go [here!](https://example.com/contact). {MD059}␊
|
||
␊
|
||
Learn [more](https://example.com/contact). {MD059}␊
|
||
␊
|
||
To learn more, [click here!!!!](https://example.com/about). {MD059}␊
|
||
␊
|
||
[click-here!!!!](https://example.com/first). {MD059}␊
|
||
␊
|
||
Go to this [link](https://example.com/second). {MD059}␊
|
||
␊
|
||
[link][Example URL] {MD059}␊
|
||
␊
|
||
[Example URL]: https://example.com␊
|
||
␊
|
||
{MD059} [click␊
|
||
here](https://example.com)␊
|
||
␊
|
||
[link](destination) {MD059}␊
|
||
[link](destination) {MD039} {MD059}␊
|
||
[*link*](destination) {MD059}␊
|
||
[*link*](destination) {MD049} {MD059}␊
|
||
[~~link~~](destination) {MD059}␊
|
||
[\`link\`](destination)␊
|
||
[<link>](destination) {MD033}␊
|
||
`,
|
||
}
|
||
|
||
## emoji-headings.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '##️⃣ Keycap Number Sign {MD018...',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
3,
|
||
],
|
||
fixInfo: {
|
||
editColumn: 3,
|
||
insertText: ' ',
|
||
},
|
||
lineNumber: 11,
|
||
ruleDescription: 'No space after hash on atx style heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
|
||
ruleNames: [
|
||
'MD018',
|
||
'no-missing-space-atx',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Emoji Headings␊
|
||
␊
|
||
#️⃣ Keycap Number Sign␊
|
||
␊
|
||
<https://emojipedia.org/keycap-number-sign/>␊
|
||
␊
|
||
# #️⃣ Keycap Number Sign␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
## ️⃣ Keycap Number Sign {MD018}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
# Keycap Number Sign #️⃣␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
# Keycap Number Sign#️⃣␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
<!-- markdownlint-disable-file MD025 -->␊
|
||
`,
|
||
}
|
||
|
||
## emphasis-markers.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
9,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 9,
|
||
insertText: '_',
|
||
},
|
||
lineNumber: 5,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
13,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 13,
|
||
insertText: '_',
|
||
},
|
||
lineNumber: 5,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
7,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 7,
|
||
insertText: '_',
|
||
},
|
||
lineNumber: 8,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
11,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 11,
|
||
insertText: '_',
|
||
},
|
||
lineNumber: 8,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
7,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 7,
|
||
insertText: '_',
|
||
},
|
||
lineNumber: 12,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
11,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 11,
|
||
insertText: '_',
|
||
},
|
||
lineNumber: 12,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
9,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 9,
|
||
insertText: '**',
|
||
},
|
||
lineNumber: 14,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
14,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 14,
|
||
insertText: '**',
|
||
},
|
||
lineNumber: 14,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
7,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 7,
|
||
insertText: '**',
|
||
},
|
||
lineNumber: 17,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
12,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 12,
|
||
insertText: '**',
|
||
},
|
||
lineNumber: 17,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
7,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 7,
|
||
insertText: '**',
|
||
},
|
||
lineNumber: 21,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
12,
|
||
2,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 2,
|
||
editColumn: 12,
|
||
insertText: '**',
|
||
},
|
||
lineNumber: 21,
|
||
ruleDescription: 'Strong style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
|
||
ruleNames: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Emphasis Markers␊
|
||
␊
|
||
Text to _set_ the **preferences**.␊
|
||
␊
|
||
This is _bad_ {MD049}␊
|
||
␊
|
||
This \`is␊
|
||
also\` _bad_ {MD049}␊
|
||
␊
|
||
This \`is␊
|
||
also␊
|
||
very\` _bad_ {MD049}␊
|
||
␊
|
||
This is **bad** {MD050}␊
|
||
␊
|
||
This \`is␊
|
||
also\` **bad** {MD050}␊
|
||
␊
|
||
This \`is␊
|
||
also␊
|
||
very\` **bad** {MD050}␊
|
||
␊
|
||
<p>HTML __should__ *be* ignored</p>␊
|
||
␊
|
||
<p>␊
|
||
HTML __should__ *be* ignored␊
|
||
</p>␊
|
||
␊
|
||
<!-- markdownlint-configure-file { "no-inline-html": false } -->␊
|
||
`,
|
||
}
|
||
|
||
## emphasis-not-heading-in-blockquote.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 3,
|
||
insertText: '_',
|
||
},
|
||
lineNumber: 11,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
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: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
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: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
18,
|
||
1,
|
||
],
|
||
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: [
|
||
'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: 'Section 1: the first section {...',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 3,
|
||
ruleDescription: 'Emphasis used instead of a heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
|
||
ruleNames: [
|
||
'MD036',
|
||
'no-emphasis-as-heading',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Section 1.1: another section {...',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 12,
|
||
ruleDescription: 'Emphasis used instead of a heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
|
||
ruleNames: [
|
||
'MD036',
|
||
'no-emphasis-as-heading',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Section 2: yet more sections {...',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 21,
|
||
ruleDescription: 'Emphasis used instead of a heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
|
||
ruleNames: [
|
||
'MD036',
|
||
'no-emphasis-as-heading',
|
||
],
|
||
},
|
||
{
|
||
errorContext: 'Section 3: oh no more sections...',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 30,
|
||
ruleDescription: 'Emphasis used instead of a heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
|
||
ruleNames: [
|
||
'MD036',
|
||
'no-emphasis-as-heading',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
1,
|
||
1,
|
||
],
|
||
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: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
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: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
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: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
{
|
||
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: [
|
||
'MD050',
|
||
'strong-style',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# emphasis_instead_of_headings␊
|
||
␊
|
||
**Section 1: the first section {MD036}**␊
|
||
␊
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor␊
|
||
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis␊
|
||
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.␊
|
||
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore␊
|
||
eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt␊
|
||
in culpa qui officia deserunt mollit anim id est laborum.␊
|
||
␊
|
||
**Section 1.1: another section {MD036} {MD050}**␊
|
||
␊
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor␊
|
||
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis␊
|
||
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.␊
|
||
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore␊
|
||
eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt␊
|
||
in culpa qui officia deserunt mollit anim id est laborum.␊
|
||
␊
|
||
*Section 2: yet more sections {MD036}*␊
|
||
␊
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor␊
|
||
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis␊
|
||
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.␊
|
||
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore␊
|
||
eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt␊
|
||
in culpa qui officia deserunt mollit anim id est laborum.␊
|
||
␊
|
||
*Section 3: oh no more sections {MD036} {MD049}*␊
|
||
␊
|
||
This is a normal paragraph␊
|
||
**that just happens to have emphasized text in**␊
|
||
even though the emphasized text is on its own line.␊
|
||
␊
|
||
This is another **normal** paragraph with some text in it. This also should␊
|
||
not trigger the rule.␊
|
||
␊
|
||
**This is an entire paragraph that has been emphasized, and shouldn't be␊
|
||
detected as a heading because it's on multiple lines**␊
|
||
␊
|
||
**This also shouldn't be detected as a heading as it ends in punctuation.**␊
|
||
␊
|
||
**This shouldn't be detected as a heading as it ends in full-width punctuation。**␊
|
||
␊
|
||
**[This as well since it is a link](https://example.com)**␊
|
||
`,
|
||
}
|
||
|
||
## emphasis_style_asterisk.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
1,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 9,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
6,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 6,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 9,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
6,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 6,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 11,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
9,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 9,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 11,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
9,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 9,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 13,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: asterisk; Actual: underscore',
|
||
errorRange: [
|
||
13,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 13,
|
||
insertText: '*',
|
||
},
|
||
lineNumber: 13,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'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␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"no-space-in-emphasis": false,␊
|
||
"emphasis-style": {␊
|
||
"style": "asterisk"␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## emphasis_style_underscore.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
1,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 1,
|
||
insertText: '_',
|
||
},
|
||
lineNumber: 9,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
6,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 6,
|
||
insertText: '_',
|
||
},
|
||
lineNumber: 9,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
6,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 6,
|
||
insertText: '_',
|
||
},
|
||
lineNumber: 11,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
9,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 9,
|
||
insertText: '_',
|
||
},
|
||
lineNumber: 11,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
9,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 9,
|
||
insertText: '_',
|
||
},
|
||
lineNumber: 13,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: underscore; Actual: asterisk',
|
||
errorRange: [
|
||
13,
|
||
1,
|
||
],
|
||
fixInfo: {
|
||
deleteCount: 1,
|
||
editColumn: 13,
|
||
insertText: '_',
|
||
},
|
||
lineNumber: 13,
|
||
ruleDescription: 'Emphasis style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
|
||
ruleNames: [
|
||
'MD049',
|
||
'emphasis-style',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Emphasis style underscore␊
|
||
␊
|
||
_This_ is fine␊
|
||
␊
|
||
This _is_ fine␊
|
||
␊
|
||
This is _fine_␊
|
||
␊
|
||
_This_ is not␊
|
||
␊
|
||
This _is_ not␊
|
||
␊
|
||
This is _not_␊
|
||
␊
|
||
{MD049:-2} {MD049:-4} {MD049:-6}␊
|
||
␊
|
||
Internal emphasis is preserved:␊
|
||
apple*banana*cherry, apple*banana*, *banana*cherry␊
|
||
apple_banana_cherry, apple_banana_, _banana_cherry␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"no-space-in-emphasis": false,␊
|
||
"emphasis-style": {␊
|
||
"style": "underscore"␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## empty-links.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '[text]()',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
8,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 5,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text](<>)',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
10,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 7,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text]( <> )',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
12,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 9,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text](<> "title")',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
18,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 11,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text]( <> "title" )',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
20,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 13,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text](#)',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
9,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 15,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text]( # )',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
11,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 17,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text](# "title")',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
17,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 19,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text]( # "title" )',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
19,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 21,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text][frag]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
12,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 23,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text][ frag ]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
14,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 25,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[frag][]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
8,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 27,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[frag]',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
6,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 29,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text]()',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
8,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 74,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text]()',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
8,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 78,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text]()',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
8,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 80,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text]()',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
8,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 83,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '[text]()',
|
||
errorDetail: null,
|
||
errorRange: [
|
||
1,
|
||
8,
|
||
],
|
||
fixInfo: null,
|
||
lineNumber: 85,
|
||
ruleDescription: 'No empty links',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
|
||
ruleNames: [
|
||
'MD042',
|
||
'no-empty-links',
|
||
],
|
||
},
|
||
],
|
||
fixed: `# Heading␊
|
||
␊
|
||
## Empty links␊
|
||
␊
|
||
[text]() {MD042}␊
|
||
␊
|
||
[text](<>) {MD042}␊
|
||
␊
|
||
[text]( <> ) {MD042}␊
|
||
␊
|
||
[text](<> "title") {MD042}␊
|
||
␊
|
||
[text]( <> "title" ) {MD042}␊
|
||
␊
|
||
[text](#) {MD042}␊
|
||
␊
|
||
[text]( # ) {MD042}␊
|
||
␊
|
||
[text](# "title") {MD042}␊
|
||
␊
|
||
[text]( # "title" ) {MD042}␊
|
||
␊
|
||
[text][frag] {MD042}␊
|
||
␊
|
||
[text][ frag ] {MD042}␊
|
||
␊
|
||
[frag][] {MD042}␊
|
||
␊
|
||
[frag] {MD042}␊
|
||
␊
|
||
[frag]: #␊
|
||
␊
|
||
## Non-empty links␊
|
||
␊
|
||
### frag␊
|
||
␊
|
||
[text](link)␊
|
||
␊
|
||
[text]( link )␊
|
||
␊
|
||
[text](link "title")␊
|
||
␊
|
||
[text]( link "title" )␊
|
||
␊
|
||
[text](<link>)␊
|
||
␊
|
||
[text]( <link> )␊
|
||
␊
|
||
[text](<link> "title")␊
|
||
␊
|
||
[text]( <link> "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)␊
|
||
`,
|
||
}
|
||
|
||
## empty_doc.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: '',
|
||
}
|
||
|
||
## escaped-emphasis-markers.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: `# Heading␊
|
||
␊
|
||
## Single-character markers␊
|
||
␊
|
||
None are valid emphasis without spaces.␊
|
||
␊
|
||
Escaped asterisks \\* should \\* be ignored by MD037.␊
|
||
␊
|
||
Escaped asterisks \\* should * be ignored by MD037.␊
|
||
␊
|
||
Escaped asterisks * should \\* be ignored by MD037.␊
|
||
␊
|
||
Escaped underscores \\_ should \\_ be ignored by MD037.␊
|
||
␊
|
||
Escaped underscores \\_ should _ be ignored by MD037.␊
|
||
␊
|
||
Escaped underscores _ should \\_ be ignored by MD037.␊
|
||
␊
|
||
## Double-character markers, start␊
|
||
␊
|
||
All *could* be reported because they are valid single-character␊
|
||
marker emphasis when no spaces are present.␊
|
||
␊
|
||
Escaped asterisks \\** should ** be ignored by MD037.␊
|
||
␊
|
||
Escaped asterisks *\\* should ** be ignored by MD037.␊
|
||
␊
|
||
Escaped underscores \\__ should __ be ignored by MD037.␊
|
||
␊
|
||
Escaped underscores _\\_ should __ be ignored by MD037.␊
|
||
␊
|
||
## Double-character markers, end␊
|
||
␊
|
||
All should be reported, but are ignored because they look like␊
|
||
the start of an embedded emphasis.␊
|
||
␊
|
||
Escaped asterisks ** should \\** be ignored by MD037.␊
|
||
␊
|
||
Escaped asterisks ** should *\\* be ignored by MD037.␊
|
||
␊
|
||
Escaped underscores __ should \\__ be ignored by MD037.␊
|
||
␊
|
||
Escaped underscores __ should _\\_ be ignored by MD037.␊
|
||
`,
|
||
}
|
||
|
||
## every-markdown-syntax.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: `Every Markdown Syntax␊
|
||
=====================␊
|
||
␊
|
||
## Level 2 ATX Heading␊
|
||
␊
|
||
### Level 3 Closed ATX Heading ###␊
|
||
␊
|
||
---␊
|
||
␊
|
||
Text *emphasized* **strong** ___emphasized+strong___.␊
|
||
Text \`code\` <strike>html</strike> <https://example.com/page>.␊
|
||
Text [link](https://example.com/page) [link][] [link] ![image][link].␊
|
||
Text https://example.com/page.␊
|
||
␊
|
||
Hard ␊
|
||
line break␊
|
||
␊
|
||
[link]: https://example.com/page "Title"␊
|
||
␊
|
||
> Block quote␊
|
||
> > Nested␊
|
||
␊
|
||
- Unordered␊
|
||
- List␊
|
||
- Items␊
|
||
Indented␊
|
||
␊
|
||
Content␊
|
||
␊
|
||
1. Ordered␊
|
||
2. List␊
|
||
1. Items␊
|
||
Indented␊
|
||
␊
|
||
Content␊
|
||
␊
|
||
\`\`\`markdown options␊
|
||
Fenced code block␊
|
||
\`\`\`␊
|
||
␊
|
||
Indented code block␊
|
||
␊
|
||
<p>␊
|
||
HTML block␊
|
||
</p>␊
|
||
␊
|
||
| Table | Heading |␊
|
||
| ----- | ------- |␊
|
||
| Table | Cell |␊
|
||
␊
|
||
<!-- markdownlint-disable-file -->␊
|
||
`,
|
||
}
|
||
|
||
## 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;␊
|
||
\`\`\`␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"line-length": {␊
|
||
"code_blocks": false␊
|
||
}␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## 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: '```',
|
||
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',
|
||
ruleNames: [
|
||
'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: `# 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',
|
||
ruleNames: [
|
||
'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: `# 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_with_nesting.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '```fence',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 4,
|
||
},
|
||
lineNumber: 4,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 7,
|
||
},
|
||
lineNumber: 6,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '~~~fence',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
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',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '~~~',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 11,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```fence',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 17,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '~~~fence',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 18,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '~~~',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 23,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```fence',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 24,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 31,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '~~~fence',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 32,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '~~~',
|
||
errorDetail: null,
|
||
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',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```fence',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 40,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 44,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '~~~fence',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 45,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '~~~',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 49,
|
||
},
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
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',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
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',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
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',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '~~~~',
|
||
errorDetail: null,
|
||
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',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '````fence',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '`````',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '~~~~fence',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '~~~~~',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: backtick; Actual: tilde',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 8,
|
||
ruleDescription: 'Code fence style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
|
||
ruleNames: [
|
||
'MD048',
|
||
'code-fence-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: backtick; Actual: tilde',
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 18,
|
||
ruleDescription: 'Code fence style',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
|
||
ruleNames: [
|
||
'MD048',
|
||
'code-fence-style',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: 'Expected: 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',
|
||
],
|
||
},
|
||
{
|
||
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',
|
||
ruleNames: [
|
||
'MD048',
|
||
'code-fence-style',
|
||
],
|
||
},
|
||
{
|
||
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',
|
||
],
|
||
},
|
||
{
|
||
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',
|
||
ruleNames: [
|
||
'MD048',
|
||
'code-fence-style',
|
||
],
|
||
},
|
||
],
|
||
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␊
|
||
\`\`\`␊
|
||
␊
|
||
~~~␊
|
||
␊
|
||
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}␊
|
||
`,
|
||
}
|
||
|
||
## fenced_code_without_blank_lines.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
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: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: '```',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: {
|
||
insertText: `␊
|
||
`,
|
||
lineNumber: 23,
|
||
},
|
||
lineNumber: 23,
|
||
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
|
||
ruleNames: [
|
||
'MD031',
|
||
'blanks-around-fences',
|
||
],
|
||
},
|
||
{
|
||
errorContext: null,
|
||
errorDetail: null,
|
||
errorRange: [
|
||
3,
|
||
1,
|
||
],
|
||
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: [
|
||
'MD047',
|
||
'single-trailing-newline',
|
||
],
|
||
},
|
||
],
|
||
fixed: `\`\`\`␊
|
||
code at start of file␊
|
||
\`\`\`␊
|
||
␊
|
||
text␊
|
||
␊
|
||
\`\`\`ruby␊
|
||
code␊
|
||
\`\`\`␊
|
||
␊
|
||
text␊
|
||
␊
|
||
\`\`\`␊
|
||
code␊
|
||
\`\`\`␊
|
||
␊
|
||
text {MD031:12} {MD031:14}␊
|
||
␊
|
||
\`\`\`␊
|
||
code␊
|
||
\`\`\`␊
|
||
␊
|
||
text {MD031:19}␊
|
||
␊
|
||
text {MD031:23}␊
|
||
␊
|
||
\`\`\`␊
|
||
code␊
|
||
\`\`\`␊
|
||
␊
|
||
text␊
|
||
␊
|
||
\`\`\`js␊
|
||
code␊
|
||
code␊
|
||
code␊
|
||
\`\`\`␊
|
||
␊
|
||
\`\`\`html␊
|
||
\`\`\`␊
|
||
␊
|
||
text␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"fenced-code-language": false,␊
|
||
"first-line-heading": false␊
|
||
} -->␊
|
||
␊
|
||
\`\`\`␊
|
||
code at end of file without newline {MD047:47}␊
|
||
\`\`\`␊
|
||
`,
|
||
}
|
||
|
||
## first-line-heading-allow-preamble-false.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: 'Text {MD041}',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 1,
|
||
ruleDescription: 'First line in a file should be a top-level heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md',
|
||
ruleNames: [
|
||
'MD041',
|
||
'first-line-heading',
|
||
'first-line-h1',
|
||
],
|
||
},
|
||
],
|
||
fixed: `Text {MD041}␊
|
||
␊
|
||
<!-- Comment -->␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
<p>HTML</p>␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
- List item␊
|
||
␊
|
||
# Heading␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"first-line-heading": {␊
|
||
"allow_preamble": false␊
|
||
},␊
|
||
"no-inline-html": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## first-line-heading-allow-preamble-h1.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: `Text␊
|
||
␊
|
||
<!-- Comment -->␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
<p>HTML</p>␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
- List item␊
|
||
␊
|
||
<h1>Heading</h1>␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"first-line-heading": {␊
|
||
"allow_preamble": true␊
|
||
},␊
|
||
"no-inline-html": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## first-line-heading-allow-preamble-violation.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [
|
||
{
|
||
errorContext: '## Heading {MD041}',
|
||
errorDetail: null,
|
||
errorRange: null,
|
||
fixInfo: null,
|
||
lineNumber: 13,
|
||
ruleDescription: 'First line in a file should be a top-level heading',
|
||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md',
|
||
ruleNames: [
|
||
'MD041',
|
||
'first-line-heading',
|
||
'first-line-h1',
|
||
],
|
||
},
|
||
],
|
||
fixed: `Text␊
|
||
␊
|
||
<!-- Comment -->␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
<p>HTML</p>␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
- List item␊
|
||
␊
|
||
## Heading {MD041}␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"first-line-heading": {␊
|
||
"allow_preamble": true␊
|
||
},␊
|
||
"no-inline-html": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## first-line-heading-allow-preamble.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: `Text␊
|
||
␊
|
||
<!-- Comment -->␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
<p>HTML</p>␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
- List item␊
|
||
␊
|
||
# Heading␊
|
||
␊
|
||
Text␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"first-line-heading": {␊
|
||
"allow_preamble": true␊
|
||
},␊
|
||
"no-inline-html": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## first_heading_bad_atx.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: `## Heading␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"first-line-heading": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## first_heading_bad_setext.md
|
||
|
||
> Snapshot 1
|
||
|
||
{
|
||
errors: [],
|
||
fixed: `Heading␊
|
||
-------␊
|
||
␊
|
||
<!-- markdownlint-configure-file {␊
|
||
"first-line-heading": false␊
|
||
} -->␊
|
||
`,
|
||
}
|
||
|
||
## 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␊
|
||
`,
|
||
}
|
||
|
||
## 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)␊
|
||
␊
|
||
<!-- markdownlint-disable-file MD049 MD050 -->␊
|
||
`,
|
||
}
|