When this is set to true
"files.trimTrailingWhitespace": true
trailing spaces get removed at the end of the line in md/markdown files. By default, two spaces in markdown is the same as a <br>. When saving the file with that setting, those two spaces get removed and it changes the output of the markdown.
Well I think we need language specific setting overrides which we have a feature request already for.
@bpasero could you link to the other feature request to make it easy to find? Not sure whether this issue has been fixed!
I think you can use the editor-config extension to configure this now (https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig)
Successfully disabled files.trimTrailingWhitespace for Markdown using language specific settings.
Snippet from my settings.json:
"files.trimTrailingWhitespace": true,
"[markdown]": {
"files.trimTrailingWhitespace": false
},
Most helpful comment
Successfully disabled
files.trimTrailingWhitespacefor Markdown using language specific settings.Snippet from my
settings.json: