mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Add test cases for empty table cells.
Some checks failed
Checkers / linkcheck (push) Has been cancelled
Checkers / spellcheck (push) Has been cancelled
CI / build (20, macos-latest) (push) Has been cancelled
CI / build (20, ubuntu-latest) (push) Has been cancelled
CI / build (20, windows-latest) (push) Has been cancelled
CI / build (22, macos-latest) (push) Has been cancelled
CI / build (22, ubuntu-latest) (push) Has been cancelled
CI / build (22, windows-latest) (push) Has been cancelled
CI / build (24, macos-latest) (push) Has been cancelled
CI / build (24, ubuntu-latest) (push) Has been cancelled
CI / build (24, windows-latest) (push) Has been cancelled
CI / pnpm (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
TestRepos / build (latest, ubuntu-latest) (push) Has been cancelled
UpdateTestRepos / update (push) Has been cancelled
Some checks failed
Checkers / linkcheck (push) Has been cancelled
Checkers / spellcheck (push) Has been cancelled
CI / build (20, macos-latest) (push) Has been cancelled
CI / build (20, ubuntu-latest) (push) Has been cancelled
CI / build (20, windows-latest) (push) Has been cancelled
CI / build (22, macos-latest) (push) Has been cancelled
CI / build (22, ubuntu-latest) (push) Has been cancelled
CI / build (22, windows-latest) (push) Has been cancelled
CI / build (24, macos-latest) (push) Has been cancelled
CI / build (24, ubuntu-latest) (push) Has been cancelled
CI / build (24, windows-latest) (push) Has been cancelled
CI / pnpm (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
TestRepos / build (latest, ubuntu-latest) (push) Has been cancelled
UpdateTestRepos / update (push) Has been cancelled
This commit is contained in:
parent
9ea058cf87
commit
a8615a3ca4
4 changed files with 116 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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␊
|
||||
␊
|
||||
<!-- markdownlint-configure-file {␊
|
||||
"table-pipe-style": false␊
|
||||
} -->␊
|
||||
`,
|
||||
}
|
||||
|
||||
## table-column-style-irregular-trailing-pipe.md
|
||||
|
||||
> Snapshot 1
|
||||
|
|
|
|||
Binary file not shown.
53
test/table-column-style-empty-cells.md
Normal file
53
test/table-column-style-empty-cells.md
Normal file
|
|
@ -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
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"table-pipe-style": false
|
||||
} -->
|
||||
Loading…
Add table
Add a link
Reference in a new issue