• netvor@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    4 months ago

    I usually just click the UI button which gives (a bit confusing) template like this:

    ::: spoiler spoiler
    ___
    :::
    

    then I replace second spoiler with the always-visible text and the ___ with the hidden content, ending up with Markdown like this:

    ::: spoiler star wars secret
    this is an example so i won't actually include the spoiler
    :::
    

    (ie. the ::: spoiler part is fixed, then the title which will appear prior to revelation, then the “secret”, then :::)

    …which renders like this:


    just a normal text

    star wars secret

    this is an example so i won’t actually include the spoiler


    • weker01@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      4 months ago

      Yea spoilers are broken on lemmy. There is no real standard on how to interpret the markdown. That’s why there are multiple flavors of spoilers that each work on a different set of apps / endpoints.

      Edit: For example on eternity there was no spoiler in your post