Once upon a midnight dreary
While I was pondering, weak and weary
Over many a quiant and curious volume of forgotten lore
To get:
Once upon a midnight dreary
While I was pondering, weak and weary
Over many a quiant and curious volume of forgotten lore
(You can highlight the source code to find the extra spaces at the end of each line). Note that this is different from paragraphs, which add spacing between them:
Once upon a midnight dreary
While I was pondering, weak and weary
Over many a quiant and curious volume of forgotten lore
Once upon a midnight dreary
While I was pondering, weak and weary
Over many a quiant and curious volume of forgotten lore
This is how markdown works. There is no way to disable that. This is an old convention from when text editors didn’t wrap lines automatically and enables you to write long paragraphs of text, breaking the lines as it makes sense to you, without creating a paragraph each time.
It isnt just how Markdown works either, its how HTML works too: Text is grouped in paragraphs there too, not in lines or statements. Of course there is options to force a line break for when its necessary. But most text reads better as paragraphs. And most people overuse manual line breaks.
I much prefer combining sentences by default.
It's natural to put a blank line between paragraphs, and Markdown was designed to make the natural thing render decently.
You can put things on separate lines if you want, and it'll always read nicely.
But definitely break things up into paragraphs if it makes sense.
Lemmy uses for its markup a language called "markdown". It’s the same one used on Reddit, Stack Exchange, as well as in a modified form on Discord.
Markdown requires two line breaks to define a new paragraph to allow you to break your paragraphs across multiple lines, a useful ability to have with writing that’s going to be tracked by Git, or displayed on some old-school text editors. It also gives you the ability to separate between two paragraphs
and one paragraph with a line break in it.
Which is a useful thing to be able to do in some circumstances, like when writing poetry, or sharing your results in !dailygames@lemmy.zip. To enter a "line break", end a line with two spaces and then press enter only once.
Wow, this is an issue I have had even on Reddit and never knew why. Just always did double spaces. Thank you for asking this question and thank you to those
Who answered.
I remember thinking the same when I first encountered Markdown. There are two ways to do this. Both have their own intended purpose.
A blank line between two blocks of text indicates that they are different paragraphs. You've been using this in place of line breaks, which adds extra space between the lines.
In order to get a normal line break that doesn't cause a jump to the next paragraph, you should end the line with two spaces before hitting enter, which you only hit once.
Is that intentional, if so why?
how does one disable that?
- Probably.
- You don't.
If you think this comment was a bit long, yeah, I padded it on purpose to demonstrate line breaks and paragraphs.