MarkdownTablePrettify-VSCodeExt icon indicating copy to clipboard operation
MarkdownTablePrettify-VSCodeExt copied to clipboard

Only supports spacing for header

Open ajiho opened this issue 5 months ago • 3 comments

I found an issues that has already been closed

table src

| foo | bar |
|------|------|
| test content | test content  |
| test content | test content  |

Expanding behavior

| foo          | bar          |
|--------------|--------------|
| test content | test content |
| test content | test content |

Expected results

| foo          | bar          |
| ------------ | ------------ |
| test content | test content |
| test content | test content |

ajiho avatar Jun 27 '25 22:06 ajiho

Hi @ajiho, a similar feature of what you are expecting exists (via the issue you linked) that requires you to change the "Column Padding" setting of the extension. If I set the value from 0 to 1 and restart VSCode, then this is what I get for your example:

  • Input
| foo | bar |
|------|------|
| test content | test content  |
| test content | test content  |
  • Output
|  foo           |  bar           |
| -------------- | -------------- |
|  test content  |  test content  |
|  test content  |  test content  |

I hope this will cover your use-case.

darkriszty avatar Jun 28 '25 10:06 darkriszty

@darkriszty But this is not the result I wanted

You can see that the result I want is that the header segmentation line is aligned with the content Image

And then there wasn't Image

Perhaps we can add another configuration to achieve this behavior?

No matter what, thank you for this excellent VSCode extension

ajiho avatar Jun 29 '25 09:06 ajiho

https://github.com/darkriszty/MarkdownTablePrettify-VSCodeExt/issues/75#issuecomment-3016483833

@ajiho, I agree: I solely want the <head>-versus-<body> delimiters to be padded (by one). However, locating this issue was difficult due to its nondescript title. Of note is that https://github.com/nvuillam/markdown-table-formatter/pull/12#issue-1118759852 incorporates this downstream.

RokeJulianLockhart avatar Sep 05 '25 19:09 RokeJulianLockhart