Update MD055/table-pipe-style to support "consistent" and other styles, use micromark positioning, report ranges, add more tests.

This commit is contained in:
David Anson 2023-12-30 18:15:38 -08:00
parent a563c082a5
commit 7d2248d211
28 changed files with 4413 additions and 185 deletions

View file

@ -1048,6 +1048,28 @@ export interface Configuration {
*/
url_inline?: boolean;
};
/**
* MD055/table-pipe-style : Table pipe style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md055.md
*/
MD055?:
| boolean
| {
/**
* Table pipe style
*/
style?: "consistent" | "leading_only" | "trailing_only" | "leading_and_trailing" | "no_leading_or_trailing";
};
/**
* MD055/table-pipe-style : Table pipe style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md055.md
*/
"table-pipe-style"?:
| boolean
| {
/**
* Table pipe style
*/
style?: "consistent" | "leading_only" | "trailing_only" | "leading_and_trailing" | "no_leading_or_trailing";
};
/**
* headings : MD001, MD003, MD018, MD019, MD020, MD021, MD022, MD023, MD024, MD025, MD026, MD036, MD041, MD043
*/
@ -1140,5 +1162,9 @@ export interface Configuration {
* images : MD045, MD052, MD053, MD054
*/
images?: boolean;
/**
* table : MD055
*/
table?: boolean;
[k: string]: unknown;
}