this post was submitted on 30 Aug 2023
9 points (84.6% liked)

Lemmy Moderators

690 readers
1 users here now

A community for moderators of various communities to discuss moderating. Help others and get help yourself! Remember, there are no stupid questions!

If you have general questions or things you want to share about the Fediverse, then head over to [email protected]!

If you want help with making a lemmy bot, then head over to [email protected]!

Rules

founded 1 year ago
MODERATORS
 

Sorry for the old-school terminology and mis-terms in this message as I have not had a problem like this since my dumb-terminal days (I'm guessing that long)

How does one add the proper carriage returns to a post?

I have these three lines, with a new line on each but formats as one paragraph: This is line 1. This is line 2. This is line 3.

The only way I can separate these lines is using an extra carriage return between each line which looks horrible.

This is line 1.

This is line 2.

This is line 3.

How do I get the above lines to show up without that extra new line between each?

Thanks!

all 7 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago (1 children)
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

to add to this, some things to know:

  1. any syntax can be escaped by prepending it with a backslash (\). this won't appear in the rendered message
  2. you can also do a line break without a paragraph break by ending the line with a backslash
  3. you don't have to do the numbers. start each line of a numbered list with 1., and the numbers will be generated automatically
  4. lemmy also supports footnotes[^1] - documentation here, although the "longnote" syntax doesn't work
  5. you can view the source of any comment/post by pressing the "more" button, then the button that looks like a page. thus you can see how somebody achieved any markup (only available when logged in, for some reason)
  6. most of these are broken on at least some clients, particularly spoiler and footnotes

[^1]: like this!

[–] [email protected] 4 points 1 year ago (2 children)

Two spaces at the end of a line in normal markdown
Testing now

[–] [email protected] 2 points 1 year ago

I did not know that.
I did not know that.

Thanks!

[–] [email protected] 2 points 1 year ago (1 children)

This is a test of JGE's recommendation
Did it work?
Yes it did!
Thanks JGE!

[–] [email protected] 5 points 1 year ago

For reference, that's how it works in Markdown. Two line breaks for a new paragraph, two spaces at the end of the line if you want it to break without starting a new paragraph.