Add simple (GFM) table markup to "Every Markdown Syntax" test file.

This commit is contained in:
David Anson 2023-03-11 13:50:41 -08:00
parent 4ec9b2049b
commit 20e571ba65
5 changed files with 459 additions and 6 deletions

View file

@ -44,4 +44,8 @@ Fenced code block
HTML block HTML block
</p> </p>
| Table | Heading |
| ----- | ------- |
| Table | Cell |
<!-- markdownlint-disable-file --> <!-- markdownlint-disable-file -->

View file

@ -2651,31 +2651,476 @@ Generated by [AVA](https://avajs.dev).
`, `,
type: 'lineEndingBlank', type: 'lineEndingBlank',
}, },
{
children: [
{
children: [
{
children: [
{ {
children: [ children: [
{ {
children: [], children: [],
endColumn: 35, endColumn: 2,
endLine: 47, endLine: 47,
startColumn: 1, startColumn: 1,
startLine: 47, 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 -->', text: '<!-- markdownlint-disable-file -->',
type: 'htmlFlowData', type: 'htmlFlowData',
}, },
], ],
endColumn: 35, endColumn: 35,
endLine: 47, endLine: 51,
startColumn: 1, startColumn: 1,
startLine: 47, startLine: 51,
text: '<!-- markdownlint-disable-file -->', text: '<!-- markdownlint-disable-file -->',
type: 'htmlFlow', type: 'htmlFlow',
}, },
{ {
children: [], children: [],
endColumn: 1, endColumn: 1,
endLine: 48, endLine: 52,
startColumn: 35, startColumn: 35,
startLine: 47, startLine: 51,
text: `␊ text: `␊
`, `,
type: 'lineEnding', type: 'lineEnding',

View file

@ -10526,6 +10526,10 @@ Generated by [AVA](https://avajs.dev).
HTML block␊ HTML block␊
</p> </p>
| Table | Heading |␊
| ----- | ------- |␊
| Table | Cell |␊
<!-- markdownlint-disable-file --> <!-- markdownlint-disable-file -->
`, `,
} }