diff --git a/test/markdownlint-test.mjs b/test/markdownlint-test.mjs index 1696c0f4..cbe5490e 100644 --- a/test/markdownlint-test.mjs +++ b/test/markdownlint-test.mjs @@ -1101,7 +1101,7 @@ test("readme", async(t) => { }); test("validateJsonUsingConfigSchemaStrict", async(t) => { - t.plan(223); + t.plan(224); // @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 393300c4..001ab696 100644 --- a/test/snapshots/markdownlint-test-scenarios.mjs.md +++ b/test/snapshots/markdownlint-test-scenarios.mjs.md @@ -68518,6 +68518,68 @@ Generated by [AVA](https://avajs.dev). `, } +## table-column-style-empty-cells.md + +> Snapshot 1 + + { + errors: [], + fixed: `# Table Column Style - Empty Cells␊ + ␊ + ## Aligned / Edge Pipes␊ + ␊ + | Heading | Heading | Heading |␊ + | ------- | --------- | ------- |␊ + | | Text text | Text |␊ + | Text | | Text |␊ + | Text | Text text | |␊ + ␊ + ## Aligned / No Edge Pipes␊ + ␊ + Heading | Heading | Heading␊ + ------- | --------- | -------␊ + Text | Text text | Text␊ + Text | | Text␊ + Text | Text text | Text␊ + ␊ + ## Compact / Edge Pipes␊ + ␊ + | Heading | Heading | Heading |␊ + | - | - | - |␊ + | | Text text | Text |␊ + | Text text | | Text |␊ + | Text | Text | |␊ + ␊ + ## Compact / No Edge Pipes␊ + ␊ + Heading | Heading | Heading␊ + -- | -- | --␊ + Text | Text text | Text␊ + Text text | | Text␊ + Text | Text | Text␊ + ␊ + ## Tight / Edge Pipes␊ + ␊ + |Heading|Heading|Heading|␊ + |-|-|-|␊ + ||Text text|Text|␊ + |Text text||Text|␊ + |Text|Text||␊ + ␊ + ## Tight / No Edge Pipes␊ + ␊ + Heading|Heading|Heading␊ + -|-|-␊ + Text|Text text|Text␊ + Text text||Text␊ + Text|Text|Text␊ + ␊ + ␊ + `, + } + ## table-column-style-irregular-trailing-pipe.md > Snapshot 1 diff --git a/test/snapshots/markdownlint-test-scenarios.mjs.snap b/test/snapshots/markdownlint-test-scenarios.mjs.snap index 7ec9f46c..4fcf585b 100644 Binary files a/test/snapshots/markdownlint-test-scenarios.mjs.snap and b/test/snapshots/markdownlint-test-scenarios.mjs.snap differ diff --git a/test/table-column-style-empty-cells.md b/test/table-column-style-empty-cells.md new file mode 100644 index 00000000..83262c88 --- /dev/null +++ b/test/table-column-style-empty-cells.md @@ -0,0 +1,53 @@ +# Table Column Style - Empty Cells + +## Aligned / Edge Pipes + +| Heading | Heading | Heading | +| ------- | --------- | ------- | +| | Text text | Text | +| Text | | Text | +| Text | Text text | | + +## Aligned / No Edge Pipes + +Heading | Heading | Heading +------- | --------- | ------- +Text | Text text | Text +Text | | Text +Text | Text text | Text + +## Compact / Edge Pipes + +| Heading | Heading | Heading | +| - | - | - | +| | Text text | Text | +| Text text | | Text | +| Text | Text | | + +## Compact / No Edge Pipes + +Heading | Heading | Heading +-- | -- | -- +Text | Text text | Text +Text text | | Text +Text | Text | Text + +## Tight / Edge Pipes + +|Heading|Heading|Heading| +|-|-|-| +||Text text|Text| +|Text text||Text| +|Text|Text|| + +## Tight / No Edge Pipes + +Heading|Heading|Heading +-|-|- +Text|Text text|Text +Text text||Text +Text|Text|Text + +