I’m using the markdown editor GUI on PieFed.

A comment I wrote looked OK on PieFed, despite me having doubts because I didn’t add spaces at the end of lines to force line breaks.

Today I saw it in Mlem, and line breaks were as expected, not as I’ve seen them on the PieFed web UI. On Lemmy, they are the same as in Mlem.

PieFed: https://piefed.zip/comment/2945722

image

Lemmy: https://discuss.tchncs.de/post/51439392/22823110

image

Mlem shows it like Lemmy. No screenshot necessary.

Summary: In Markdown, you need to add 2 or more spaces at the end of a line to force a line break. I didn’t do that. A client app and a Lemmy instance show the text correct without a line break. PieFed adds a line break.

Update: I’m terribly sorry for using the word “standard” in a non-standard way. I mean this: https://daringfireball.net/projects/markdown/syntax#p

Update 2: Created issue #1524.

  • wjs018@piefed.social
    link
    fedilink
    English
    arrow-up
    13
    ·
    7 days ago

    I have written a big chunk of the markdown_to_html function at this point, I can try to take a look at this. A situation like this isn’t anything we have added to the function, so it must be how the markdown2 python library we are using is interpreting things. Ideally, this is the behavior I would want for line breaks.