markdownlint-rule-force-align-table-columns
v0.1.1
Published
Custom markdownlint rule to enforce aligned table columns
Readme
markdownlint-rule-force-align-table-columns
MD060A is a custom markdownlint rule that is able to auto-fix table column alignment.
Why? Because I simply got used to the auto-align feature of Markdown All in One and I don't want to use two formatters that do almost the same job. Also I really want to see this feature added to markdownlint.
Example
Before
| Header | Header |
| ---- | --- |
| very long content | x |After
| Header | Header |
| ----------------- | ------ |
| very long content | x |Installation
npm install markdownlint-rule-force-align-table-columnsUsage
With VSCode extension vscode-markdownlint
In .vscode/settings.json:
{
"markdownlint.customRules": [
"markdownlint-rule-force-align-table-columns"
]
}Or .markdownlint-cli2.jsonc, which requires vscode-markdownlint >= 0.40.0:
{
"customRules": [
"markdownlint-rule-force-align-table-columns"
]
}Why not make a pull request to the MD060 rule?
MD060 seems to be the right place for it and yet I haven't submitted a PR to the author. The author forbids the use of AI generated code in the contribution guidelines. This project is 95% vibe coded and I'm simply too lazy to be bothered rewriting the code of MD060A. That's all there is to it.
