Comment on How to get a new line in a post, but not two?

Dirk@lemmy.ml ⁨3⁩ ⁨days⁩ ago

It’s markdown syntax. Single newlines are ignored so the text can be styled to be 80 characters wide for example but still have it rendered with another line length while two newlines result in a new paragraph. It’s not about “space efficiency”.

To get a visible linebreak without creating a paragraph, add two spaces at the end of the line you want to break.

hello↵
this is the first line␣␣↵
this is the second line↵
more text here↵

… results in this:


hello

this is the first line
this is the second line

more text here


source
Sort:hotnewtop