mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Add simple (GFM) table markup to "Every Markdown Syntax" test file.
This commit is contained in:
parent
4ec9b2049b
commit
20e571ba65
5 changed files with 459 additions and 6 deletions
|
@ -44,4 +44,8 @@ Fenced code block
|
|||
HTML block
|
||||
</p>
|
||||
|
||||
| Table | Heading |
|
||||
| ----- | ------- |
|
||||
| Table | Cell |
|
||||
|
||||
<!-- markdownlint-disable-file -->
|
||||
|
|
|
@ -2654,28 +2654,473 @@ Generated by [AVA](https://avajs.dev).
|
|||
{
|
||||
children: [
|
||||
{
|
||||
children: [],
|
||||
endColumn: 35,
|
||||
children: [
|
||||
{
|
||||
children: [
|
||||
{
|
||||
children: [
|
||||
{
|
||||
children: [],
|
||||
endColumn: 2,
|
||||
endLine: 47,
|
||||
startColumn: 1,
|
||||
startLine: 47,
|
||||
text: '|',
|
||||
type: 'tableCellDivider',
|
||||
},
|
||||
{
|
||||
children: [],
|
||||
endColumn: 3,
|
||||
endLine: 47,
|
||||
startColumn: 2,
|
||||
startLine: 47,
|
||||
text: ' ',
|
||||
type: 'whitespace',
|
||||
},
|
||||
{
|
||||
children: [
|
||||
{
|
||||
children: [],
|
||||
endColumn: 8,
|
||||
endLine: 47,
|
||||
startColumn: 3,
|
||||
startLine: 47,
|
||||
text: 'Table',
|
||||
type: 'data',
|
||||
},
|
||||
],
|
||||
endColumn: 8,
|
||||
endLine: 47,
|
||||
startColumn: 3,
|
||||
startLine: 47,
|
||||
text: 'Table',
|
||||
type: 'tableContent',
|
||||
},
|
||||
{
|
||||
children: [],
|
||||
endColumn: 9,
|
||||
endLine: 47,
|
||||
startColumn: 8,
|
||||
startLine: 47,
|
||||
text: ' ',
|
||||
type: 'whitespace',
|
||||
},
|
||||
{
|
||||
children: [],
|
||||
endColumn: 10,
|
||||
endLine: 47,
|
||||
startColumn: 9,
|
||||
startLine: 47,
|
||||
text: '|',
|
||||
type: 'tableCellDivider',
|
||||
},
|
||||
],
|
||||
endColumn: 10,
|
||||
endLine: 47,
|
||||
startColumn: 1,
|
||||
startLine: 47,
|
||||
text: '| Table |',
|
||||
type: 'tableHeader',
|
||||
},
|
||||
{
|
||||
children: [
|
||||
{
|
||||
children: [],
|
||||
endColumn: 11,
|
||||
endLine: 47,
|
||||
startColumn: 10,
|
||||
startLine: 47,
|
||||
text: ' ',
|
||||
type: 'whitespace',
|
||||
},
|
||||
{
|
||||
children: [
|
||||
{
|
||||
children: [],
|
||||
endColumn: 18,
|
||||
endLine: 47,
|
||||
startColumn: 11,
|
||||
startLine: 47,
|
||||
text: 'Heading',
|
||||
type: 'data',
|
||||
},
|
||||
],
|
||||
endColumn: 18,
|
||||
endLine: 47,
|
||||
startColumn: 11,
|
||||
startLine: 47,
|
||||
text: 'Heading',
|
||||
type: 'tableContent',
|
||||
},
|
||||
{
|
||||
children: [],
|
||||
endColumn: 19,
|
||||
endLine: 47,
|
||||
startColumn: 18,
|
||||
startLine: 47,
|
||||
text: ' ',
|
||||
type: 'whitespace',
|
||||
},
|
||||
{
|
||||
children: [],
|
||||
endColumn: 20,
|
||||
endLine: 47,
|
||||
startColumn: 19,
|
||||
startLine: 47,
|
||||
text: '|',
|
||||
type: 'tableCellDivider',
|
||||
},
|
||||
],
|
||||
endColumn: 20,
|
||||
endLine: 47,
|
||||
startColumn: 10,
|
||||
startLine: 47,
|
||||
text: ' Heading |',
|
||||
type: 'tableHeader',
|
||||
},
|
||||
],
|
||||
endColumn: 20,
|
||||
endLine: 47,
|
||||
startColumn: 1,
|
||||
startLine: 47,
|
||||
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,
|
||||
endLine: 48,
|
||||
startColumn: 1,
|
||||
startLine: 48,
|
||||
text: '| ----- |',
|
||||
type: 'tableDelimiter',
|
||||
},
|
||||
{
|
||||
children: [
|
||||
{
|
||||
children: [],
|
||||
endColumn: 11,
|
||||
endLine: 48,
|
||||
startColumn: 10,
|
||||
startLine: 48,
|
||||
text: ' ',
|
||||
type: 'whitespace',
|
||||
},
|
||||
{
|
||||
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: [],
|
||||
endColumn: 20,
|
||||
endLine: 48,
|
||||
startColumn: 19,
|
||||
startLine: 48,
|
||||
text: '|',
|
||||
type: 'tableCellDivider',
|
||||
},
|
||||
],
|
||||
endColumn: 20,
|
||||
endLine: 48,
|
||||
startColumn: 10,
|
||||
startLine: 48,
|
||||
text: ' ------- |',
|
||||
type: 'tableDelimiter',
|
||||
},
|
||||
],
|
||||
endColumn: 20,
|
||||
endLine: 48,
|
||||
startColumn: 1,
|
||||
startLine: 48,
|
||||
text: '| ----- | ------- |',
|
||||
type: 'tableDelimiterRow',
|
||||
},
|
||||
{
|
||||
children: [],
|
||||
endColumn: 1,
|
||||
endLine: 49,
|
||||
startColumn: 20,
|
||||
startLine: 48,
|
||||
text: `␊
|
||||
`,
|
||||
type: 'lineEnding',
|
||||
},
|
||||
{
|
||||
children: [
|
||||
{
|
||||
children: [
|
||||
{
|
||||
children: [
|
||||
{
|
||||
children: [],
|
||||
endColumn: 2,
|
||||
endLine: 49,
|
||||
startColumn: 1,
|
||||
startLine: 49,
|
||||
text: '|',
|
||||
type: 'tableCellDivider',
|
||||
},
|
||||
{
|
||||
children: [],
|
||||
endColumn: 3,
|
||||
endLine: 49,
|
||||
startColumn: 2,
|
||||
startLine: 49,
|
||||
text: ' ',
|
||||
type: 'whitespace',
|
||||
},
|
||||
{
|
||||
children: [
|
||||
{
|
||||
children: [],
|
||||
endColumn: 8,
|
||||
endLine: 49,
|
||||
startColumn: 3,
|
||||
startLine: 49,
|
||||
text: 'Table',
|
||||
type: 'data',
|
||||
},
|
||||
],
|
||||
endColumn: 8,
|
||||
endLine: 49,
|
||||
startColumn: 3,
|
||||
startLine: 49,
|
||||
text: 'Table',
|
||||
type: 'tableContent',
|
||||
},
|
||||
{
|
||||
children: [],
|
||||
endColumn: 9,
|
||||
endLine: 49,
|
||||
startColumn: 8,
|
||||
startLine: 49,
|
||||
text: ' ',
|
||||
type: 'whitespace',
|
||||
},
|
||||
{
|
||||
children: [],
|
||||
endColumn: 10,
|
||||
endLine: 49,
|
||||
startColumn: 9,
|
||||
startLine: 49,
|
||||
text: '|',
|
||||
type: 'tableCellDivider',
|
||||
},
|
||||
],
|
||||
endColumn: 10,
|
||||
endLine: 49,
|
||||
startColumn: 1,
|
||||
startLine: 49,
|
||||
text: '| Table |',
|
||||
type: 'tableData',
|
||||
},
|
||||
{
|
||||
children: [
|
||||
{
|
||||
children: [],
|
||||
endColumn: 11,
|
||||
endLine: 49,
|
||||
startColumn: 10,
|
||||
startLine: 49,
|
||||
text: ' ',
|
||||
type: 'whitespace',
|
||||
},
|
||||
{
|
||||
children: [
|
||||
{
|
||||
children: [],
|
||||
endColumn: 15,
|
||||
endLine: 49,
|
||||
startColumn: 11,
|
||||
startLine: 49,
|
||||
text: 'Cell',
|
||||
type: 'data',
|
||||
},
|
||||
],
|
||||
endColumn: 15,
|
||||
endLine: 49,
|
||||
startColumn: 11,
|
||||
startLine: 49,
|
||||
text: 'Cell',
|
||||
type: 'tableContent',
|
||||
},
|
||||
{
|
||||
children: [],
|
||||
endColumn: 19,
|
||||
endLine: 49,
|
||||
startColumn: 15,
|
||||
startLine: 49,
|
||||
text: ' ',
|
||||
type: 'whitespace',
|
||||
},
|
||||
{
|
||||
children: [],
|
||||
endColumn: 20,
|
||||
endLine: 49,
|
||||
startColumn: 19,
|
||||
startLine: 49,
|
||||
text: '|',
|
||||
type: 'tableCellDivider',
|
||||
},
|
||||
],
|
||||
endColumn: 20,
|
||||
endLine: 49,
|
||||
startColumn: 10,
|
||||
startLine: 49,
|
||||
text: ' Cell |',
|
||||
type: 'tableData',
|
||||
},
|
||||
],
|
||||
endColumn: 20,
|
||||
endLine: 49,
|
||||
startColumn: 1,
|
||||
startLine: 49,
|
||||
text: '| Table | Cell |',
|
||||
type: 'tableRow',
|
||||
},
|
||||
],
|
||||
endColumn: 20,
|
||||
endLine: 49,
|
||||
startColumn: 1,
|
||||
startLine: 49,
|
||||
text: '| Table | Cell |',
|
||||
type: 'tableBody',
|
||||
},
|
||||
],
|
||||
endColumn: 20,
|
||||
endLine: 49,
|
||||
startColumn: 1,
|
||||
startLine: 47,
|
||||
text: `| Table | Heading |␊
|
||||
| ----- | ------- |␊
|
||||
| Table | Cell |`,
|
||||
type: 'table',
|
||||
},
|
||||
{
|
||||
children: [],
|
||||
endColumn: 1,
|
||||
endLine: 50,
|
||||
startColumn: 20,
|
||||
startLine: 49,
|
||||
text: `␊
|
||||
`,
|
||||
type: 'lineEnding',
|
||||
},
|
||||
{
|
||||
children: [],
|
||||
endColumn: 1,
|
||||
endLine: 51,
|
||||
startColumn: 1,
|
||||
startLine: 50,
|
||||
text: `␊
|
||||
`,
|
||||
type: 'lineEndingBlank',
|
||||
},
|
||||
{
|
||||
children: [
|
||||
{
|
||||
children: [],
|
||||
endColumn: 35,
|
||||
endLine: 51,
|
||||
startColumn: 1,
|
||||
startLine: 51,
|
||||
text: '<!-- markdownlint-disable-file -->',
|
||||
type: 'htmlFlowData',
|
||||
},
|
||||
],
|
||||
endColumn: 35,
|
||||
endLine: 47,
|
||||
endLine: 51,
|
||||
startColumn: 1,
|
||||
startLine: 47,
|
||||
startLine: 51,
|
||||
text: '<!-- markdownlint-disable-file -->',
|
||||
type: 'htmlFlow',
|
||||
},
|
||||
{
|
||||
children: [],
|
||||
endColumn: 1,
|
||||
endLine: 48,
|
||||
endLine: 52,
|
||||
startColumn: 35,
|
||||
startLine: 47,
|
||||
startLine: 51,
|
||||
text: `␊
|
||||
`,
|
||||
type: 'lineEnding',
|
||||
|
|
Binary file not shown.
|
@ -10526,6 +10526,10 @@ Generated by [AVA](https://avajs.dev).
|
|||
HTML block␊
|
||||
</p>␊
|
||||
␊
|
||||
| Table | Heading |␊
|
||||
| ----- | ------- |␊
|
||||
| Table | Cell |␊
|
||||
␊
|
||||
<!-- markdownlint-disable-file -->␊
|
||||
`,
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue