# Snapshot report for `test/markdownlint-test-scenarios.js`
The actual snapshot is saved in `markdownlint-test-scenarios.js.snap`.
Generated by [AVA](https://avajs.dev).
## 4-tabs-MD010.md
> Snapshot 1
{
errors: [
{
errorContext: null,
errorDetail: 'Column: 1',
errorRange: [
1,
13,
],
fixInfo: {
deleteCount: 13,
editColumn: 1,
insertText: ' ',
},
lineNumber: 1,
ruleDescription: 'Hard tabs',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/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} ␊
␊
␊
`,
}
## 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,
2,
],
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␊
␊
␊
`,
}
## 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: [
1,
5,
],
fixInfo: {
deleteCount: 1,
editColumn: 3,
},
lineNumber: 16,
ruleDescription: 'Multiple spaces after hash on atx style heading',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/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: [
1,
5,
],
fixInfo: {
deleteCount: 32,
editColumn: 1,
insertText: '## Multiple spaces E {MD021} ##',
},
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: [
28,
5,
],
fixInfo: {
deleteCount: 32,
editColumn: 1,
insertText: '## Multiple spaces F {MD021} ##',
},
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␊
␊
␊
␊
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}␊
␊
␊
`,
}
## 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,
2,
],
fixInfo: {
deleteCount: 1,
editColumn: 1,
},
lineNumber: 1,
ruleDescription: 'Headings must start at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/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: [
1,
4,
],
fixInfo: {
deleteCount: 1,
editColumn: 2,
},
lineNumber: 8,
ruleDescription: 'Multiple spaces after blockquote symbol',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
'MD027',
'no-multiple-space-blockquote',
],
},
{
errorContext: '> > Multiple spaces, multiple...',
errorDetail: null,
errorRange: [
1,
6,
],
fixInfo: {
deleteCount: 1,
editColumn: 4,
},
lineNumber: 15,
ruleDescription: 'Multiple spaces after blockquote symbol',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
'MD027',
'no-multiple-space-blockquote',
],
},
{
errorContext: '> > > Multiple spaces, multip...',
errorDetail: null,
errorRange: [
1,
8,
],
fixInfo: {
deleteCount: 1,
editColumn: 6,
},
lineNumber: 17,
ruleDescription: 'Multiple spaces after blockquote symbol',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
'MD027',
'no-multiple-space-blockquote',
],
},
{
errorContext: '> > > Multiple spaces, multip...',
errorDetail: null,
errorRange: [
1,
4,
],
fixInfo: {
deleteCount: 1,
editColumn: 2,
},
lineNumber: 19,
ruleDescription: 'Multiple spaces after blockquote symbol',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/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/pass␊
␊
Not bare due to being in an HTML block:␊
https://example.com␊
HTML {MD033}␊
␊
Bare https://example.com/pass
text.␊
␊
Text https://example.com/pass
text https://example.com/pass
text https://example.com/pass
text. {MD034}␊
␊
Text text text https://example.com/pass text.␊
␊
Text text text https://example.com/pass text.␊
␊
Text text text text
text
text. {MD034}␊
␊
Text
text
text. {MD034}␊
␊
␊
`,
}
## bare-urls.md
> Snapshot 1
{
errors: [
{
errorContext: 'https://example.com',
errorDetail: null,
errorRange: [
15,
19,
],
fixInfo: {
deleteCount: 19,
editColumn: 15,
insertText: '
Another violation:
␊
␊
Another violation:
␊
␊
This is not a bare [link]( https://example.com ).␊
␊
Nor is [link](https://example.com/path-with(parens)).␊
␊
Or https://example.com
bare.␊
␊
Not https://example.com
bare.␊
␊
https://example.com
␊
https://example.com
␊
https://example.com#heading-
␊
␊
Links with spaces inside angle brackets are okay: [blue jay](HTML __should__ *be* ignored
␊ ␊␊ HTML __should__ *be* ignored␊
␊ ␊ ␊ `, } ## emphasis-not-heading-in-blockquote.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ 3, 1, ], 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: [ 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: asterisk; Actual: underscore', 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', ], }, ], fixed: `# Emphasis style asterisk␊ ␊ This is *fine*␊ ␊ This is *not* {MD049}␊ ␊ Internal emphasis is preserved:␊ apple*banana*cherry, apple*banana*, *banana*cherry␊ apple_banana_cherry, apple_banana_, _banana_cherry␊ ␊ ␊ `, } ## emphasis_style_underscore.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Expected: underscore; Actual: asterisk', errorRange: [ 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', ], }, ], fixed: `# Emphasis style underscore␊ ␊ This is _fine_␊ ␊ This is _not_ {MD049}␊ ␊ Internal emphasis is preserved:␊ apple*banana*cherry, apple*banana*, *banana*cherry␊ apple_banana_cherry, apple_banana_, _banana_cherry␊ ␊ ␊ `, } ## empty-links.md > Snapshot 1 { errors: [ { errorContext: '[text]()', errorDetail: null, 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: null, 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]', errorDetail: null, errorRange: null, 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]', errorDetail: null, errorRange: null, 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: null, 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]', errorDetail: null, errorRange: null, 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]', errorDetail: null, errorRange: null, 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]', errorDetail: null, errorRange: null, 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]', errorDetail: null, errorRange: null, 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: '[text]()', errorDetail: null, errorRange: [ 1, 8, ], fixInfo: null, lineNumber: 70, 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: 76, 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: 79, 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: 81, 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]: #␊ ␊ ## Non-empty links␊ ␊ ### frag␊ ␊ [text](link)␊ ␊ [text]( link )␊ ␊ [text](link "title")␊ ␊ [text]( link "title" )␊ ␊ [text]()␊ ␊ [text]( )␊ ␊ [text]( "title")␊ ␊ [text]( "title" )␊ ␊ [text](#frag)␊ ␊ [text]( #frag )␊ ␊ [text](#frag "title")␊ ␊ [text]( #frag "title" )␊ ␊ [text][ref]␊ ␊ [text][ ref ]␊ ␊ [ref]: link␊ ␊ [text]␊ ␊ [text]: link␊ ␊ ## Inline of links with empty link (#308)␊ ␊ [text](link-1)␊ [text]() {MD042}␊ [text](link-3)␊ ␊ [text](link-1)␊ [text]() {MD042}␊ [text](link-3)␊ [text]() {MD042}␊ ␊ [text](link-1)␊ [text]() {MD042}␊ [text](link-3)␊ [text]() {MD042}␊ [text](link-5)␊ `, } ## 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\`␊ HTML block␊
␊ ␊ | Table | Heading |␊ | ----- | ------- |␊ | Table | Cell |␊ ␊ ␊ `, } ## fenced-code-in-list.md > Snapshot 1 { errors: [], fixed: `# Heading␊ ␊ - Item␊ ␊ \`\`\`javascript␊ debugger;␊ ␊ ␊ debugger;␊ \`\`\`␊ ␊ text␊ ␊ - Item␊ ␊ - Subitem␊ ␊ \`\`\`javascript␊ debugger;␊ ␊ ␊ debugger;␊ \`\`\`␊ ␊ text␊ ␊ - Subitem␊ ␊ - Item␊ ␊ - Subitem␊ ␊ \`\`\`javascript␊ debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger;␊ \`\`\`␊ ␊ ␊ `, } ## 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␊ ␊ ␊ ␊ \`\`\`␊ code at end of file without newline {MD047:47}␊ \`\`\`␊ `, } ## first_heading_bad_atx.md > Snapshot 1 { errors: [], fixed: `## Heading␊ ␊ ␊ `, } ## first_heading_bad_setext.md > Snapshot 1 { errors: [], fixed: `Heading␊ -------␊ ␊ ␊ `, } ## 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)␊ ␊ ␊ `, } ## fixing-with-front-matter.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Expected: 0 or 2; Actual: 3', errorRange: [ 23, 3, ], fixInfo: { deleteCount: 3, editColumn: 23, }, lineNumber: 6, ruleDescription: 'Trailing spaces', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ 'MD009', 'no-trailing-spaces', ], }, { errorContext: '# Fixing with Front Matter {MD022}', errorDetail: 'Expected: 1; Actual: 0; Below', errorRange: null, fixInfo: { insertText: `␊ `, lineNumber: 6, }, lineNumber: 5, ruleDescription: 'Headings should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ 'MD022', 'blanks-around-headings', ], }, { errorContext: '## Nested Heading {MD022}', errorDetail: 'Expected: 1; Actual: 0; Above', errorRange: null, fixInfo: { insertText: `␊ `, }, lineNumber: 9, ruleDescription: 'Headings should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ 'MD022', 'blanks-around-headings', ], }, { errorContext: '[ link ]', errorDetail: null, errorRange: [ 6, 8, ], fixInfo: { deleteCount: 6, editColumn: 7, insertText: 'link', }, lineNumber: 8, ruleDescription: 'Spaces inside link text', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md', ruleNames: [ 'MD039', 'no-space-in-links', ], }, { errorContext: null, errorDetail: null, errorRange: [ 12, 1, ], fixInfo: { editColumn: 13, insertText: `␊ `, }, lineNumber: 11, ruleDescription: 'Files should end with a single newline character', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md', ruleNames: [ 'MD047', 'single-trailing-newline', ], }, ], fixed: `---␊ front: matter␊ ignore: this␊ ---␊ # Fixing with Front Matter {MD022}␊ ␊ Text text text {MD009}␊ ␊ Text [link](url) text {MD039}␊ ␊ ## Nested Heading {MD022}␊ ␊ Text {MD047}␊ `, } ## front-matter-alt-title-h1.md > Snapshot 1 { errors: [ { errorContext: '# Top level heading {MD025}', errorDetail: null, errorRange: null, fixInfo: null, lineNumber: 4, ruleDescription: 'Multiple top-level headings in the same document', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ 'MD025', 'single-title', 'single-h1', ], }, ], fixed: `---␊ alternate="Welcome to Jekyll!"␊ ---␊ # Top level heading {MD025}␊ ␊ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ ␊ `, } ## front-matter-alt-title-json.md > Snapshot 1 { errors: [], fixed: `{␊ "date": "2017-01-26T22:17:00+02:00",␊ "alternate": "My document title and heading"␊ }␊ ␊ Some plain text here.␊ ␊ ␊ `, } ## front-matter-alt-title-no-h1.md > Snapshot 1 { errors: [], fixed: `---␊ alternate="Welcome to Jekyll!"␊ ---␊ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ ␊ `, } ## front-matter-alt-title-toml.md > Snapshot 1 { errors: [], fixed: `+++␊ date = "2017-01-26T22:17:00+02:00"␊ alternate = "My document title and heading"␊ +++␊ ␊ Some plain text here.␊ ␊ ␊ `, } ## front-matter-alternate.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Expected: 0; Actual: 1', errorRange: [ 13, 1, ], fixInfo: { deleteCount: 1, editColumn: 13, }, lineNumber: 6, ruleDescription: 'Trailing spaces', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md', ruleNames: [ 'MD009', 'no-trailing-spaces', ], }, { errorContext: 'Text {MD041}', errorDetail: null, errorRange: null, fixInfo: null, lineNumber: 4, ruleDescription: 'First line in a file should be a top-level heading', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md', ruleNames: [ 'MD041', 'first-line-heading', 'first-line-h1', ], }, ], fixed: `---␊ front: matter␊ ---␊ Text {MD041}␊ ␊ Text {MD009}␊ ␊ ␊ `, } ## front-matter-embedded.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Column: 6', errorRange: [ 6, 1, ], fixInfo: { deleteCount: 1, editColumn: 6, insertText: ' ', }, lineNumber: 5, ruleDescription: 'Hard tabs', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ 'MD010', 'no-hard-tabs', ], }, { errorContext: 'layout: post {MD022}', errorDetail: 'Expected: 1; Actual: 0; Above', errorRange: null, fixInfo: { insertText: `␊ `, }, lineNumber: 4, ruleDescription: 'Headings should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ 'MD022', 'blanks-around-headings', ], }, ], fixed: `Text text text␊ ␊ ---␊ ␊ layout: post {MD022}␊ hard: tab {MD010}␊ title: embedded␊ ---␊ ␊ Text text text␊ ␊ ␊ `, } ## front-matter-empty-title-no-h1.md > Snapshot 1 { errors: [ { errorContext: 'Front matter from [Jekyll docu...', errorDetail: null, errorRange: null, fixInfo: null, lineNumber: 7, ruleDescription: 'First line in a file should be a top-level heading', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md', ruleNames: [ 'MD041', 'first-line-heading', 'first-line-h1', ], }, ], fixed: `---␊ layout: post␊ title: "Welcome to Jekyll!"␊ date: 2015-11-17 16:16:01 -0600␊ categories: jekyll update␊ ---␊ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}␊ ␊ ␊ `, } ## front-matter-empty.md > Snapshot 1 { errors: [ { errorContext: '# Another {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', ], }, ], fixed: `---␊ ---␊ # Heading␊ ␊ # Another {MD025}␊ `, } ## front-matter-no-crlf.md > Snapshot 1 { errors: [], fixed: `---␊ front: matter␊ ---`, } ## front-matter-no-title-h1.md > Snapshot 1 { errors: [], fixed: `---␊ layout: post␊ notitle: "Welcome to Jekyll!"␊ date: 2015-11-17 16:16:01 -0600␊ categories: jekyll update␊ ---␊ # Top level heading␊ ␊ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ ␊ `, } ## front-matter-no-title-no-h1.md > Snapshot 1 { errors: [ { errorContext: 'Front matter from [Jekyll docu...', errorDetail: null, errorRange: null, fixInfo: null, lineNumber: 7, ruleDescription: 'First line in a file should be a top-level heading', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md', ruleNames: [ 'MD041', 'first-line-heading', 'first-line-h1', ], }, ], fixed: `---␊ layout: post␊ notitle: "Welcome to Jekyll!"␊ date: 2015-11-17 16:16:01 -0600␊ categories: jekyll update␊ ---␊ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}␊ ␊ ␊ `, } ## front-matter-title-h1.md > Snapshot 1 { errors: [ { errorContext: '# Top level heading {MD025}', errorDetail: null, errorRange: null, fixInfo: null, lineNumber: 7, ruleDescription: 'Multiple top-level headings in the same document', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md', ruleNames: [ 'MD025', 'single-title', 'single-h1', ], }, ], fixed: `---␊ layout: post␊ title: "Welcome to Jekyll!"␊ date: 2015-11-17 16:16:01 -0600␊ categories: jekyll update␊ ---␊ # Top level heading {MD025}␊ ␊ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ ␊ `, } ## front-matter-title-h2.md > Snapshot 1 { errors: [], fixed: `---␊ layout: post␊ title: "Welcome to Jekyll!"␊ date: 2015-11-17 16:16:01 -0600␊ categories: jekyll update␊ ---␊ ## Secondary heading␊ ␊ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ ␊ `, } ## front-matter-title-json-spaces.md > Snapshot 1 { errors: [], fixed: `{␊ "date": "2017-01-26T22:17:00+02:00",␊ "title": "My document title and heading"␊ } ␊ ␊ Some plain text here.␊ `, } ## front-matter-title-json.md > Snapshot 1 { errors: [], fixed: `{␊ "date": "2017-01-26T22:17:00+02:00",␊ "title": "My document title and heading"␊ }␊ ␊ Some plain text here.␊ `, } ## front-matter-title-no-h1.md > Snapshot 1 { errors: [], fixed: `---␊ layout: post␊ title: "Welcome to Jekyll!"␊ date: 2015-11-17 16:16:01 -0600␊ categories: jekyll update␊ ---␊ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ ␊ `, } ## front-matter-title-pandoc-spaces.md > Snapshot 1 { errors: [], fixed: `+++ ␊ title: "Welcome to pandoc!"␊ date: 2015-11-17 16:16:01 -0600␊ ... ␊ ␊ Some plain text here.␊ `, } ## front-matter-title-pandoc.md > Snapshot 1 { errors: [], fixed: `+++␊ title: "Welcome to pandoc!"␊ date: 2015-11-17 16:16:01 -0600␊ ...␊ ␊ Some plain text here.␊ `, } ## front-matter-title-spaces.md > Snapshot 1 { errors: [], fixed: `--- ␊ layout: post␊ title: "Welcome to Jekyll!"␊ date: 2015-11-17 16:16:01 -0600␊ categories: jekyll update␊ --- ␊ ␊ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ ␊ `, } ## front-matter-title-toml-spaces.md > Snapshot 1 { errors: [], fixed: `+++ ␊ date = "2017-01-26T22:17:00+02:00"␊ title = "My document title and heading"␊ +++ ␊ ␊ Some plain text here.␊ `, } ## front-matter-title-toml.md > Snapshot 1 { errors: [], fixed: `+++␊ date = "2017-01-26T22:17:00+02:00"␊ title = "My document title and heading"␊ +++␊ ␊ Some plain text here.␊ `, } ## front-matter-with-dashes.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Column: 1', errorRange: [ 1, 1, ], fixInfo: { deleteCount: 1, editColumn: 1, insertText: ' ', }, lineNumber: 10, ruleDescription: 'Hard tabs', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md', ruleNames: [ 'MD010', 'no-hard-tabs', ], }, ], fixed: `---␊ layout: post␊ title: Title with ---␊ tags: front matter␊ ---␊ ## Heading␊ ␊ ---␊ ␊ Hard tab {MD010}␊ `, } ## front-matter-with-disable-next-line.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Element: hr', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 10, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: hr', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 15, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: hr', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 16, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: hr', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 19, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: hr', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 20, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: hr', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 22, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: hr', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 23, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: hr', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 25, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: hr', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 26, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: hr', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 28, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: hr', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 29, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: hr', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 31, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: hr', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 32, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: hr', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 34, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: hr', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 35, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, ], fixed: `---␊ front: matter␊ ---␊ ␊ # Front Matter with Disable-Next-Line␊ ␊ ␊␊ Block {MD033:17}␊ block block {MD033} block␊ block␊ block block block␊ block␊ block block block block block {MD033}␊ block block block block block {MD033}␊
␊ ␊ Text␊ ␊ Block block {MD033}␊ ␊ Text inline inline {MD033} text␊ ␊ Text␊ ␊ Block block {MD033}␊ ␊ Text inline inline {MD033} text␊ ␊ Text␊ ␊ Text inline text inline text inline text {MD033}␊ ␊ Text inline text inline text inline {MD033}␊ ␊ Text␊ ␊ \\␊ This is allowed.␊
␊ ␊␊
␊
More inline HTML {MD033}␊ but this time on multiple lines␊
␊ ␊Neither should this as it's also in a code block {MD046:11}
␊ \`\`\`␊ ␊ ## Elements in code spans␊ ␊ Text \`\` text \\\` text␊
Text \\\` text \`\` text␊
Text \\\` text \\\` text \`\` text␊
Text \\\` text \`\` text \`\` text␊
Text \\\` text \`\` text \\\` text \`\` text␊
Text \\\`\\\` text \`\` text␊
Text \`\` text \\\` text \`\` text␊
␊
## Elements in multiple line code spans␊
␊
Text \`code␊
\`␊
␊
\`code␊
\`␊
␊
\`code␊
\` text␊
␊
Text \`code␊
code␊
␊
\`␊
␊
\`\`code \`\`\` \`\`\`\` \`␊
code␊
\`\`␊
␊
Text \`code␊
␊ 1. Not a␊ 2. list␊
␊ ␊1. Not a list
␊ ␊␊ * Not a␊ * list␊
␊ ␊* Not a list
␊ ␊ ␊ ␊ * list (on last line without newline) {MD047}␊ `, } ## long-heading-exceptions.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Expected: 80; Actual: 127', errorRange: [ 81, 47, ], fixInfo: null, lineNumber: 9, 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: 127', errorRange: [ 81, 47, ], fixInfo: null, lineNumber: 15, 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: 127', errorRange: [ 81, 47, ], fixInfo: null, lineNumber: 21, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, ], fixed: `# Heading␊ ␊ Text␊ ␊ ## Heading heading heading heading heading heading heading heading heading heading heading heading heading heading heading heading␊ ␊ Text␊ ␊ Text text text text text text text text text text text text text text text text text text text text text text text text {MD013}␊ ␊ ## Heading heading␊ ␊ Text␊ ␊ Text text text text text text text text text text text text text text text text text text text text text text text text {MD013}␊ ␊ ### Heading heading heading heading heading heading heading heading heading heading heading heading heading heading heading heading heading␊ ␊ Text␊ ␊ Text text text text text text text text text text text text text text text text text text text text text text text text {MD013}␊ ␊ ␊ `, } ## long-lines-long-reference-definitions-stern.md > Snapshot 1 { errors: [], fixed: `# Long Lines Long Reference Definitions Stern␊ ␊ [Link][short-reference-definition]␊ ␊ [Link][long-reference-definition]␊ ␊ [Link][long-reference-definition-split]␊ ␊ ![Image][long-reference-definition-image]␊ ␊ [short-reference-definition]: https://example.com/short␊ [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ [long-reference-definition-split]:␊ https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/long␊ [long-reference-definition-image]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/image␊ ␊ [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ ␊ ␊ `, } ## long-lines-long-reference-definitions-strict.md > Snapshot 1 { errors: [], fixed: `# Long Lines Long Reference Definitions Strict␊ ␊ [Link][short-reference-definition]␊ ␊ [Link][long-reference-definition]␊ ␊ [Link][long-reference-definition-split]␊ ␊ ![Image][long-reference-definition-image]␊ ␊ [short-reference-definition]: https://example.com/short␊ [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ [long-reference-definition-split]:␊ https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/long␊ [long-reference-definition-image]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/image␊ ␊ [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ ␊ ␊ `, } ## long-lines-long-reference-definitions.md > Snapshot 1 { errors: [], fixed: `# Long Lines Long Reference Definitions␊ ␊ [Link][short-reference-definition]␊ ␊ [Link][long-reference-definition]␊ ␊ [Link][long-reference-definition-split]␊ ␊ ![Image][long-reference-definition-image]␊ ␊ [short-reference-definition]: https://example.com/short␊ [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ [long-reference-definition-split]:␊ https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/long␊ [long-reference-definition-image]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long/image␊ ␊ [long-reference-definition]: https://example.com/long/long/long/long/long/long/long/long/long/long/long/long/long␊ `, } ## long-lines-short-code.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Expected: 80; Actual: 92', errorRange: [ 81, 12, ], fixInfo: null, lineNumber: 5, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 30; Actual: 46', errorRange: [ 31, 16, ], fixInfo: null, lineNumber: 13, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 30; Actual: 47', errorRange: [ 31, 17, ], fixInfo: null, lineNumber: 24, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, ], fixed: `# Long Lines, Short Code␊ ␊ Text text text text text text text text text text text text text text text␊ ␊ Text text text text text text text text text text text text text text text text text {MD013}␊ ␊ Text␊ ␊ Code code code code␊ ␊ Text␊ ␊ Code code code code code code code {MD013}␊ ␊ Text␊ ␊ \`\`\`text␊ Code code code code code␊ \`\`\`␊ ␊ Text␊ ␊ \`\`\`text␊ Code code code code code code code code {MD013}␊ \`\`\`␊ ␊ ␊ `, } ## long-lines-short-headings.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Expected: 80; Actual: 92', errorRange: [ 81, 12, ], 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: 30; Actual: 38', errorRange: [ 31, 8, ], fixInfo: null, lineNumber: 9, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 30; Actual: 36', errorRange: [ 31, 6, ], fixInfo: null, lineNumber: 13, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 30; Actual: 53', errorRange: [ 31, 23, ], fixInfo: null, lineNumber: 17, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, ], fixed: `# Long Lines, Short Headings␊ ␊ Text text text text text text text text text text text text text text text text text {MD013}␊ ␊ ## Short heading text text text␊ ␊ Text␊ ␊ ## Long heading text text text {MD013}␊ ␊ Text␊ ␊ ## Long heading text text {MD013} ##␊ ␊ Text␊ ␊ Long heading of text text text text text text {MD013}␊ -----------------------------------------------------␊ ␊ Text␊ ␊ ␊ `, } ## long-lines-stern.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Expected: 80; Actual: 82', errorRange: [ 81, 2, ], fixInfo: null, lineNumber: 5, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 81', errorRange: [ 81, 1, ], fixInfo: null, lineNumber: 7, 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: 87', errorRange: [ 81, 7, ], fixInfo: null, lineNumber: 13, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 30; Actual: 31', errorRange: [ 31, 1, ], fixInfo: null, lineNumber: 17, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 20; Actual: 21', errorRange: [ 21, 1, ], fixInfo: null, lineNumber: 26, 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: 84', errorRange: [ 81, 4, ], fixInfo: null, lineNumber: 32, 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: 84', errorRange: [ 81, 4, ], fixInfo: null, lineNumber: 35, 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: 85', errorRange: [ 81, 5, ], fixInfo: null, lineNumber: 38, 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: 84', errorRange: [ 81, 4, ], fixInfo: null, lineNumber: 42, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, ], fixed: `# Long Lines Stern␊ ␊ 12345678901234567890123456789012345678901234567890123456789012345678901234567890␊ ␊ This line is too long. text text text text text text text text text text text text␊ ␊ This line is barely too long. text text text text text text text text text text t␊ ␊ This line is just okay. text text text text text text text text text text text t␊ ␊ This line is not a problem. text text text text text text text text text text t␊ ␊ This line is too long. texttexttexttexttexttexttexttexttexttexttexttexttexttexttexttext␊ ␊ ThisLineIsOkaytexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttext␊ ␊ ## This heading is way too long␊ ␊ ## This heading is long but ok␊ ␊ ## This heading is short + ok␊ ␊ ## ThisTooLongHeadingIsOkaytext␊ ␊ \`\`\`text␊ This code is too long␊ This code is a-okay.␊ This code is short.␊ ThisTooLongCodeIsOkay.␊ \`\`\`␊ ␊ * This list item line is too long. text text text text text text text text text text␊ * This list item line is okay. text text text text text text text text text␊ This list item line is okay. text text text text text text text text text␊ This list item line is too long. text text text text text text text text text text␊ ThisTooLongListItemLineIsOkaytexttexttexttexttexttexttexttexttexttexttexttexttext␊ ␊ > This blockquote line is too long. text text text text text text text text text text␊ > This blockquote line is okay. text text text text text text text text text␊ > ThisTooLongBlockquoteLineIsOkaytexttexttexttexttexttexttexttexttexttexttexttexttext␊ >␊ > > This double blockquote line is too long. text text text text text text text text␊ > > This double blockquote line is okay. text text text text text text text␊ > > ThisTooLongDoubleBlockquoteLineIsOkaytexttexttexttexttexttexttexttexttexttexttext␊ ␊ ThisLineIsTooLongButIsNotReportedBecauseItLooksLikePartOfAListItemtexttexttexttext␊ ␊ {MD013:5}␊ {MD013:7}␊ {MD013:13}␊ {MD013:17}␊ {MD013:26}␊ {MD013:32}␊ {MD013:35}␊ {MD013:38}␊ {MD013:42}␊ ␊ ␊ `, } ## long-lines-strict.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Expected: 80; Actual: 82', errorRange: [ 81, 2, ], fixInfo: null, lineNumber: 5, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 86', errorRange: [ 81, 6, ], fixInfo: null, lineNumber: 7, 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: 81', errorRange: [ 81, 1, ], fixInfo: null, lineNumber: 9, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 30; Actual: 31', errorRange: [ 31, 1, ], fixInfo: null, lineNumber: 15, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 20; Actual: 21', errorRange: [ 21, 1, ], fixInfo: null, lineNumber: 22, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, ], fixed: `# Long Lines Strict␊ ␊ 12345678901234567890123456789012345678901234567890123456789012345678901234567890␊ ␊ This line is too long. text text text text text text text text text text text text␊ ␊ This line is way too long. text text text text text text text text text text text text␊ ␊ This line is barely too long. text text text text text text text text text text t␊ ␊ This line is just okay. text text text text text text text text text text text t␊ ␊ This line is not a problem. text text text text text text text text text text t␊ ␊ ## This heading is way too long␊ ␊ ## This heading is long but ok␊ ␊ ## This heading is short + ok␊ ␊ \`\`\`text␊ This code is too long␊ This code is a-okay.␊ This code is short.␊ \`\`\`␊ ␊ {MD013:5}␊ {MD013:7}␊ {MD013:9}␊ {MD013:15}␊ {MD013:22}␊ ␊ ␊ `, } ## long_lines.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Expected: 80; Actual: 97', errorRange: [ 81, 17, ], 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: 110', errorRange: [ 81, 30, ], fixInfo: null, lineNumber: 11, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 117', errorRange: [ 81, 37, ], fixInfo: null, lineNumber: 14, 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: 107', errorRange: [ 81, 27, ], fixInfo: null, lineNumber: 17, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 112', errorRange: [ 81, 32, ], fixInfo: null, lineNumber: 19, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 104', errorRange: [ 81, 24, ], 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: null, errorDetail: 'Expected: 80; Actual: 109', errorRange: [ 81, 29, ], fixInfo: null, lineNumber: 29, 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: 96', errorRange: [ 81, 16, ], fixInfo: null, lineNumber: 64, 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: 96', errorRange: [ 81, 16, ], fixInfo: null, lineNumber: 68, 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: 96', errorRange: [ 81, 16, ], fixInfo: null, lineNumber: 69, 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: 105', errorRange: [ 81, 25, ], fixInfo: null, lineNumber: 72, 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: 105', errorRange: [ 81, 25, ], fixInfo: null, lineNumber: 74, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: indented; Actual: fenced', errorRange: null, fixInfo: null, lineNumber: 13, ruleDescription: 'Code block style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md', ruleNames: [ 'MD046', 'code-block-style', ], }, { errorContext: null, errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ 1, 1, ], fixInfo: { deleteCount: 1, editColumn: 1, insertText: '*', }, lineNumber: 35, ruleDescription: 'Emphasis style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ 'MD049', 'emphasis-style', ], }, { errorContext: null, errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ 114, 1, ], fixInfo: { deleteCount: 1, editColumn: 114, insertText: '*', }, lineNumber: 35, ruleDescription: 'Emphasis style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ 'MD049', 'emphasis-style', ], }, { errorContext: null, errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ 1, 1, ], fixInfo: { deleteCount: 1, editColumn: 1, insertText: '*', }, lineNumber: 41, ruleDescription: 'Emphasis style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ 'MD049', 'emphasis-style', ], }, { errorContext: null, errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ 129, 1, ], fixInfo: { deleteCount: 1, editColumn: 129, insertText: '*', }, lineNumber: 41, ruleDescription: 'Emphasis style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ 'MD049', 'emphasis-style', ], }, { errorContext: null, errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ 3, 1, ], fixInfo: { deleteCount: 1, editColumn: 3, insertText: '*', }, lineNumber: 43, 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: [ 127, 1, ], fixInfo: { deleteCount: 1, editColumn: 127, insertText: '*', }, lineNumber: 43, ruleDescription: 'Emphasis style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md', ruleNames: [ 'MD049', 'emphasis-style', ], }, { errorContext: null, errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ 1, 2, ], fixInfo: { deleteCount: 2, editColumn: 1, insertText: '**', }, lineNumber: 39, ruleDescription: 'Strong style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ 'MD050', 'strong-style', ], }, { errorContext: null, errorDetail: 'Expected: asterisk; Actual: underscore', errorRange: [ 110, 2, ], fixInfo: { deleteCount: 2, editColumn: 110, insertText: '**', }, lineNumber: 39, ruleDescription: 'Strong style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md', ruleNames: [ 'MD050', 'strong-style', ], }, { errorContext: '[Link to broken label][notlabel]', errorDetail: 'Missing link or image reference definition: "notlabel"', errorRange: [ 1, 32, ], fixInfo: null, lineNumber: 27, ruleDescription: 'Reference links and images should use a label that is defined', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md', ruleNames: [ 'MD052', 'reference-links-images', ], }, ], fixed: `# Long Lines␊ ␊ This is a very very very very very very very very very very very very very very long line {MD013}␊ ␊ This line however, while very long, doesn't have whitespace after the 80th columnwhichallowsforURLsandotherlongthings.␊ ␊ [This long line is comprised entirely of a link](https://example.com "This is the long link's title")␊ ␊ > [This long line is comprised entirely of a link](https://example.com "This is the long link's title")␊ ␊ [This long line is comprised entirely of a link](https://example.com "But is inside a code block") {MD013}␊ ␊ \`\`\`markdown␊ [This long line is comprised entirely of a link](https://example.com "But is inside a code block") {MD013} {MD046:13}␊ \`\`\`␊ ␊ This [long line is comprised mostly of a link](https://example.com "This is the long link's title") {MD013}␊ ␊ [This long line is comprised mostly of a link](https://example.com "This is the long link's title") text {MD013}␊ ␊ This long line includes a simple [reference][label] link and is long enough to violate the rule. {MD013}␊ ␊ [This long line is comprised entirely of a reference link and is long enough to violate the rule][label]␊ ␊ [label]: https://example.org "Title for a link reference that is itself long enough to violate the rule"␊ ␊ [Link to broken label][notlabel] {MD052}␊ ␊ [notlabel\\]: notlink "Invalid syntax for a link label because the right bracket is backslash-escaped {MD013}"␊ ␊ [](https://example.com "This long line is comprised entirely of a link with empty text and a non-empty title")␊ ␊ *[This long line is comprised of an emphasized link](https://example.com "This is the long link's title")*␊ ␊ *[This long line is comprised of an emphasized link {MD049}](https://example.com "This is the long link's title")*␊ ␊ **[This long line is comprised of a bolded link](https://example.com "This is the long link's title")**␊ ␊ **[This long line is comprised of a bolded link {MD050}](https://example.com "This is the long link's title")**␊ ␊ ***[This long line is comprised of an emphasized and bolded link {MD049}](https://example.com "This is the long link's title")***␊ ␊ ***[This long line is comprised of an emphasized and bolded link {MD049}](https://example.com "This is the long link's title")***␊ ␊ *[](https://example.com "This long line is comprised of an emphasized link with empty text and a non-empty title")*␊ ␊ **[](https://example.com "This long line is comprised of a bolded link with empty text and a non-empty title")**␊ ␊ ␊ ␊ **␊ ␊ ****␊ ␊ ![Reference style for long line image which is itself an example of a long line with content][image]␊ ␊ *![Reference style for long line image which is itself an example of a long line with content][image]*␊ ␊ **![Reference style for long line image which is itself an example of a long line with content][image]**␊ ␊ [image]: https://example.com "Title text for long line image example using reference style for image details"␊ ␊ ␊ ␊ ␊ ␊ ␊ ␊ Long lines inside HTML comments should also ␊ `, } ## long_lines_100.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Expected: 100; Actual: 111', errorRange: [ 101, 11, ], fixInfo: null, lineNumber: 5, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, ], fixed: `# long_lines_100␊ ␊ This is a very very very very very very very very long line over 80 chars but less than 100␊ ␊ This is a very very very very very very very very very very long line over 80 chars, and also over 100. {MD013}␊ ␊ This is a very very very very very very very very very long line that is exactly 100 characters long␊ ␊ This line however, while very long, doesn't have whitespace after the 100th columnwhichallowsforURLsandotherlongthings.␊ ␊ ␊ `, } ## long_lines_code-default.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Expected: 80; Actual: 128', errorRange: [ 81, 48, ], fixInfo: null, lineNumber: 5, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 139', errorRange: [ 81, 59, ], fixInfo: null, lineNumber: 11, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 111', errorRange: [ 81, 31, ], fixInfo: null, lineNumber: 16, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 111', errorRange: [ 81, 31, ], fixInfo: null, lineNumber: 17, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 111', errorRange: [ 81, 31, ], fixInfo: null, lineNumber: 18, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 111', errorRange: [ 81, 31, ], fixInfo: null, lineNumber: 19, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 111', errorRange: [ 81, 31, ], fixInfo: null, lineNumber: 20, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 128', errorRange: [ 81, 48, ], fixInfo: null, lineNumber: 22, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 111', errorRange: [ 81, 31, ], fixInfo: null, lineNumber: 26, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 111', errorRange: [ 81, 31, ], fixInfo: null, lineNumber: 27, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 111', errorRange: [ 81, 31, ], fixInfo: null, lineNumber: 28, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 111', errorRange: [ 81, 31, ], fixInfo: null, lineNumber: 29, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 111', errorRange: [ 81, 31, ], fixInfo: null, lineNumber: 30, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, ], fixed: `# long_lines_code-default␊ ␊ This is a short line.␊ ␊ This is a very very very very very very very very very very very very very very very very very very very very long line. {MD013}␊ ␊ This is a short line.␊ ␊ \`\`\`text␊ Here is a short line in a code block.␊ Here is a very very very very very very very very very very very very very very very very very very very long line in a code block. {MD013}␊ \`\`\`␊ ␊ This is a short line.␊ ␊ | First Heading | Second Heading | Third Heading | Fourth Heading | Fifth Heading | Sixth Heading | {MD013}␊ | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- | {MD013}␊ | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | {MD013}␊ | ============== | ============== | ============== | ============== | ============== | ============== | {MD013}␊ | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | {MD013}␊ ␊ This is a very very very very very very very very very very very very very very very very very very very very long line. {MD013}␊ ␊ Another line.␊ ␊ | First Heading | Second Heading | Third Heading | Fourth Heading | Fifth Heading | Sixth Heading | {MD013}␊ | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- | {MD013}␊ | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | {MD013}␊ | ============== | ============== | ============== | ============== | ============== | ============== | {MD013}␊ | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | {MD013}␊ `, } ## long_lines_code.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Expected: 80; Actual: 128', errorRange: [ 81, 48, ], fixInfo: null, lineNumber: 5, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, { errorContext: null, errorDetail: 'Expected: 80; Actual: 128', errorRange: [ 81, 48, ], fixInfo: null, lineNumber: 34, ruleDescription: 'Line length', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md', ruleNames: [ 'MD013', 'line-length', ], }, ], fixed: `# long_lines_code␊ ␊ This is a short line.␊ ␊ This is a very very very very very very very very very very very very very very very very very very very very long line. {MD013}␊ ␊ This is a short line.␊ ␊ \`\`\`text␊ Here is a short line in a code block.␊ Here is a very very very very very very very very very very very very very very very very very very very long line in a code block.␊ \`\`\`␊ ␊ \`\`\`text␊ test␊ test␊ ␊ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut␊ \`\`\`␊ ␊ This is a short line.␊ ␊ | First Heading | Second Heading | Third Heading | Fourth Heading | Fifth Heading | Sixth Heading |␊ | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- |␊ | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- |␊ | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ | ============== | ============== | ============== | ============== | ============== | ============== |␊ | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell |␊ {: rules="groups"}␊ ␊ This is a very very very very very very very very very very very very very very very very very very very very long line. {MD013}␊ ␊ Another line.␊ ␊ | First Heading | Second Heading | Third Heading | Fourth Heading | Fifth Heading | Sixth Heading |␊ | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- |␊ | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ | -------------- | -------------- | -------------- | -------------- | -------------- | -------------- |␊ | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell | Content Cell |␊ | ============== | ============== | ============== | ============== | ============== | ============== |␊ | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell | Footer Cell |␊ {: rules="groups"}␊ ␊ ␊ `, } ## markdown-extra-footnote.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: '(parenthesized footnote)[x^y]', errorRange: [ 15, 29, ], fixInfo: { deleteCount: 29, editColumn: 15, insertText: '[parenthesized footnote](x^y)', }, lineNumber: 7, ruleDescription: 'Reversed link syntax', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md', ruleNames: [ 'MD011', 'no-reversed-links', ], }, { errorContext: null, errorDetail: '(is this)[z]', errorRange: [ 5, 12, ], fixInfo: { deleteCount: 12, editColumn: 5, insertText: '[is this](z)', }, lineNumber: 9, ruleDescription: 'Reversed link syntax', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md', ruleNames: [ 'MD011', 'no-reversed-links', ], }, ], fixed: `# Heading␊ ␊ Text with Markdown Extra footnote[^1]␊ ␊ Text with (parenthesized footnote)[^2]␊ ␊ This is not a [parenthesized footnote](x^y) {MD011}␊ ␊ Nor [is this](z) {MD011}␊ ␊ [^1]: Footnote␊ [^2]: Another footnote␊ `, } ## markdown-in-html.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Expected: atx; Actual: atx_closed', errorRange: null, fixInfo: null, lineNumber: 32, ruleDescription: 'Heading style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', ruleNames: [ 'MD003', 'heading-style', ], }, { errorContext: null, errorDetail: 'Expected: plus; Actual: dash', errorRange: [ 1, 3, ], fixInfo: { deleteCount: 1, editColumn: 2, insertText: '+', }, lineNumber: 25, ruleDescription: 'Unordered list style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md', ruleNames: [ 'MD004', 'ul-style', ], }, { errorContext: null, errorDetail: 'Expected: plus; Actual: dash', errorRange: [ 1, 2, ], fixInfo: { deleteCount: 1, editColumn: 1, insertText: '+', }, lineNumber: 26, 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: 1; Actual: 0', errorRange: [ 1, 2, ], fixInfo: null, lineNumber: 26, ruleDescription: 'Inconsistent indentation for list items at the same level', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md', ruleNames: [ 'MD005', 'list-indent', ], }, { errorContext: null, errorDetail: 'Expected: 0; Actual: 1', errorRange: [ 1, 3, ], fixInfo: { deleteCount: 1, editColumn: 1, insertText: '', }, lineNumber: 25, ruleDescription: 'Unordered list indentation', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md', ruleNames: [ 'MD007', 'ul-indent', ], }, { errorContext: '## Heading 2b {MD019} {MD022}', errorDetail: null, errorRange: [ 1, 5, ], fixInfo: { deleteCount: 1, editColumn: 3, }, lineNumber: 24, ruleDescription: 'Multiple spaces after hash on atx style heading', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md', ruleNames: [ 'MD019', 'no-multiple-space-atx', ], }, { errorContext: '### Heading 3b...1} {MD022} ###', errorDetail: null, errorRange: [ 1, 6, ], fixInfo: { deleteCount: 44, editColumn: 1, insertText: '### Heading 3b {MD003} {MD021} {MD022} ###', }, lineNumber: 32, ruleDescription: 'Multiple spaces inside hashes on closed atx style heading', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md', ruleNames: [ 'MD021', 'no-multiple-space-closed-atx', ], }, { errorContext: '## Heading 2b {MD019} {MD022}', errorDetail: 'Expected: 1; Actual: 0; Below', errorRange: null, fixInfo: { insertText: `␊ `, lineNumber: 25, }, lineNumber: 24, ruleDescription: 'Headings should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ 'MD022', 'blanks-around-headings', ], }, { errorContext: '### Heading 3b {MD003} {MD021} {MD022} ###', errorDetail: 'Expected: 1; Actual: 0; Below', errorRange: null, fixInfo: { insertText: `␊ `, lineNumber: 33, }, lineNumber: 32, ruleDescription: 'Headings should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md', ruleNames: [ 'MD022', 'blanks-around-headings', ], }, { errorContext: '- Text *text* text * text * te...', errorDetail: null, errorRange: null, fixInfo: { insertText: `␊ `, }, lineNumber: 25, ruleDescription: 'Lists should be surrounded by blank lines', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md', ruleNames: [ 'MD032', 'blanks-around-lists', ], }, { errorContext: 'https://example.com/', errorDetail: null, errorRange: [ 8, 20, ], fixInfo: { deleteCount: 20, editColumn: 8, insertText: '␊ ## Heading 2a␊ - Text *text* text * text * text ** text ** text \`text\` text \` text \` text␊ - Text https://example.com/ [ link ](https://example.com/)␊
␊ ␊␊ ### Heading 3a ###␊ Text␊
␊ ␊ Text␊ ␊␊
␊
## Heading 2b {MD019} {MD022}␊
␊
+ Text *text* text *text* text **text** text \`text\` text \`text\` text {MD004} {MD007} {MD032} {MD037} {MD038}␊
+ Text
␊ ␊ ### Heading 3b {MD003} {MD021} {MD022} ###␊ ␊ Text␊ ␊
␊ ␊ ␊ `, } ## mathjax-scenarios.md > Snapshot 1 { errors: [], fixed: `# Mathjax Scenarios␊ ␊ $1 * 2 * 3$␊ ␊ $$1 * 2 * 3$$␊ ␊ $$1␊ + 2␊ + 3$$␊ ␊ $$␊ 1␊ $$$$␊ 2␊ $$␊ `, } ## md003-escaped-trailing-hash.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Expected: atx; Actual: atx_closed', errorRange: null, fixInfo: null, lineNumber: 15, ruleDescription: 'Heading style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', ruleNames: [ 'MD003', 'heading-style', ], }, { errorContext: null, errorDetail: 'Expected: atx; Actual: atx_closed', errorRange: null, fixInfo: null, lineNumber: 17, 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: 19, 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: 21, ruleDescription: 'Heading style', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md', ruleNames: [ 'MD003', 'heading-style', ], }, { errorContext: '... hash no space{MD003}{MD020}##', errorDetail: null, errorRange: [ 53, 3, ], fixInfo: { deleteCount: 55, editColumn: 1, insertText: '### Heading with trailing hash no space{MD003}{MD020} ##', }, lineNumber: 17, ruleDescription: 'No space inside hashes on closed atx style heading', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ 'MD020', 'no-missing-space-closed-atx', ], }, { errorContext: '...ailing hash {MD003}{MD020} \\##', errorDetail: null, errorRange: [ 48, 2, ], fixInfo: { deleteCount: 49, editColumn: 1, insertText: '### Heading with trailing hash {MD003}{MD020} \\# #', }, lineNumber: 19, ruleDescription: 'No space inside hashes on closed atx style heading', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ 'MD020', 'no-missing-space-closed-atx', ], }, { errorContext: '...hash no space{MD003}{MD020}\\##', errorDetail: null, errorRange: [ 55, 2, ], fixInfo: { deleteCount: 56, editColumn: 1, insertText: '### Heading with trailing hash no space{MD003}{MD020} \\# #', }, lineNumber: 21, ruleDescription: 'No space inside hashes on closed atx style heading', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md', ruleNames: [ 'MD020', 'no-missing-space-closed-atx', ], }, ], fixed: `# Heading␊ ␊ ## Heading with trailing hash \\#␊ ␊ ## Heading with trailing hash no space\\#␊ ␊ ### Heading with trailing hash \\#\\#␊ ␊ ### Heading with trailing hash no space\\#\\#␊ ␊ ### Heading with trailing hash #\\#␊ ␊ ### Heading with trailing hash no space#\\#␊ ␊ ### Heading with trailing hash {MD003} ##␊ ␊ ### Heading with trailing hash no space{MD003}{MD020} ##␊ ␊ ### Heading with trailing hash {MD003}{MD020} \\# #␊ ␊ ### Heading with trailing hash no space{MD003}{MD020} \\# #␊ `, } ## md004-list-items-in-blockquote.md > Snapshot 1 { errors: [], fixed: `# Heading␊ ␊ Text␊ ␊ - Item␊ - Item␊ ␊ Text␊ ␊ >- Item␊ >- Item␊ ␊ Text␊ ␊ > - Item␊ > - Item␊ ␊ Text␊ ␊ > > - Item␊ > > - Item␊ ␊ Text␊ `, } ## md022-line-number-out-of-range.md > Snapshot 1 { errors: [], fixed: `--␊ ␊ `, } ## md033-cannot-read-property-of-undefined.md > Snapshot 1 { errors: [ { errorContext: null, errorDetail: 'Element: br', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 5, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: i', errorRange: [ 11, 3, ], fixInfo: null, lineNumber: 7, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: br', errorRange: [ 1, 5, ], fixInfo: null, lineNumber: 9, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, { errorContext: null, errorDetail: 'Element: b', errorRange: [ 11, 3, ], fixInfo: null, lineNumber: 11, ruleDescription: 'Inline HTML', ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md', ruleNames: [ 'MD033', 'no-inline-html', ], }, ], fixed: `# Heading␊ ␊ Head | Head␊ --------|------------␊JavaScript
{MD044}␊
␊