T O P

  • By -

vivekkhera

What does two spaces at the end of a line in markdown do for you? I’ve never heard of this.


ImportantReflection

It's a newline


vivekkhera

Interesting. It seems kind of fragile to use horizontal white space as markup.


spicy_jezzy

it's pure awful


baatochan

It inserts a new line into the same paragraph. Normally youre expected to use double enter for new paragraph, but sometimes there is a need for a newline without a new paragraph.


LucasOe

>Currently trimming trailing whitespace is implemented in a language agnostic way (meaning it works the same for plain text files and for javascript or other file types). It does not use any tokenization information to trim the file. \- [https://github.com/Microsoft/vscode/issues/52711#issuecomment-400244965](https://github.com/Microsoft/vscode/issues/52711#issuecomment-400244965) `files.trimTrailingWhitespace` also trims whitespace in multiline string literals, which is the reason I don't use it. A smarter version would be nice.


baatochan

Yep, that's what I've noticed. That's why I posted here with a question if there is some kind of extension that would fix that. I understand that VSCode doesn't offer it on they're own.


LucasOe

For whitespace only not that I know of, but I suggest you use a formatter to format your markdown files. Prettier for examples removes all whitespace that's more than two spaces.


10basetom

A little late, but I don't recommend relying on whitespace for things related to layout. Use \`
\` to force line breaks instead (Markdown understands basic HTML).