Good reminder how confusing Lemmy’s particular markdown flavor is. TY.
This explains why I keep seeing those colons in plenty posts.
Comment on Observations from poking Bluesky app
freamon@lemmy.world 7 months ago
Firstly, sorry for any potential derailment. This is a comment about the Markdown used in your post (I wouldn’t normally mention it, but consider it fair game since this is a ‘Fediverse’ community).
The spec for lemmy’s spoiler format is colon-colon-colon-space-spoiler. If you miss out the space, then whilst other Lemmy instances can reconstitute the Markdown to see this post as intended, Lemmy itself doesn’t generate the correct HTML when sending it out over ActivityPub. This means that other Fediverse apps that just look at the HTML (e.g. Mastodon, KBIN) can’t render it properly.
Screenshot from kbin:
Image
Also, if you add a horizontal rule without a black space above it, Markdown generally interprets this as meaning that you want the line above it to be a heading. So anything that doesn’t have the full force of Lemmy’s Markdown processor that is currently trying to re-make the HTML from Markdown now has to deal with the ending triple colons having ‘h2’ tags around it.
Screenshot from piefed:
Image
(apologies again for being off-topic)
Good reminder how confusing Lemmy’s particular markdown flavor is. TY.
This explains why I keep seeing those colons in plenty posts.
ElectroVagrant@lemmy.world 7 months ago
Oh! Thanks for the notice! I swear I think the spoiler stuff may have changed at some point, but maybe I’ve been handling it wrong this whole time.
I’ve also not really wanted to use horizontal rules because of it turning things into headers, but haven’t found a better way to put some spacing between the end of lists and the rest of a post’s text. I think I’ve corrected it properly now to be less jank.
freamon@lemmy.world 7 months ago
Well, there’s good news and bad news.
The good news is that Lemmy is now surrounding your spoilers with the expected Details and Summary tags, and moving the HR means PieFed is able to interpret the Markdown for both spoilers.
The bad news:
It turns out KBIN doesn’t understand Details/Summary tags (even though a browser on it own does, so that’s KBIN’s problem).
Neither PieFed, or KBIN, or MS Edge looking at raw HTML can properly deal with a list that starts at ‘0’.
Lemmy is no longer putting List tags around anything inside the spoilers. (so this post now looks worse on KBIN. Sorry about that KBIN users)