diff --git a/test/snapshots/markdownlint-test-micromark.mjs.md b/test/snapshots/markdownlint-test-micromark.mjs.md index 361f5da0..7166709c 100644 --- a/test/snapshots/markdownlint-test-micromark.mjs.md +++ b/test/snapshots/markdownlint-test-micromark.mjs.md @@ -2705,6 +2705,16 @@ Generated by [AVA](https://avajs.dev). text: ' ', type: 'whitespace', }, + ], + endColumn: 9, + endLine: 47, + startColumn: 1, + startLine: 47, + text: '| Table ', + type: 'tableHeader', + }, + { + children: [ { children: [], endColumn: 10, @@ -2714,16 +2724,6 @@ Generated by [AVA](https://avajs.dev). text: '|', type: 'tableCellDivider', }, - ], - endColumn: 10, - endLine: 47, - startColumn: 1, - startLine: 47, - text: '| Table |', - type: 'tableHeader', - }, - { - children: [ { children: [], endColumn: 11, @@ -2773,9 +2773,9 @@ Generated by [AVA](https://avajs.dev). ], endColumn: 20, endLine: 47, - startColumn: 10, + startColumn: 9, startLine: 47, - text: ' Heading |', + text: '| Heading |', type: 'tableHeader', }, ], @@ -2786,134 +2786,155 @@ Generated by [AVA](https://avajs.dev). text: '| Table | Heading |', type: 'tableRow', }, - ], - endColumn: 20, - endLine: 47, - startColumn: 1, - startLine: 47, - text: '| Table | Heading |', - type: 'tableHead', - }, - { - children: [], - endColumn: 1, - endLine: 48, - startColumn: 20, - startLine: 47, - text: `␊ - `, - type: 'lineEnding', - }, - { - children: [ { - children: [ - { - children: [], - endColumn: 2, - endLine: 48, - startColumn: 1, - startLine: 48, - text: '|', - type: 'tableCellDivider', - }, - { - children: [], - endColumn: 3, - endLine: 48, - startColumn: 2, - startLine: 48, - text: ' ', - type: 'whitespace', - }, - { - children: [], - endColumn: 8, - endLine: 48, - startColumn: 3, - startLine: 48, - text: '-----', - type: 'tableDelimiterFiller', - }, - { - children: [], - endColumn: 9, - endLine: 48, - startColumn: 8, - startLine: 48, - text: ' ', - type: 'whitespace', - }, - { - children: [], - endColumn: 10, - endLine: 48, - startColumn: 9, - startLine: 48, - text: '|', - type: 'tableCellDivider', - }, - ], - endColumn: 10, + children: [], + endColumn: 1, endLine: 48, - startColumn: 1, - startLine: 48, - text: '| ----- |', - type: 'tableDelimiter', + startColumn: 20, + startLine: 47, + text: `␊ + `, + type: 'lineEnding', }, { children: [ { - children: [], - endColumn: 11, + children: [ + { + children: [], + endColumn: 2, + endLine: 48, + startColumn: 1, + startLine: 48, + text: '|', + type: 'tableCellDivider', + }, + { + children: [], + endColumn: 3, + endLine: 48, + startColumn: 2, + startLine: 48, + text: ' ', + type: 'whitespace', + }, + { + children: [ + { + children: [], + endColumn: 8, + endLine: 48, + startColumn: 3, + startLine: 48, + text: '-----', + type: 'tableDelimiterFiller', + }, + ], + endColumn: 8, + endLine: 48, + startColumn: 3, + startLine: 48, + text: '-----', + type: 'tableContent', + }, + { + children: [], + endColumn: 9, + endLine: 48, + startColumn: 8, + startLine: 48, + text: ' ', + type: 'whitespace', + }, + ], + endColumn: 9, endLine: 48, - startColumn: 10, + startColumn: 1, startLine: 48, - text: ' ', - type: 'whitespace', + text: '| ----- ', + type: 'tableDelimiter', }, { - children: [], - endColumn: 18, - endLine: 48, - startColumn: 11, - startLine: 48, - text: '-------', - type: 'tableDelimiterFiller', - }, - { - children: [], - endColumn: 19, - endLine: 48, - startColumn: 18, - startLine: 48, - text: ' ', - type: 'whitespace', - }, - { - children: [], + children: [ + { + children: [], + endColumn: 10, + endLine: 48, + startColumn: 9, + startLine: 48, + text: '|', + type: 'tableCellDivider', + }, + { + children: [], + endColumn: 11, + endLine: 48, + startColumn: 10, + startLine: 48, + text: ' ', + type: 'whitespace', + }, + { + children: [ + { + children: [], + endColumn: 18, + endLine: 48, + startColumn: 11, + startLine: 48, + text: '-------', + type: 'tableDelimiterFiller', + }, + ], + endColumn: 18, + endLine: 48, + startColumn: 11, + startLine: 48, + text: '-------', + type: 'tableContent', + }, + { + children: [], + endColumn: 19, + endLine: 48, + startColumn: 18, + startLine: 48, + text: ' ', + type: 'whitespace', + }, + { + children: [], + endColumn: 20, + endLine: 48, + startColumn: 19, + startLine: 48, + text: '|', + type: 'tableCellDivider', + }, + ], endColumn: 20, endLine: 48, - startColumn: 19, + startColumn: 9, startLine: 48, - text: '|', - type: 'tableCellDivider', + text: '| ------- |', + type: 'tableDelimiter', }, ], endColumn: 20, endLine: 48, - startColumn: 10, + startColumn: 1, startLine: 48, - text: ' ------- |', - type: 'tableDelimiter', + text: '| ----- | ------- |', + type: 'tableDelimiterRow', }, ], endColumn: 20, endLine: 48, startColumn: 1, - startLine: 48, - text: '| ----- | ------- |', - type: 'tableDelimiterRow', + startLine: 47, + text: `| Table | Heading |␊ + | ----- | ------- |`, + type: 'tableHead', }, { children: [], @@ -2977,6 +2998,16 @@ Generated by [AVA](https://avajs.dev). text: ' ', type: 'whitespace', }, + ], + endColumn: 9, + endLine: 49, + startColumn: 1, + startLine: 49, + text: '| Table ', + type: 'tableData', + }, + { + children: [ { children: [], endColumn: 10, @@ -2986,16 +3017,6 @@ Generated by [AVA](https://avajs.dev). text: '|', type: 'tableCellDivider', }, - ], - endColumn: 10, - endLine: 49, - startColumn: 1, - startLine: 49, - text: '| Table |', - type: 'tableData', - }, - { - children: [ { children: [], endColumn: 11, @@ -3045,9 +3066,9 @@ Generated by [AVA](https://avajs.dev). ], endColumn: 20, endLine: 49, - startColumn: 10, + startColumn: 9, startLine: 49, - text: ' Cell |', + text: '| Cell |', type: 'tableData', }, ], diff --git a/test/snapshots/markdownlint-test-micromark.mjs.snap b/test/snapshots/markdownlint-test-micromark.mjs.snap index 8252cad3..f3a7d750 100644 Binary files a/test/snapshots/markdownlint-test-micromark.mjs.snap and b/test/snapshots/markdownlint-test-micromark.mjs.snap differ diff --git a/test/snapshots/markdownlint-test-scenarios.js.snap b/test/snapshots/markdownlint-test-scenarios.js.snap index 355663ca..b7fe7d17 100644 Binary files a/test/snapshots/markdownlint-test-scenarios.js.snap and b/test/snapshots/markdownlint-test-scenarios.js.snap differ