obsidian has callouts, and collapsible headings/codeblocks. So that’s the native way.

There are a couple plugins for other styles of spoilers. but lemmy’s spoilers are weird.

I want to work with lemmy-style markdown in obsidian.

Is there some plugin or other method that would facilitate it?

code:

::: spoiler what's in here?
nothing :(
> nothing at all
___
:::

renders as:

what's in here?

nothing :(

nothing at all


  • layzerjeyt@lemmy.dbzer0.comOP
    link
    fedilink
    arrow-up
    2
    ·
    2 days ago

    Sorry I was not clear. I want to use the lemmy formatting in obsidian and have it correctly render the effect. They for some reason invented their own novel spoiler code that nobody else uses or supports.

    See the post, or documentation (ctrl-f “spoiler”).

    Or click the [!] button in the WYSIWYG toolbar above the comment text entry box:

    If I paste your text into lemmy I get this: <details> <summary>Short Summary</summary> <p>text to hide</p> </details>

    If there would be a way to make the lemmy ::: spoiler code style render as details. That’s what I want. So I can copy/paste the exact same text and it will work in both places.