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
You can do it like this
<details> <summary>Short Summary</summary> <p>text to hide</p> </details>
But it will only work in reading mode, otherwise every time you click it, it will let you edit the text.
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 asdetails
. That’s what I want. So I can copy/paste the exact same text and it will work in both places.
@laserjet not an answer to your question, sorry.
How did you manage to federate Lemmy post into mastodon obsidianmd hashtag? There’s none even in the body of your post
I took no steps towards this. I can’t see any hashtags from my end.
I don’t use mastodon but I vaguely recall something about a bot that would add hashtags to lemmy posts to get them visibility on there. It was opt-in at some level but not per-user or per-post. Maybe the community moderator? Or the instance admin had to install something?
I posted to my instance here https://lemmy.dbzer0.com/c/[email protected] and the comm’s home instance is https://lemmy.world/c/obsidianmd. Maybe someone at one of those can tell you how it happened.
I clicked through from your comment and I found my profile on your instance, https://masto.ai/@[email protected]. I see one other post has been tagged with #piracy which I also didn’t take any active steps towards. Maybe if you use this method to look at a more active user you can deduce where it’s coming from.