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

Formatted files end up with no final newline

Open andreilgeorgescu opened this issue 1 year ago • 1 comments

All of the markdown and mdx files I format with this tool end up with no final newline.

This is unexpected and interferes with how my other formatters such as Prettier work, resulting in a formatting loop (and eventual failure) when used through my meta linter Trunk.

Because of this, I'd like to request a flag that allows for keeping the final newline.

andreilgeorgescu avatar Jan 10 '25 03:01 andreilgeorgescu

Hi Andrei, the extension was designed in a way that it should only touch the tables. If there was a new line after the table, then it will preserve it. See the tests test/systemTests/resources/formatMultipleDocuments-*.md: both the input + expected files have an empty line at the end. Please provide an example input when this behavior is not working as expected.

darkriszty avatar Feb 21 '25 14:02 darkriszty

Closed due to inactivity

darkriszty avatar May 05 '25 13:05 darkriszty