Remove MD002 (deprecated in v0.13.0) and MD006 (deprecated in v0.19.0).

This commit is contained in:
David Anson 2023-11-09 19:47:15 -08:00
parent 80539b774e
commit 20a552b4b7
40 changed files with 250 additions and 1239 deletions

View file

@ -1,4 +1,4 @@
## One {MD002}
## One
#### Two {MD001}
@ -9,8 +9,8 @@
- Charlie {MD004}
* Delta {MD006} {MD007}
* Echo {MD006} {MD007}
* Delta {MD007}
* Echo {MD007}
Text {MD009}
@ -30,7 +30,5 @@ Text text {MD010}
12. Twelve
<!-- markdownlint-configure-file {
"first-heading-h1": true,
"ul-start-left": true,
"first-line-heading": false
} -->

View file

@ -3,9 +3,6 @@
## Another one {MD025}
<!-- markdownlint-configure-file {
"first-heading-h1": {
"level": 2
},
"single-title": {
"level": 2
},

View file

@ -19,6 +19,5 @@
## Heading 10 {MD003} \#
<!-- markdownlint-configure-file {
"first-heading-h1": false,
"first-line-heading": false
} -->

View file

@ -5,6 +5,5 @@
## Heading 3 {MD019}
<!-- markdownlint-configure-file {
"first-heading-h1": false,
"first-line-heading": false
} -->

View file

@ -1,11 +1,11 @@
## Heading 1 {MD002:1} {MD041:1}
## Heading 1 {MD041:1}
#### Heading 2 {MD001:3}
# Heading 3 {MD003} {MD043} #
* list {MD032}
+ list {MD004} {MD006} {MD007} {MD030} {MD032}
+ list {MD004} {MD007} {MD030} {MD032}
* list
* list {MD007}
@ -35,7 +35,7 @@ long line long line long line long line long line long line long line long line
# Heading 8
{MD024:35}
Note: Can not break MD025 and MD002 in the same file
Note: Can not break MD025 and MD041 in the same file
# Heading 9 {MD023} {MD026}.
@ -106,11 +106,9 @@ Strong **with** different style {MD050}
[url]: https://example.com/page
<!-- markdownlint-configure-file {
"first-heading-h1": true,
"ul-start-left": true,
"required-headings": {
"headings": [
"## Heading 1 {MD002:1} {MD041:1}",
"## Heading 1 {MD041:1}",
"#### Heading 2 {MD001:3}",
"# Broken"
]

View file

@ -12,13 +12,13 @@ Text
Text
* Item {MD006} {MD007}
* Item {MD007}
* Item {MD007}
* Item {MD007}
* Item {MD007}
* Item {MD007}
* Item {MD006} {MD007}
* Item {MD006} {MD007}
* Item {MD007}
* Item {MD007}
Text
@ -27,7 +27,7 @@ Text
Text
* Item {MD006} {MD007}
* Item {MD007}
* Item {MD007}
Text
@ -38,9 +38,9 @@ Text
Text
* Item {MD006} {MD007}
* Item {MD006} {MD007}
* Item {MD006} {MD007}
* Item {MD007}
* Item {MD007}
* Item {MD007}
Text
@ -52,12 +52,8 @@ Text
Text
* Item {MD006} {MD007}
* Item {MD007}
* Item {MD006} {MD007}
* Item {MD007}
* Item {MD006} {MD007}
<!-- markdownlint-configure-file {
"ul-start-left": true
} -->
* Item {MD007}

View file

@ -9,8 +9,5 @@ categories: jekyll update
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
<!-- markdownlint-configure-file {
"first-heading-h1": {
"level": 2
},
"line-length": false
} -->

View file

@ -39,7 +39,6 @@
* item 3 {MD007}
<!-- markdownlint-configure-file {
"ul-start-left": false,
"ul-indent": {
"indent": 3,
"start_indented": true

View file

@ -47,14 +47,10 @@ Text
## Invalid Indentation - Should Start at Zero
- item 1 {MD006} {MD007}
- item 2 {MD006} {MD007}
- item 1 {MD007}
- item 2 {MD007}
- item 2.1 {MD007}
- item 2.2 {MD007}
- item 2.2.1 {MD007}
- item 2.3 {MD007}
- item 3 {MD006} {MD007}
<!-- markdownlint-configure-file {
"ul-start-left": true
} -->
- item 3 {MD007}

View file

@ -19,7 +19,7 @@
- three {MD032}
1. one {MD032}
- two {MD006} {MD007} {MD032}
- two {MD007} {MD032}
1. three {MD032}
## Correct nesting, same type
@ -94,10 +94,6 @@
1. seven
- eight
* 1. Item {MD004} {MD006} {MD007}
* 2. Item {MD004} {MD006} {MD007}
* 3. Item {MD004} {MD006} {MD007}
<!-- markdownlint-configure-file {
"ul-start-left": true
} -->
* 1. Item {MD004} {MD007}
* 2. Item {MD004} {MD007}
* 3. Item {MD004} {MD007}

View file

@ -90,7 +90,7 @@ test("configCustomFileSystem", (t) => new Promise((resolve) => {
};
const extendedContent = {
"MD001": true,
"MD002": true
"MD041": true
};
const fsApi = {
"access": (p, m, cb) => {
@ -403,7 +403,7 @@ test("configCustomFileSystemSync", (t) => {
};
const extendedContent = {
"MD001": true,
"MD002": true
"MD041": true
};
const fsApi = {
"accessSync": (p) => {
@ -465,7 +465,7 @@ test("configCustomFileSystemPromise", (t) => new Promise((resolve) => {
};
const extendedContent = {
"MD001": true,
"MD002": true
"MD041": true
};
const fsApi = {
"access": (p, m, cb) => {
@ -534,7 +534,7 @@ test("extendCustomFileSystemPromise", (t) => new Promise((resolve) => {
};
const extendedContent = {
"MD001": true,
"MD002": true
"MD041": true
};
const fsApi = {
"access": (p, m, cb) => {

View file

@ -33,8 +33,7 @@ test("resultFormattingV0", (t) => new Promise((resolve) => {
"./test/first_heading_bad_atx.md"
],
"config": {
"MD002": true,
"MD041": false
"MD041": true
},
"noInlineConfig": true,
"resultVersion": 0
@ -43,43 +42,44 @@ test("resultFormattingV0", (t) => new Promise((resolve) => {
t.falsy(err);
const expectedResult = {
"./test/atx_heading_spacing.md": {
"MD002": [ 3 ],
"MD018": [ 1 ],
"MD019": [ 3, 5 ]
"MD019": [ 3, 5 ],
"MD041": [ 1 ]
},
"./test/first_heading_bad_atx.md": {
"MD002": [ 1 ]
"MD041": [ 1 ]
}
};
// @ts-ignore
t.deepEqual(actualResult, expectedResult, "Undetected issues.");
// @ts-ignore
let actualMessage = actualResult.toString();
let expectedMessage =
"./test/atx_heading_spacing.md: 3: MD002" +
" First heading should be a top-level heading\n" +
"./test/atx_heading_spacing.md: 1: MD018" +
" No space after hash on atx style heading\n" +
"./test/atx_heading_spacing.md: 3: MD019" +
" Multiple spaces after hash on atx style heading\n" +
"./test/atx_heading_spacing.md: 5: MD019" +
" Multiple spaces after hash on atx style heading\n" +
"./test/first_heading_bad_atx.md: 1: MD002" +
" First heading should be a top-level heading";
t.is(actualMessage, expectedMessage, "Incorrect message (name).");
"./test/atx_heading_spacing.md: 1: MD041" +
" First line in a file should be a top-level heading\n" +
"./test/first_heading_bad_atx.md: 1: MD041" +
" First line in a file should be a top-level heading"
t.is(actualMessage, expectedMessage, "Incorrect message (name).");
// @ts-ignore
actualMessage = actualResult.toString(true);
expectedMessage =
"./test/atx_heading_spacing.md: 3: first-heading-h1" +
" First heading should be a top-level heading\n" +
"./test/atx_heading_spacing.md: 1: no-missing-space-atx" +
" No space after hash on atx style heading\n" +
"./test/atx_heading_spacing.md: 3: no-multiple-space-atx" +
" Multiple spaces after hash on atx style heading\n" +
"./test/atx_heading_spacing.md: 5: no-multiple-space-atx" +
" Multiple spaces after hash on atx style heading\n" +
"./test/first_heading_bad_atx.md: 1: first-heading-h1" +
" First heading should be a top-level heading";
t.is(actualMessage, expectedMessage, "Incorrect message (alias).");
"./test/atx_heading_spacing.md: 1: first-line-heading" +
" First line in a file should be a top-level heading\n" +
"./test/first_heading_bad_atx.md: 1: first-line-heading" +
" First line in a file should be a top-level heading"
t.is(actualMessage, expectedMessage, "Incorrect message (alias).");
resolve();
});
}));
@ -92,8 +92,7 @@ test("resultFormattingSyncV0", (t) => {
"./test/first_heading_bad_atx.md"
],
"config": {
"MD002": true,
"MD041": false
"MD041": true
},
"noInlineConfig": true,
"resultVersion": 0
@ -101,42 +100,42 @@ test("resultFormattingSyncV0", (t) => {
const actualResult = markdownlint.sync(options);
const expectedResult = {
"./test/atx_heading_spacing.md": {
"MD002": [ 3 ],
"MD018": [ 1 ],
"MD019": [ 3, 5 ]
"MD019": [ 3, 5 ],
"MD041": [ 1 ]
},
"./test/first_heading_bad_atx.md": {
"MD002": [ 1 ]
"MD041": [ 1 ]
}
};
// @ts-ignore
t.deepEqual(actualResult, expectedResult, "Undetected issues.");
let actualMessage = actualResult.toString();
let expectedMessage =
"./test/atx_heading_spacing.md: 3: MD002" +
" First heading should be a top-level heading\n" +
"./test/atx_heading_spacing.md: 1: MD018" +
" No space after hash on atx style heading\n" +
"./test/atx_heading_spacing.md: 3: MD019" +
" Multiple spaces after hash on atx style heading\n" +
"./test/atx_heading_spacing.md: 5: MD019" +
" Multiple spaces after hash on atx style heading\n" +
"./test/first_heading_bad_atx.md: 1: MD002" +
" First heading should be a top-level heading";
"./test/atx_heading_spacing.md: 1: MD041" +
" First line in a file should be a top-level heading\n" +
"./test/first_heading_bad_atx.md: 1: MD041" +
" First line in a file should be a top-level heading"
t.is(actualMessage, expectedMessage, "Incorrect message (name).");
// @ts-ignore
actualMessage = actualResult.toString(true);
expectedMessage =
"./test/atx_heading_spacing.md: 3: first-heading-h1" +
" First heading should be a top-level heading\n" +
"./test/atx_heading_spacing.md: 1: no-missing-space-atx" +
" No space after hash on atx style heading\n" +
"./test/atx_heading_spacing.md: 3: no-multiple-space-atx" +
" Multiple spaces after hash on atx style heading\n" +
"./test/atx_heading_spacing.md: 5: no-multiple-space-atx" +
" Multiple spaces after hash on atx style heading\n" +
"./test/first_heading_bad_atx.md: 1: first-heading-h1" +
" First heading should be a top-level heading";
"./test/atx_heading_spacing.md: 1: first-line-heading" +
" First line in a file should be a top-level heading\n" +
"./test/first_heading_bad_atx.md: 1: first-line-heading" +
" First line in a file should be a top-level heading"
t.is(actualMessage, expectedMessage, "Incorrect message (alias).");
});
@ -152,8 +151,7 @@ test("resultFormattingV1", (t) => new Promise((resolve) => {
"./test/first_heading_bad_atx.md"
],
"config": {
"MD002": true,
"MD041": false
"MD041": true
},
"noInlineConfig": true,
"resultVersion": 1
@ -173,14 +171,6 @@ test("resultFormattingV1", (t) => new Promise((resolve) => {
"errorRange": [ 1, 4 ] }
],
"./test/atx_heading_spacing.md": [
{ "lineNumber": 3,
"ruleName": "MD002",
"ruleAlias": "first-heading-h1",
"ruleDescription": "First heading should be a top-level heading",
"ruleInformation": `${homepage}/blob/v${version}/doc/md002.md`,
"errorDetail": "Expected: h1; Actual: h2",
"errorContext": null,
"errorRange": null },
{ "lineNumber": 1,
"ruleName": "MD018",
"ruleAlias": "no-missing-space-atx",
@ -204,26 +194,32 @@ test("resultFormattingV1", (t) => new Promise((resolve) => {
"ruleInformation": `${homepage}/blob/v${version}/doc/md019.md`,
"errorDetail": null,
"errorContext": "## Heading 3 {MD019}",
"errorRange": [ 1, 6 ] }
"errorRange": [ 1, 6 ] },
{ "lineNumber": 1,
"ruleName": "MD041",
"ruleAlias": "first-line-heading",
"ruleDescription": "First line in a file should be a top-level heading",
"ruleInformation": `${homepage}/blob/v${version}/doc/md041.md`,
"errorDetail": null,
"errorContext": "#Heading 1 {MD018}",
"errorRange": null }
],
"./test/first_heading_bad_atx.md": [
{ "lineNumber": 1,
"ruleName": "MD002",
"ruleAlias": "first-heading-h1",
"ruleDescription": "First heading should be a top-level heading",
"ruleInformation": `${homepage}/blob/v${version}/doc/md002.md`,
"errorDetail": "Expected: h1; Actual: h2",
"errorContext": null,
"ruleName": "MD041",
"ruleAlias": "first-line-heading",
"ruleDescription": "First line in a file should be a top-level heading",
"ruleInformation": `${homepage}/blob/v${version}/doc/md041.md`,
"errorDetail": null,
"errorContext": "## Heading",
"errorRange": null }
]
};
// @ts-ignore
t.deepEqual(actualResult, expectedResult, "Undetected issues.");
// @ts-ignore
const actualMessage = actualResult.toString();
const expectedMessage =
"./test/atx_heading_spacing.md: 3: MD002/first-heading-h1" +
" First heading should be a top-level heading" +
" [Expected: h1; Actual: h2]\n" +
"./test/atx_heading_spacing.md: 1: MD018/no-missing-space-atx" +
" No space after hash on atx style heading" +
" [Context: \"#Heading 1 {MD018}\"]\n" +
@ -233,9 +229,12 @@ test("resultFormattingV1", (t) => new Promise((resolve) => {
"./test/atx_heading_spacing.md: 5: MD019/no-multiple-space-atx" +
" Multiple spaces after hash on atx style heading" +
" [Context: \"## Heading 3 {MD019}\"]\n" +
"./test/first_heading_bad_atx.md: 1: MD002/first-heading-h1" +
" First heading should be a top-level heading" +
" [Expected: h1; Actual: h2]\n" +
"./test/atx_heading_spacing.md: 1: MD041/first-line-heading" +
" First line in a file should be a top-level heading" +
" [Context: \"#Heading 1 {MD018}\"]\n" +
"./test/first_heading_bad_atx.md: 1: MD041/first-line-heading" +
" First line in a file should be a top-level heading" +
" [Context: \"## Heading\"]\n" +
"truncate: 1: MD021/no-multiple-space-closed-atx" +
" Multiple spaces inside hashes on closed atx style heading" +
" [Context: \"# Multiple spa...tyle heading #\"]";
@ -256,8 +255,7 @@ test("resultFormattingV2", (t) => new Promise((resolve) => {
"./test/first_heading_bad_atx.md"
],
"config": {
"MD002": true,
"MD041": false
"MD041": true
},
"noInlineConfig": true,
"resultVersion": 2
@ -276,13 +274,6 @@ test("resultFormattingV2", (t) => new Promise((resolve) => {
"errorRange": [ 1, 4 ] }
],
"./test/atx_heading_spacing.md": [
{ "lineNumber": 3,
"ruleNames": [ "MD002", "first-heading-h1", "first-header-h1" ],
"ruleDescription": "First heading should be a top-level heading",
"ruleInformation": `${homepage}/blob/v${version}/doc/md002.md`,
"errorDetail": "Expected: h1; Actual: h2",
"errorContext": null,
"errorRange": null },
{ "lineNumber": 1,
"ruleNames": [ "MD018", "no-missing-space-atx" ],
"ruleDescription": "No space after hash on atx style heading",
@ -303,25 +294,29 @@ test("resultFormattingV2", (t) => new Promise((resolve) => {
"ruleInformation": `${homepage}/blob/v${version}/doc/md019.md`,
"errorDetail": null,
"errorContext": "## Heading 3 {MD019}",
"errorRange": [ 1, 6 ] }
"errorRange": [ 1, 6 ] },
{ "lineNumber": 1,
"ruleNames": [ "MD041", "first-line-heading", "first-line-h1" ],
"ruleDescription": "First line in a file should be a top-level heading",
"ruleInformation": `${homepage}/blob/v${version}/doc/md041.md`,
"errorDetail": null,
"errorContext": "#Heading 1 {MD018}",
"errorRange": null }
],
"./test/first_heading_bad_atx.md": [
{ "lineNumber": 1,
"ruleNames": [ "MD002", "first-heading-h1", "first-header-h1" ],
"ruleDescription": "First heading should be a top-level heading",
"ruleInformation": `${homepage}/blob/v${version}/doc/md002.md`,
"errorDetail": "Expected: h1; Actual: h2",
"errorContext": null,
"ruleNames": [ "MD041", "first-line-heading", "first-line-h1" ],
"ruleDescription": "First line in a file should be a top-level heading",
"ruleInformation": `${homepage}/blob/v${version}/doc/md041.md`,
"errorDetail": null,
"errorContext": "## Heading",
"errorRange": null }
]
};
t.deepEqual(actualResult, expectedResult, "Undetected issues.");
// @ts-ignore
const actualMessage = actualResult.toString();
const expectedMessage =
"./test/atx_heading_spacing.md: 3:" +
" MD002/first-heading-h1/first-header-h1" +
" First heading should be a top-level heading" +
" [Expected: h1; Actual: h2]\n" +
"./test/atx_heading_spacing.md: 1: MD018/no-missing-space-atx" +
" No space after hash on atx style heading" +
" [Context: \"#Heading 1 {MD018}\"]\n" +
@ -331,10 +326,14 @@ test("resultFormattingV2", (t) => new Promise((resolve) => {
"./test/atx_heading_spacing.md: 5: MD019/no-multiple-space-atx" +
" Multiple spaces after hash on atx style heading" +
" [Context: \"## Heading 3 {MD019}\"]\n" +
"./test/atx_heading_spacing.md: 1:" +
" MD041/first-line-heading/first-line-h1" +
" First line in a file should be a top-level heading" +
" [Context: \"#Heading 1 {MD018}\"]\n" +
"./test/first_heading_bad_atx.md: 1:" +
" MD002/first-heading-h1/first-header-h1" +
" First heading should be a top-level heading" +
" [Expected: h1; Actual: h2]\n" +
" MD041/first-line-heading/first-line-h1" +
" First line in a file should be a top-level heading" +
" [Context: \"## Heading\"]\n" +
"truncate: 1: MD021/no-multiple-space-closed-atx" +
" Multiple spaces inside hashes on closed atx style heading" +
" [Context: \"# Multiple spa...tyle heading #\"]";
@ -442,6 +441,7 @@ test("resultFormattingV3", (t) => new Promise((resolve) => {
]
};
t.deepEqual(actualResult, expectedResult, "Undetected issues.");
// @ts-ignore
const actualMessage = actualResult.toString();
const expectedMessage =
"input: 1: MD009/no-trailing-spaces" +

View file

@ -82,11 +82,12 @@ test("projectFiles", (t) => {
"schema/*.md"
]))
.then((files) => {
t.is(files.length, 59);
t.is(files.length, 57);
const options = {
files,
"config": require("../.markdownlint.json")
};
// @ts-ignore
return markdownlint.promises.markdownlint(options).then((actual) => {
const expected = {};
for (const file of files) {
@ -270,7 +271,7 @@ test("enableRules", (t) => new Promise((resolve) => {
"./test/first_heading_bad_atx.md"
],
"config": {
"MD002": true,
"MD041": true,
"default": false,
"no-multiple-space-atx": true
},
@ -281,11 +282,11 @@ test("enableRules", (t) => new Promise((resolve) => {
t.falsy(err);
const expectedResult = {
"./test/atx_heading_spacing.md": {
"MD002": [ 3 ],
"MD019": [ 3, 5 ]
"MD019": [ 3, 5 ],
"MD041": [ 1 ]
},
"./test/first_heading_bad_atx.md": {
"MD002": [ 1 ]
"MD041": [ 1 ]
}
};
// @ts-ignore
@ -302,7 +303,7 @@ test("enableRulesMixedCase", (t) => new Promise((resolve) => {
"./test/first_heading_bad_atx.md"
],
"config": {
"Md002": true,
"Md041": true,
"DeFaUlT": false,
"nO-mUlTiPlE-sPaCe-AtX": true
},
@ -313,11 +314,11 @@ test("enableRulesMixedCase", (t) => new Promise((resolve) => {
t.falsy(err);
const expectedResult = {
"./test/atx_heading_spacing.md": {
"MD002": [ 3 ],
"MD019": [ 3, 5 ]
"MD019": [ 3, 5 ],
"MD041": [ 1 ]
},
"./test/first_heading_bad_atx.md": {
"MD002": [ 1 ]
"MD041": [ 1 ]
}
};
// @ts-ignore
@ -474,7 +475,7 @@ test("styleAll", (t) => new Promise((resolve) => {
"MD042": [ 81 ],
"MD045": [ 85 ],
"MD046": [ 49, 73, 77 ],
"MD047": [ 128 ],
"MD047": [ 126 ],
"MD048": [ 77 ],
"MD049": [ 90 ],
"MD050": [ 94 ],
@ -523,7 +524,7 @@ test("styleRelaxed", (t) => new Promise((resolve) => {
"MD042": [ 81 ],
"MD045": [ 85 ],
"MD046": [ 49, 73, 77 ],
"MD047": [ 128 ],
"MD047": [ 126 ],
"MD048": [ 77 ],
"MD049": [ 90 ],
"MD050": [ 94 ],
@ -839,7 +840,7 @@ test("customFileSystemAsync", (t) => new Promise((resolve) => {
}));
test("readme", async(t) => {
t.plan(126);
t.plan(122);
const tagToRules = {};
for (const rule of rules) {
for (const tag of rule.tags) {
@ -914,7 +915,7 @@ test("readme", async(t) => {
});
test("validateJsonUsingConfigSchemaStrict", async(t) => {
t.plan(168);
t.plan(165);
const { addSchema, validate } =
await import("@hyperjump/json-schema/draft-07");
addSchema(configSchemaStrict, configSchemaStrictUri);
@ -1042,7 +1043,7 @@ test("validateConfigExampleJson", async(t) => {
});
test("allBuiltInRulesHaveValidUrl", (t) => {
t.plan(150);
t.plan(144);
for (const rule of rules) {
// @ts-ignore
t.truthy(rule.information);

View file

@ -7,9 +7,6 @@ title: "First level heading"
## Second level heading
<!-- markdownlint-configure-file {
"first-heading-h1": {
"level": 2
},
"first-line-heading": {
"level": 2
}

View file

@ -105,20 +105,6 @@ Generated by [AVA](https://avajs.dev).
'header-increment',
],
},
{
errorContext: null,
errorDetail: 'Expected: h1; Actual: h2',
errorRange: null,
fixInfo: null,
lineNumber: 1,
ruleDescription: 'First heading should be a top-level heading',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md002.md',
ruleNames: [
'MD002',
'first-heading-h1',
'first-header-h1',
],
},
{
errorContext: null,
errorDetail: 'Expected: atx; Actual: atx_closed',
@ -209,42 +195,6 @@ Generated by [AVA](https://avajs.dev).
'list-indent',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 1',
errorRange: [
1,
3,
],
fixInfo: {
deleteCount: 1,
},
lineNumber: 12,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 1',
errorRange: [
1,
3,
],
fixInfo: {
deleteCount: 1,
},
lineNumber: 13,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 1',
@ -345,7 +295,7 @@ Generated by [AVA](https://avajs.dev).
],
},
],
fixed: `## One {MD002}
fixed: `## One␊
#### Two {MD001}␊
@ -356,8 +306,8 @@ Generated by [AVA](https://avajs.dev).
* Charlie {MD004}␊
* Delta {MD006} {MD007}␊
* Echo {MD006} {MD007}␊
* Delta {MD007}␊
* Echo {MD007}␊
Text {MD009}␊
@ -377,8 +327,6 @@ Generated by [AVA](https://avajs.dev).
12. Twelve␊
<!-- markdownlint-configure-file {␊
"first-heading-h1": true,␊
"ul-start-left": true,␊
"first-line-heading": false␊
} -->␊
`,
@ -2642,9 +2590,6 @@ Generated by [AVA](https://avajs.dev).
## Another one {MD025}␊
<!-- markdownlint-configure-file {␊
"first-heading-h1": {␊
"level": 2␊
},␊
"single-title": {␊
"level": 2␊
},␊
@ -3052,7 +2997,6 @@ Generated by [AVA](https://avajs.dev).
## Heading 10 {MD003} \\#␊
<!-- markdownlint-configure-file {␊
"first-heading-h1": false,␊
"first-line-heading": false␊
} -->␊
`,
@ -3129,7 +3073,6 @@ Generated by [AVA](https://avajs.dev).
## Heading 3 {MD019}␊
<!-- markdownlint-configure-file {␊
"first-heading-h1": false,␊
"first-line-heading": false␊
} -->␊
`,
@ -6564,20 +6507,6 @@ Generated by [AVA](https://avajs.dev).
'header-increment',
],
},
{
errorContext: null,
errorDetail: 'Expected: h1; Actual: h2',
errorRange: null,
fixInfo: null,
lineNumber: 1,
ruleDescription: 'First heading should be a top-level heading',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md002.md',
ruleNames: [
'MD002',
'first-heading-h1',
'first-header-h1',
],
},
{
errorContext: null,
errorDetail: 'Expected: atx; Actual: atx_closed',
@ -6642,24 +6571,6 @@ Generated by [AVA](https://avajs.dev).
'list-indent',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 1',
errorRange: [
1,
4,
],
fixInfo: {
deleteCount: 1,
},
lineNumber: 8,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 1',
@ -7060,7 +6971,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
errorContext: '+ list {MD004} {MD006} {MD007...',
errorContext: '+ list {MD004} {MD007} {MD030...',
errorDetail: null,
errorRange: null,
fixInfo: {
@ -7227,7 +7138,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
errorContext: '## Heading 1 {MD002:1} {MD041:...',
errorContext: '## Heading 1 {MD041:1}',
errorDetail: null,
errorRange: null,
fixInfo: null,
@ -7357,7 +7268,7 @@ Generated by [AVA](https://avajs.dev).
insertText: `␊
`,
},
lineNumber: 128,
lineNumber: 126,
ruleDescription: 'Files should end with a single newline character',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md',
ruleNames: [
@ -7529,7 +7440,7 @@ Generated by [AVA](https://avajs.dev).
],
},
],
fixed: `## Heading 1 {MD002:1} {MD041:1}␊
fixed: `## Heading 1 {MD041:1}␊
#### Heading 2 {MD001:3}␊
@ -7537,7 +7448,7 @@ Generated by [AVA](https://avajs.dev).
* list {MD032}␊
* list {MD004} {MD006} {MD007} {MD030} {MD032}␊
* list {MD004} {MD007} {MD030} {MD032}␊
* list␊
* list {MD007}␊
@ -7566,7 +7477,7 @@ Generated by [AVA](https://avajs.dev).
# Heading 8␊
{MD024:35}␊
Note: Can not break MD025 and MD002 in the same file␊
Note: Can not break MD025 and MD041 in the same file␊
# Heading 9 {MD023} {MD026}␊
@ -7638,11 +7549,9 @@ Generated by [AVA](https://avajs.dev).
[url]: https://example.com/page␊
<!-- markdownlint-configure-file {␊
"first-heading-h1": true,␊
"ul-start-left": true,␊
"required-headings": {␊
"headings": [␊
"## Heading 1 {MD002:1} {MD041:1}",␊
"## Heading 1 {MD041:1}",␊
"#### Heading 2 {MD001:3}",␊
"# Broken"␊
]␊
@ -7786,186 +7695,6 @@ Generated by [AVA](https://avajs.dev).
{
errors: [
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
1,
4,
],
fixInfo: {
deleteCount: 2,
},
lineNumber: 15,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
1,
4,
],
fixInfo: {
deleteCount: 2,
},
lineNumber: 20,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
1,
4,
],
fixInfo: {
deleteCount: 2,
},
lineNumber: 21,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
1,
4,
],
fixInfo: {
deleteCount: 2,
},
lineNumber: 30,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 1',
errorRange: [
1,
3,
],
fixInfo: {
deleteCount: 1,
},
lineNumber: 41,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 1',
errorRange: [
1,
3,
],
fixInfo: {
deleteCount: 1,
},
lineNumber: 42,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 1',
errorRange: [
1,
3,
],
fixInfo: {
deleteCount: 1,
},
lineNumber: 43,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
1,
4,
],
fixInfo: {
deleteCount: 2,
},
lineNumber: 55,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
1,
4,
],
fixInfo: {
deleteCount: 2,
},
lineNumber: 57,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
1,
4,
],
fixInfo: {
deleteCount: 2,
},
lineNumber: 59,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 2',
@ -8281,13 +8010,13 @@ Generated by [AVA](https://avajs.dev).
Text␊
* Item {MD006} {MD007}␊
* Item {MD007}␊
* Item {MD007}␊
* Item {MD007}␊
* Item {MD007}␊
* Item {MD007}␊
* Item {MD006} {MD007}␊
* Item {MD006} {MD007}␊
* Item {MD007}␊
* Item {MD007}␊
Text␊
@ -8296,7 +8025,7 @@ Generated by [AVA](https://avajs.dev).
Text␊
* Item {MD006} {MD007}␊
* Item {MD007}␊
* Item {MD007}␊
Text␊
@ -8307,9 +8036,9 @@ Generated by [AVA](https://avajs.dev).
Text␊
* Item {MD006} {MD007}␊
* Item {MD006} {MD007}␊
* Item {MD006} {MD007}␊
* Item {MD007}␊
* Item {MD007}␊
* Item {MD007}␊
Text␊
@ -8321,15 +8050,11 @@ Generated by [AVA](https://avajs.dev).
Text␊
* Item {MD006} {MD007}␊
* Item {MD007}␊
* Item {MD006} {MD007}␊
* Item {MD007}␊
* Item {MD006} {MD007}␊
<!-- markdownlint-configure-file {␊
"ul-start-left": true␊
} -->␊
* Item {MD007}␊
`,
}
@ -13470,9 +13195,6 @@ Generated by [AVA](https://avajs.dev).
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊
<!-- markdownlint-configure-file {␊
"first-heading-h1": {␊
"level": 2␊
},␊
"line-length": false␊
} -->␊
`,
@ -28470,7 +28192,6 @@ Generated by [AVA](https://avajs.dev).
* item 3 {MD007}␊
<!-- markdownlint-configure-file {␊
"ul-start-left": false,␊
"ul-indent": {␊
"indent": 3,␊
"start_indented": true␊
@ -29041,60 +28762,6 @@ Generated by [AVA](https://avajs.dev).
'list-indent',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
1,
4,
],
fixInfo: {
deleteCount: 2,
},
lineNumber: 50,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
1,
4,
],
fixInfo: {
deleteCount: 2,
},
lineNumber: 51,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
1,
4,
],
fixInfo: {
deleteCount: 2,
},
lineNumber: 56,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 2; Actual: 4',
@ -29545,17 +29212,13 @@ Generated by [AVA](https://avajs.dev).
## Invalid Indentation - Should Start at Zero␊
- item 1 {MD006} {MD007}␊
- item 2 {MD006} {MD007}␊
- item 1 {MD007}␊
- item 2 {MD007}␊
- item 2.1 {MD007}␊
- item 2.2 {MD007}␊
- item 2.2.1 {MD007}␊
- item 2.3 {MD007}␊
- item 3 {MD006} {MD007}␊
<!-- markdownlint-configure-file {␊
"ul-start-left": true␊
} -->␊
- item 3 {MD007}␊
`,
}
@ -32772,78 +32435,6 @@ Generated by [AVA](https://avajs.dev).
'ul-style',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
1,
4,
],
fixInfo: {
deleteCount: 2,
},
lineNumber: 22,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 1',
errorRange: [
1,
3,
],
fixInfo: {
deleteCount: 1,
},
lineNumber: 97,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 1',
errorRange: [
1,
3,
],
fixInfo: {
deleteCount: 1,
},
lineNumber: 98,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 1',
errorRange: [
1,
3,
],
fixInfo: {
deleteCount: 1,
},
lineNumber: 99,
ruleDescription: 'Consider starting bulleted lists at the beginning of the line',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md006.md',
ruleNames: [
'MD006',
'ul-start-left',
],
},
{
errorContext: null,
errorDetail: 'Expected: 0; Actual: 2',
@ -33008,7 +32599,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
errorContext: '- two {MD006} {MD007} {MD032}',
errorContext: '- two {MD007} {MD032}',
errorDetail: null,
errorRange: null,
fixInfo: {
@ -33024,7 +32615,7 @@ Generated by [AVA](https://avajs.dev).
],
},
{
errorContext: '- two {MD006} {MD007} {MD032}',
errorContext: '- two {MD007} {MD032}',
errorDetail: null,
errorRange: null,
fixInfo: {
@ -33081,7 +32672,7 @@ Generated by [AVA](https://avajs.dev).
1. one {MD032}␊
- two {MD006} {MD007} {MD032}␊
- two {MD007} {MD032}␊
1. three {MD032}␊
@ -33157,13 +32748,9 @@ Generated by [AVA](https://avajs.dev).
1. seven␊
- eight␊
- 1. Item {MD004} {MD006} {MD007}␊
- 2. Item {MD004} {MD006} {MD007}␊
- 3. Item {MD004} {MD006} {MD007}␊
<!-- markdownlint-configure-file {␊
"ul-start-left": true␊
} -->␊
- 1. Item {MD004} {MD007}␊
- 2. Item {MD004} {MD007}␊
- 3. Item {MD004} {MD007}␊
`,
}
@ -36309,9 +35896,6 @@ Generated by [AVA](https://avajs.dev).
## Second level heading␊
<!-- markdownlint-configure-file {␊
"first-heading-h1": {␊
"level": 2␊
},␊
"first-line-heading": {␊
"level": 2␊
}␊
@ -50379,9 +49963,6 @@ Generated by [AVA](https://avajs.dev).
Long line long line long line long line long line long line long line long line long line long line {MD013}␊
<!-- markdownlint-configure-file {␊
"first-heading-h1": {␊
"level": "1"␊
},␊
"heading-style": {␊
"style": 0␊
},␊

View file

@ -3,9 +3,6 @@
Long line long line long line long line long line long line long line long line long line long line {MD013}
<!-- markdownlint-configure-file {
"first-heading-h1": {
"level": "1"
},
"heading-style": {
"style": 0
},