Add rule MD060/table-column-style (fixes #90, fixes #323).

This commit is contained in:
David Anson 2025-08-19 21:42:08 -07:00
parent b29a0e004c
commit 3532e3110a
36 changed files with 11751 additions and 175 deletions

View file

@ -333,5 +333,11 @@
"link",
"more"
]
},
// MD060/table-column-style : Table column style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md060.md
"MD060": {
// Table column style
"style": "any"
}
}

View file

@ -297,3 +297,8 @@ MD059:
- "here"
- "link"
- "more"
# MD060/table-column-style : Table column style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md060.md
MD060:
# Table column style
style: "any"

View file

@ -604,6 +604,21 @@ for (const rule of rules) {
}
};
break;
case "MD060":
scheme.properties = {
"style": {
"description": "Table column style",
"type": "string",
"enum": [
"any",
"aligned",
"compact",
"tight"
],
"default": "any"
}
};
break;
default:
custom = false;
break;

View file

@ -1869,6 +1869,50 @@
},
"additionalProperties": false
},
"MD060": {
"description": "MD060/table-column-style : Table column style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md060.md",
"type": [
"boolean",
"object"
],
"default": true,
"properties": {
"style": {
"description": "Table column style",
"type": "string",
"enum": [
"any",
"aligned",
"compact",
"tight"
],
"default": "any"
}
},
"additionalProperties": false
},
"table-column-style": {
"description": "MD060/table-column-style : Table column style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md060.md",
"type": [
"boolean",
"object"
],
"default": true,
"properties": {
"style": {
"description": "Table column style",
"type": "string",
"enum": [
"any",
"aligned",
"compact",
"tight"
],
"default": "any"
}
},
"additionalProperties": false
},
"headings": {
"description": "headings : MD001, MD003, MD018, MD019, MD020, MD021, MD022, MD023, MD024, MD025, MD026, MD036, MD041, MD043",
"type": "boolean",
@ -1985,7 +2029,7 @@
"default": true
},
"table": {
"description": "table : MD055, MD056, MD058",
"description": "table : MD055, MD056, MD058, MD060",
"type": "boolean",
"default": true
}

View file

@ -1869,6 +1869,50 @@
},
"additionalProperties": false
},
"MD060": {
"description": "MD060/table-column-style : Table column style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md060.md",
"type": [
"boolean",
"object"
],
"default": true,
"properties": {
"style": {
"description": "Table column style",
"type": "string",
"enum": [
"any",
"aligned",
"compact",
"tight"
],
"default": "any"
}
},
"additionalProperties": false
},
"table-column-style": {
"description": "MD060/table-column-style : Table column style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md060.md",
"type": [
"boolean",
"object"
],
"default": true,
"properties": {
"style": {
"description": "Table column style",
"type": "string",
"enum": [
"any",
"aligned",
"compact",
"tight"
],
"default": "any"
}
},
"additionalProperties": false
},
"headings": {
"description": "headings : MD001, MD003, MD018, MD019, MD020, MD021, MD022, MD023, MD024, MD025, MD026, MD036, MD041, MD043",
"type": "boolean",
@ -1985,7 +2029,7 @@
"default": true
},
"table": {
"description": "table : MD055, MD056, MD058",
"description": "table : MD055, MD056, MD058, MD060",
"type": "boolean",
"default": true
}