tablemark icon indicating copy to clipboard operation
tablemark copied to clipboard

Extra dash is generated when label is shorter than content (with padHeaderSeparator: true)

Open gterras opened this issue 9 months ago • 0 comments

Hi and thanks for the great library,

I noticed

tablemark([{foo: null}, {foo: null}, {foo: null}], { padHeaderSeparator: true }) 

Will generate

| Foo   |
| :---- | // 4 dashes
| null  |
| null  |
| null  |

instead of

| Foo  |
| :--- | // 3 dashes
| null |
| null |
| null |

This triggers a reformat on VSC and Sublime.

gterras avatar May 18 '24 02:05 gterras