vscode-markdown-table icon indicating copy to clipboard operation
vscode-markdown-table copied to clipboard

Add option to remove padding spaces in delimiter row

Open alonso-herreros opened this issue 11 months ago • 2 comments

I'd like an option to not insert spaces between the -s and the |s in the second line of my tables. First, I am working in a project where tables are formatted this way, and whenever I navigate tables i have to go back and revert this line's changes. Second, font ligatures make the |---| style nicer than | --- |

alonso-herreros avatar Mar 06 '24 10:03 alonso-herreros

I think these are the lines where those spaces are added by force

https://github.com/takumisoft68/vscode-markdown-table/blob/9950bb500cff342f061c199b2b73ed3daee3f83f/src/markdownTableDataHelper.ts#L328

https://github.com/takumisoft68/vscode-markdown-table/blob/9950bb500cff342f061c199b2b73ed3daee3f83f/src/markdownTableDataHelper.ts#L333

alonso-herreros avatar Mar 06 '24 10:03 alonso-herreros

@alonso-herreros Thank you for using this extension.

This extension respects the Github Flavored Markdown Spec. In that spec, sample tables have spaces in delimiter row.

https://github.github.com/gfm/#tables-extension-

takumisoft68 avatar Mar 06 '24 12:03 takumisoft68