.md files contains trailing whitespace. This causes problems when your IDE automatically removes trailing whitespaces - this is a correct behavior in my opinion.
Remove trailing whitespaces from .md files and create an automatic sniff/fixer for it.
@carusogabriel helped me to solve this with this bash script: https://github.com/Symplify/Symplify/blob/master/bin/clear_readmes.sh
I would like to point out that two spaces at the end of line have a special meaning in markdown - they indicate a line break. Removing them automatically may cause issues.
So what is the result @PetrHeinz? Shoud we remove trailing whitespace as @simara-svatopluk suggests?
@Miroslav-Stopka: I would recommend removing any whitespace from blank lines, a single spaces at the end of any line and leaving at most two spaces at the end.
Basically a regex replace of (?:^|( )?) *$ by \1 (not considering tabs).
Most helpful comment
I would like to point out that two spaces at the end of line have a special meaning in markdown - they indicate a line break. Removing them automatically may cause issues.