MarkdownTablePrettify-VSCodeExt
MarkdownTablePrettify-VSCodeExt copied to clipboard
Only supports spacing for header
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 |
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 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
And then there wasn't
Perhaps we can add another configuration to achieve this behavior?
No matter what, thank you for this excellent VSCode extension
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.