this post was submitted on 06 Aug 2023
5 points (100.0% liked)

Markdown Police

1 readers
2 users here now

We're the markdown police! ^Quite an unfortunate name but^ ask questions here if you don't know how a certain markdown feature works, or you find out about a cool one!

founded 1 year ago
MODERATORS
5
Spoiler syntax (lemmy.xylight.dev)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

Spoilers aren't part of commonmark, so the syntax varies wildly between platforms.

  • Reddit: >!content!<
  • Discord: ||content||

On Lemmy, the syntax is this:

content

and clients should render it as a details element. You can even have titles for it, as shown!

example spoiler titlespoiler example

For some reason, a lot of third party apps still haven't implemented this. As of my knowledge, clients that support this are

  • The default UI, lemmy-ui
  • Photon
top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)
[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago (2 children)

Did it work? It looks Just like your example to me and not actually a spoiler tag.

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

Currently a lot of apps don't support it for some reason. The clients that support it are:

  • The default lemmy-ui
  • Photon
[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

I am using memmy, and your example is visible in the op.

ETA looking at Lemmy.world on safari it still appears broken to me.

::: spoiler https://i.imgur.com/wxaojql.jpg :::

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

It is supposed to look like a drop-down.