[GH-ISSUE #1159] Formatter functionality: adjust table size to its content #628

Closed
opened 2026-03-03 01:28:35 +03:00 by kerem · 8 comments
Owner

Originally created by @jerrygreen on GitHub (Mar 24, 2024).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1159

Just like prettier. Unfortunately prettier has some weird formatting style like this.

So I prefer markdownlint. But unfortunately, it doesn’t format tables.

Originally created by @jerrygreen on GitHub (Mar 24, 2024). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1159 Just like prettier. Unfortunately prettier has some weird formatting style [like this](https://github.com/prettier/prettier/issues/4114). So I prefer markdownlint. But unfortunately, it doesn’t format tables.
kerem 2026-03-03 01:28:35 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Mar 24, 2024):

Sorry, what are you asking for? The example above is a 3-item list, not a table?

<!-- gh-comment-id:2016690116 --> @DavidAnson commented on GitHub (Mar 24, 2024): Sorry, what are you asking for? The example above is a 3-item list, not a table?
Author
Owner

@nschonni commented on GitHub (Mar 24, 2024):

I think "tab size" rather than "table size". It seems to be talking about the trailing space/alignment after an ordered list start

<!-- gh-comment-id:2016699338 --> @nschonni commented on GitHub (Mar 24, 2024): I think "tab size" rather than "table size". It seems to be talking about the trailing space/alignment after an ordered list start
Author
Owner

@nschonni commented on GitHub (Mar 24, 2024):

That would already be covered by MD030 already

<!-- gh-comment-id:2016699533 --> @nschonni commented on GitHub (Mar 24, 2024): That would already be covered by [MD030](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md030---spaces-after-list-markers) already
Author
Owner

@jerrygreen commented on GitHub (Mar 24, 2024):

Sorry for confusing. The list example was just to tell that I don’t like prettier: it’s weird, just look how they format lists lol.

But markdownlint doesn’t format tables… That’s sadge. And the issue about this exact part. Formatting tables.

<!-- gh-comment-id:2016724432 --> @jerrygreen commented on GitHub (Mar 24, 2024): Sorry for confusing. The list example was just to tell that I don’t like prettier: it’s weird, just look how they format lists lol. But markdownlint doesn’t format tables… That’s sadge. And the issue about this exact part. Formatting tables.
Author
Owner

@nschonni commented on GitHub (Mar 24, 2024):

This is a terribly explained issue, if the maintainers or others can't understand what you're asking/reporting, you waste a lot of peoples time

<!-- gh-comment-id:2016850594 --> @nschonni commented on GitHub (Mar 24, 2024): This is a terribly explained issue, if the maintainers or others can't understand what you're asking/reporting, you waste a lot of peoples time
Author
Owner

@DavidAnson commented on GitHub (Mar 24, 2024):

I still don't understand this issue or how it relates to prettier. Please show an example of the current behavior of markdownlint and explain what you would like to see instead.

<!-- gh-comment-id:2016879891 --> @DavidAnson commented on GitHub (Mar 24, 2024): I still don't understand this issue or how it relates to prettier. Please show an example of the current behavior of markdownlint and explain what you would like to see instead.
Author
Owner

@jerrygreen commented on GitHub (Mar 24, 2024):

Here's what prettier does to tables:

gif3

But markdownlint can't do this, unfortunately. With markdownlint, the table remain still.

<!-- gh-comment-id:2016969288 --> @jerrygreen commented on GitHub (Mar 24, 2024): Here's what prettier does to tables: ![gif3](https://github.com/DavidAnson/markdownlint/assets/13215662/e755faff-6339-40da-a298-e29277056b3d) But `markdownlint` can't do this, unfortunately. With `markdownlint`, the table remain still.
Author
Owner

@DavidAnson commented on GitHub (Mar 25, 2024):

Thanks for the clip! This seems to be the same request as #90, for table cells to align vertically.

<!-- gh-comment-id:2017118903 --> @DavidAnson commented on GitHub (Mar 25, 2024): Thanks for the clip! This seems to be the same request as #90, for table cells to align vertically.
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#628
No description provided.