diff --git a/test/lists-in-blockquote-normal-indent.md b/test/lists-in-blockquote-normal-indent.md new file mode 100644 index 00000000..d9622b03 --- /dev/null +++ b/test/lists-in-blockquote-normal-indent.md @@ -0,0 +1,91 @@ +# Lists in Blockquote Normal Indent + +Text + ++ Item ++ Item + more + item ++ Item + + Item + + Item + more + item + + Item + + Item + + Item + + Item ++ Item + +Text + + Code + +Text + +> Text +> +> + Item +> + Item +> more +> item +> + Item +> + Item +> + Item +> more +> item +> + Item +> + Item +> + Item +> + Item +> + Item +> +> Text +> +> Code + +Text + +1. Item +1. Item + more + item +1. Item + 1. Item + 1. Item + more + item + 1. Item + 1. Item + 1. Item + 1. Item +1. Item + +Text + + Code + +Text + +> Text +> +> 1. Item +> 1. Item +> more +> item +> 1. Item +> 1. Item +> 1. Item +> more +> item +> 1. Item +> 1. Item +> 1. Item +> 1. Item +> 1. Item +> +> Text +> +> Code + +Text diff --git a/test/lists-in-blockquote-start-indented.md b/test/lists-in-blockquote-start-indented.md new file mode 100644 index 00000000..6f293e5f --- /dev/null +++ b/test/lists-in-blockquote-start-indented.md @@ -0,0 +1,101 @@ +# Lists in Blockquote Start Indented + +Text + + + Item + + Item + more + item + + Item + + Item + + Item + more + item + + Item + + Item + + Item + + Item + + Item + +Text + + Code + +Text + + + +> Text +> +> + Item {MD027} +> + Item {MD027} +> more +> item +> + Item {MD027} +> + Item +> + Item +> more +> item +> + Item +> + Item +> + Item +> + Item +> + Item {MD027} +> +> Text +> +> Code + + + +Text + + 1. Item + 1. Item + more + item + 1. Item + 1. Item + 1. Item + more + item + 1. Item + 1. Item + 1. Item + 1. Item + 1. Item + +Text + + Code + +Text + +> Text +> +> 1. Item {MD027} +> 1. Item {MD027} +> more +> item +> 1. Item {MD027} +> 1. Item +> 1. Item +> more +> item +> 1. Item +> 1. Item +> 1. Item +> 1. Item +> 1. Item {MD027} +> +> Text +> +> Code + +Text + + diff --git a/test/markdownlint-test.mjs b/test/markdownlint-test.mjs index 06a720f8..48ab9ffc 100644 --- a/test/markdownlint-test.mjs +++ b/test/markdownlint-test.mjs @@ -890,7 +890,7 @@ test("readme", async(t) => { }); test("validateJsonUsingConfigSchemaStrict", async(t) => { - t.plan(181); + t.plan(182); // @ts-ignore const ajv = new Ajv(ajvOptions); const validateSchemaStrict = ajv.compile(configSchemaStrict); diff --git a/test/snapshots/markdownlint-test-scenarios.mjs.md b/test/snapshots/markdownlint-test-scenarios.mjs.md index d4114d80..8d0720e2 100644 --- a/test/snapshots/markdownlint-test-scenarios.mjs.md +++ b/test/snapshots/markdownlint-test-scenarios.mjs.md @@ -34134,6 +34134,369 @@ Generated by [AVA](https://avajs.dev). `, } +## lists-in-blockquote-normal-indent.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Lists in Blockquote Normal Indent␊ + ␊ + Text␊ + ␊ + + Item␊ + + Item␊ + more␊ + item␊ + + Item␊ + + Item␊ + + Item␊ + more␊ + item␊ + + Item␊ + + Item␊ + + Item␊ + + Item␊ + + Item␊ + ␊ + Text␊ + ␊ + Code␊ + ␊ + Text␊ + ␊ + > Text␊ + >␊ + > + Item␊ + > + Item␊ + > more␊ + > item␊ + > + Item␊ + > + Item␊ + > + Item␊ + > more␊ + > item␊ + > + Item␊ + > + Item␊ + > + Item␊ + > + Item␊ + > + Item␊ + >␊ + > Text␊ + >␊ + > Code␊ + ␊ + Text␊ + ␊ + 1. Item␊ + 1. Item␊ + more␊ + item␊ + 1. Item␊ + 1. Item␊ + 1. Item␊ + more␊ + item␊ + 1. Item␊ + 1. Item␊ + 1. Item␊ + 1. Item␊ + 1. Item␊ + ␊ + Text␊ + ␊ + Code␊ + ␊ + Text␊ + ␊ + > Text␊ + >␊ + > 1. Item␊ + > 1. Item␊ + > more␊ + > item␊ + > 1. Item␊ + > 1. Item␊ + > 1. Item␊ + > more␊ + > item␊ + > 1. Item␊ + > 1. Item␊ + > 1. Item␊ + > 1. Item␊ + > 1. Item␊ + >␊ + > Text␊ + >␊ + > Code␊ + ␊ + Text␊ + `, + } + +## lists-in-blockquote-start-indented.md + +> Snapshot 1 + + { + errors: [ + { + errorContext: '> + Item {MD027}', + errorDetail: null, + errorRange: [ + 3, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 3, + }, + lineNumber: 30, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: '> + Item {MD027}', + errorDetail: null, + errorRange: [ + 3, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 3, + }, + lineNumber: 31, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: '> + Item {MD027}', + errorDetail: null, + errorRange: [ + 3, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 3, + }, + lineNumber: 34, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: '> + Item {MD027}', + errorDetail: null, + errorRange: [ + 3, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 3, + }, + lineNumber: 43, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + { + errorContext: '> 1. Item {MD027}', + errorDetail: null, + errorRange: [ + 3, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 3, + }, + lineNumber: 76, + 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: '> 1. Item {MD027}', + errorDetail: null, + errorRange: [ + 3, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 3, + }, + lineNumber: 77, + 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: '> 1. Item {MD027}', + errorDetail: null, + errorRange: [ + 3, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 3, + }, + lineNumber: 80, + 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: '> 1. Item {MD027}', + errorDetail: null, + errorRange: [ + 3, + 2, + ], + fixInfo: { + deleteCount: 2, + editColumn: 3, + }, + lineNumber: 89, + ruleDescription: 'Multiple spaces after blockquote symbol', + ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md', + ruleNames: [ + 'MD027', + 'no-multiple-space-blockquote', + ], + }, + ], + fixed: `# Lists in Blockquote Start Indented␊ + ␊ + Text␊ + ␊ + + Item␊ + + Item␊ + more␊ + item␊ + + Item␊ + + Item␊ + + Item␊ + more␊ + item␊ + + Item␊ + + Item␊ + + Item␊ + + Item␊ + + Item␊ + ␊ + Text␊ + ␊ + Code␊ + ␊ + Text␊ + ␊ + ␊ + ␊ + > Text␊ + >␊ + > + Item {MD027}␊ + > + Item {MD027}␊ + > more␊ + > item␊ + > + Item {MD027}␊ + > + Item␊ + > + Item␊ + > more␊ + > item␊ + > + Item␊ + > + Item␊ + > + Item␊ + > + Item␊ + > + Item {MD027}␊ + >␊ + > Text␊ + >␊ + > Code␊ + ␊ + ␊ + ␊ + Text␊ + ␊ + 1. Item␊ + 1. Item␊ + more␊ + item␊ + 1. Item␊ + 1. Item␊ + 1. Item␊ + more␊ + item␊ + 1. Item␊ + 1. Item␊ + 1. Item␊ + 1. Item␊ + 1. Item␊ + ␊ + Text␊ + ␊ + Code␊ + ␊ + Text␊ + ␊ + > Text␊ + >␊ + > 1. Item {MD027}␊ + > 1. Item {MD027}␊ + > more␊ + > item␊ + > 1. Item {MD027}␊ + > 1. Item␊ + > 1. Item␊ + > more␊ + > item␊ + > 1. Item␊ + > 1. Item␊ + > 1. Item␊ + > 1. Item␊ + > 1. Item {MD027}␊ + >␊ + > Text␊ + >␊ + > Code␊ + ␊ + Text␊ + ␊ + ␊ + `, + } + ## lists-in-blockquote.md > Snapshot 1 diff --git a/test/snapshots/markdownlint-test-scenarios.mjs.snap b/test/snapshots/markdownlint-test-scenarios.mjs.snap index 3f843269..e9bfebea 100644 Binary files a/test/snapshots/markdownlint-test-scenarios.mjs.snap and b/test/snapshots/markdownlint-test-scenarios.mjs.snap differ