mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-02-05 21:41:48 +01:00
wip
Some checks are pending
Checkers / linkcheck (push) Waiting to run
Checkers / spellcheck (push) Waiting to run
CI / build (20, macos-latest) (push) Waiting to run
CI / build (20, ubuntu-latest) (push) Waiting to run
CI / build (20, windows-latest) (push) Waiting to run
CI / build (22, macos-latest) (push) Waiting to run
CI / build (22, ubuntu-latest) (push) Waiting to run
CI / build (22, windows-latest) (push) Waiting to run
CI / build (24, macos-latest) (push) Waiting to run
CI / build (24, ubuntu-latest) (push) Waiting to run
CI / build (24, windows-latest) (push) Waiting to run
CI / pnpm (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
TestRepos / build (latest, ubuntu-latest) (push) Waiting to run
UpdateTestRepos / update (push) Waiting to run
Some checks are pending
Checkers / linkcheck (push) Waiting to run
Checkers / spellcheck (push) Waiting to run
CI / build (20, macos-latest) (push) Waiting to run
CI / build (20, ubuntu-latest) (push) Waiting to run
CI / build (20, windows-latest) (push) Waiting to run
CI / build (22, macos-latest) (push) Waiting to run
CI / build (22, ubuntu-latest) (push) Waiting to run
CI / build (22, windows-latest) (push) Waiting to run
CI / build (24, macos-latest) (push) Waiting to run
CI / build (24, ubuntu-latest) (push) Waiting to run
CI / build (24, windows-latest) (push) Waiting to run
CI / pnpm (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
TestRepos / build (latest, ubuntu-latest) (push) Waiting to run
UpdateTestRepos / update (push) Waiting to run
This commit is contained in:
parent
75bb84620e
commit
4447540366
13 changed files with 196 additions and 24 deletions
|
|
@ -1101,7 +1101,7 @@ test("readme", async(t) => {
|
|||
});
|
||||
|
||||
test("validateJsonUsingConfigSchemaStrict", async(t) => {
|
||||
t.plan(221);
|
||||
t.plan(222);
|
||||
// @ts-ignore
|
||||
const ajv = new Ajv(ajvOptions);
|
||||
const validateSchemaStrict = ajv.compile(configSchemaStrict);
|
||||
|
|
|
|||
|
|
@ -72651,6 +72651,124 @@ Generated by [AVA](https://avajs.dev).
|
|||
`,
|
||||
}
|
||||
|
||||
## table-column-style-wide-characters-disable.md
|
||||
|
||||
> Snapshot 1
|
||||
|
||||
{
|
||||
errors: [
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Table pipe does not align with heading for style "aligned"',
|
||||
errorRange: [
|
||||
5,
|
||||
1,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 6,
|
||||
ruleDescription: 'Table column style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md060.md',
|
||||
ruleNames: [
|
||||
'MD060',
|
||||
'table-column-style',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Table pipe does not align with heading for style "aligned"',
|
||||
errorRange: [
|
||||
10,
|
||||
1,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 6,
|
||||
ruleDescription: 'Table column style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md060.md',
|
||||
ruleNames: [
|
||||
'MD060',
|
||||
'table-column-style',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Table pipe does not align with heading for style "aligned"',
|
||||
errorRange: [
|
||||
10,
|
||||
1,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 7,
|
||||
ruleDescription: 'Table column style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md060.md',
|
||||
ruleNames: [
|
||||
'MD060',
|
||||
'table-column-style',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Table pipe does not align with heading for style "aligned"',
|
||||
errorRange: [
|
||||
5,
|
||||
1,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 8,
|
||||
ruleDescription: 'Table column style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md060.md',
|
||||
ruleNames: [
|
||||
'MD060',
|
||||
'table-column-style',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Table pipe does not align with heading for style "aligned"',
|
||||
errorRange: [
|
||||
9,
|
||||
1,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 8,
|
||||
ruleDescription: 'Table column style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md060.md',
|
||||
ruleNames: [
|
||||
'MD060',
|
||||
'table-column-style',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
],
|
||||
fixed: `# Table Column Style - Wide Characters (Disable)␊
|
||||
␊
|
||||
| NN | WW |␊
|
||||
| -- | -- |␊
|
||||
| NN | NN |␊
|
||||
| W | NN |␊
|
||||
| NN | W |␊
|
||||
| W | W |␊
|
||||
| ✅N | NN |␊
|
||||
| NN | ✅N |␊
|
||||
| ✅N | ✅N |␊
|
||||
| WW | NN |␊
|
||||
| NN | WW |␊
|
||||
| WW | WW |␊
|
||||
␊
|
||||
{MD060:-10} {MD060:-9} {MD060:-8}␊
|
||||
␊
|
||||
<!-- markdownlint-configure-file {␊
|
||||
"table-column-style": {␊
|
||||
"style": "aligned",␊
|
||||
"wide_character": "[]"␊
|
||||
}␊
|
||||
} -->␊
|
||||
`,
|
||||
}
|
||||
|
||||
## table-column-style-wide-characters.md
|
||||
|
||||
> Snapshot 1
|
||||
|
|
@ -72689,9 +72807,16 @@ Generated by [AVA](https://avajs.dev).
|
|||
| MN | ✅ |␊
|
||||
| ✅ | ✅ |␊
|
||||
␊
|
||||
## CJK␊
|
||||
## Hello world␊
|
||||
␊
|
||||
TODO...␊
|
||||
| Language | Translation |␊
|
||||
|---------------------|----------------|␊
|
||||
| Emoji | 👋🌎 |␊
|
||||
| Portuguese (Brazil) | Olá mundo |␊
|
||||
| Turkish | Merhaba dünya |␊
|
||||
| Chinese (Mandarin) | 你好,世界 |␊
|
||||
| Japanese | こんにちは世界 |␊
|
||||
| Korean | 안녕 세상 |␊
|
||||
␊
|
||||
<!-- markdownlint-configure-file {␊
|
||||
"table-column-style": {␊
|
||||
|
|
|
|||
Binary file not shown.
23
test/table-column-style-wide-characters-disable.md
Normal file
23
test/table-column-style-wide-characters-disable.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Table Column Style - Wide Characters (Disable)
|
||||
|
||||
| NN | WW |
|
||||
| -- | -- |
|
||||
| NN | NN |
|
||||
| W | NN |
|
||||
| NN | W |
|
||||
| W | W |
|
||||
| ✅N | NN |
|
||||
| NN | ✅N |
|
||||
| ✅N | ✅N |
|
||||
| WW | NN |
|
||||
| NN | WW |
|
||||
| WW | WW |
|
||||
|
||||
{MD060:-10} {MD060:-9} {MD060:-8}
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"table-column-style": {
|
||||
"style": "aligned",
|
||||
"wide_character": "[]"
|
||||
}
|
||||
} -->
|
||||
|
|
@ -30,9 +30,16 @@
|
|||
| MN | ✅ |
|
||||
| ✅ | ✅ |
|
||||
|
||||
## CJK
|
||||
## Hello world
|
||||
|
||||
TODO...
|
||||
| Language | Translation |
|
||||
|---------------------|----------------|
|
||||
| Emoji | 👋🌎 |
|
||||
| Portuguese (Brazil) | Olá mundo |
|
||||
| Turkish | Merhaba dünya |
|
||||
| Chinese (Mandarin) | 你好,世界 |
|
||||
| Japanese | こんにちは世界 |
|
||||
| Korean | 안녕 세상 |
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"table-column-style": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue