21
submitted 4 days ago by Mandyv2@lemmy.world to c/lemmy@lemmy.ml

I apologize if this is not right to post here but im not sure where to go with this one as i havent really found an answer myself.

See, heres the thing, as yall surely know when i hit enter on a line once it will not work, it has to be two.

Is that intentional, if so why?

how does one disable that?

you are viewing a single comment's thread
view the rest of the comments
[-] Ephera@lemmy.ml 25 points 4 days ago

It's the way Markdown works. If you put two spaces at the end of a line
before hitting enter, then it will only do a normal linebreak.

[-] bleistift2@sopuli.xyz 10 points 4 days ago

Example: Type

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

[-] mark@programming.dev 3 points 3 days ago

For anyone who cares, you can get this same behavior of a normal line break by holding shift while pressing enter as well.

[-] bleistift2@sopuli.xyz 8 points 3 days ago* (last edited 3 days ago)
Not
in
markdown

(Pressed Shift+Return after every word.)

Not in markdown.

But it works in other word processors (like Word, libreoffice) that distinguish between line breaks and paragraph breaks.

[-] SatyrSack@feddit.org 2 points 3 days ago* (last edited 3 days ago)

Apparently it works in Thunder

EDIT: And Photon

[-] bleistift2@sopuli.xyz 1 points 2 days ago
this post was submitted on 13 Oct 2024
21 points (100.0% liked)

Lemmy

11948 readers
14 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 4 years ago
MODERATORS