[GH-ISSUE #1854] MD060: Additional parameter for compact and tight syles #2606

Closed
opened 2026-03-07 20:09:17 +03:00 by kerem · 1 comment
Owner

Originally created by @stephanlachnit on GitHub (Nov 13, 2025).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1854

Currently the compact style looks something like this:

| Character | Meaning |
| --- | --- |
| Y | Yes |
| N | No |

However I think that aligning the separator actually looks much better:

| Character | Meaning |
| --------- | ------- |
| Y | Yes |
| N | No |

The same goes for the tight style.

Thus I propose a new parameter called separator, which can either be aligned (aligned using header row) or fixed (exactly three dashes).

This parameter would default to aligned for the aligned style and to fixed to the compact and tight styles to keep the current behavior.

Originally created by @stephanlachnit on GitHub (Nov 13, 2025). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1854 <!-- Thank you for taking the time to report an issue! When deciding where to open an issue, please note there are multiple projects under the markdownlint umbrella: - https://github.com/DavidAnson/markdownlint : This is the core JavaScript/Node.js library and is used by other tools. Most issues with implementation and rule behavior belong here. - https://github.com/igorshubovych/markdownlint-cli : This is the original CLI for markdownlint. Issues specific to CLI belong here. - https://github.com/DavidAnson/markdownlint-cli2 : This is a newer CLI for markdownlint and is used by other tools. Issues specific to CLI2 belong here. - https://github.com/DavidAnson/vscode-markdownlint : This is the Visual Studio Code extension for markdownlint. Issues specific to VS Code belong here. - https://github.com/DavidAnson/markdownlint-cli2-action : This is a GitHub Action for markdownlint. Issues specific to the Action belong here. - https://github.com/markdownlint/markdownlint : This is the original markdownlint implementation for Ruby. All Ruby-related issues belong here. Before creating an issue, it's a good practice to search existing issues for something similar. If your issue has already been reported, please update the existing one with any new information. It's also good to review the documentation for any relevant details. When describing an issue, the following information is helpful: - What did you do? - What did you expect to happen? - What actually happened? - What messages or errors were there? - How can the issue be reproduced? - What version were you using? - What operating system were you using? The simplest demonstration of a problem is the most helpful. Small examples can be pasted into the issue description. (Be sure to paste as code so GitHub doesn't render the example in Markdown.) For larger examples, linking to a repository or file is more appropriate. Before proposing a new rule, please review the existing suggestions: https://github.com/DavidAnson/markdownlint/issues?q=is%3Aissue+is%3Aopen+label%3A%22new+rule%22 Thank you! --> Currently the `compact` style looks something like this: ````md | Character | Meaning | | --- | --- | | Y | Yes | | N | No | ```` However I think that aligning the separator actually looks much better: ````md | Character | Meaning | | --------- | ------- | | Y | Yes | | N | No | ```` The same goes for the `tight` style. Thus I propose a new parameter called `separator`, which can either be `aligned` (aligned using header row) or `fixed` (exactly three dashes). This parameter would default to `aligned` for the `aligned` style and to `fixed` to the `compact` and `tight` styles to keep the current behavior.
kerem 2026-03-07 20:09:17 +03:00
Author
Owner

@stephanlachnit commented on GitHub (Dec 4, 2025):

Thanks a lot for implementing this so quickly @DavidAnson!

<!-- gh-comment-id:3611013786 --> @stephanlachnit commented on GitHub (Dec 4, 2025): Thanks a lot for implementing this so quickly @DavidAnson!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#2606
No description provided.