||test||

!test!<

Edit: Thanks to @[email protected] for figuring it out!

::: spoiler BUTTON TEXT
HIDDEN TEXT
:::

Becomes

BUTTON TEXT

HIDDEN TEXT

  • Antik@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 years ago

    I think you want to start the spoiler with:

    `::: spoiler spoiler

    SPOILED TEXT

    And then end it with

    `:::

    So that would equal:

    spoiler

    Balls

    Do that without the tilde.

    Edit: I also just noticed that, at least on desktop, a “spoiler” button is there when you make a comment (it’s the triangle exclamation mark icon).

      • Antik@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        Success!

        Though I still haven’t figured out how to get a line break after the spoiler on regular text.

      • devAlot@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        25 days ago
        Test 1

        No line breaks

        Test 2

        With one line break

        Test 3

        With two

        line breaks

        Nice.