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

CRLF line endings give style warning

Open hype8912 opened this issue 8 months ago • 0 comments

When a markdown file contains line endings of CRLF the markdown table formatter will say there is a style error when ran through MegaLinter. If you let the table formatter fix the issues there aren't any visual difference in the file other than the line endings are switched from CRLF to LF. Commonmark and GitHub Flavor Markdown specs both say LF and CRLF are allowed to be used. https://github.github.com/gfm/#character

Is there a way to tell it to use a specific line ending character or have it ignore the line ending characters completely. I understand during fixes it may be required to add line endings so maybe either try to infer what the line ending character is by the first line ending character found in the file or just go with LF if the file already doesn't contain any line ending characters.

It's not a big deal and just some functionality I noticed.

hype8912 avatar Apr 11 '25 16:04 hype8912