-
-
Notifications
You must be signed in to change notification settings - Fork 840
Description
I'd like to propose an extra parameter for MD060, which is something we already implement in our docs through https://marketplace.visualstudio.com/items?itemName=fcrespo82.markdown-table-formatter:
That formatting extension has the limitLastColumnLength setting, with an option called: Follow header row length, and the description is: Do not extend last column to more than the table's header row.
Essentially, what it means is "Align all columns except the last column":
Before:
| App name | Default status | Requirements |
|------------|----------------|------------------------------------------------------------------------------------------------------------------------------|
| App one | Enabled | None |
| App ten | Disabled | Use on Thursdays |
| App twenty | Enabled | If you are going to use this application, ensure you have fulfilled the prerequisites and can no longer use any other option |After
| App name | Default status | Requirements |
|------------|----------------|--------------|
| App one | Enabled | None |
| App ten | Disabled | Use on Thursdays |
| App twenty | Enabled | If you are going to use this application, ensure you have fulfilled the prerequisites and can no longer use any other option |
This is a very common formatting issue with Markdown tables, as we often put descriptions, requirements, etc in the last column and they can vary drastically in length, causing a huge amount of additional padding.
It would be great if we could add one more parameter to the existing aligned / any / compact / tight. Maybe aligned-compact? Which aligns all columns, except the last which uses 1 space if it's longer than the header row?