• Andrew@piefed.social
    link
    fedilink
    English
    arrow-up
    4
    ·
    10 days ago

    Eternity’s specific issues around spoilers aside, I think other apps / platforms might struggle with that post because the spoilers aren’t technically formatted correctly - the ::: that ends a spoiler should be on a new line.

    lemmy-ui might’ve handled them as the user expected, but anything using a different Markdown library might not (including Lemmy’s own backend when it comes to the HTML content field for federation)

    • SatyrSack@feddit.org
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      10 days ago

      They were formatted correctly. This screenshot here is of the rendered text, not the source. The issue is that with markdown, you need two newlines to create a new paragraph. If you only use one newline, the subsequent line just gets placed at the end of the previous line. But the Lemmy spoiler syntax does not work that way; you can put the ::: delimiters directly above and below the spoiler text without the need for any extra lines. Because Eternity does not recognize the spoiler syntax here, it is placing all three lines of each spoiler into one line just like it would do to any arbitrary text.

      https://lemmy.ml/post/22135805

      • Andrew@piefed.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        10 days ago

        Ah, I see now, thanks. I didn’t know where the original post was, or I would’ve confirmed. I suppose I could have figured out it was for Forza Horizon in retrospect.

        You can get a new line (as opposed to a paragraph) with Lemmy using ‘space space enter’ but I didn’t realise that spoilers don’t even need that.

  • Zorsith@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    10 days ago

    eli5 for why the markdown needed to change to be different on lemmy from “the other site”? Is this style markdown more standard elsewhere?

    • DarkThoughts@fedia.io
      link
      fedilink
      arrow-up
      5
      ·
      10 days ago

      Markdown itself is very old and afaik does not actually support spoiler tags (I don’t think they were even a thing at the time). So every implementation of spoiler tags is just their own cooked up mess.

    • SatyrSack@feddit.org
      link
      fedilink
      English
      arrow-up
      10
      ·
      edit-2
      10 days ago

      Lemmy-style spoilers had never worked for me when I used Eternity. I think it still just supports Reddit-style spoilers, from the Infinity days.

      Reddit-style:

      >!I use Thunder now!<
      

      !I use Thunder now!<

      Lemmy-style:

      ::: spoiler Spoiler
      I use Thunder now
      :::
      
      Spoiler

      I use Thunder now