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.
Unofficial Lemmy community for https://obsidian.md
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:
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.
@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 do not mod ObsidianMD.
However, I know that magazines on Mbin (equivalent to a community on Lemmy) come with an option to automatically tag all posts made in the magazine with a hashtag. I used to do this with a magazine I modded till the instance I was on (kbin.run) died, taking the community with it.
It's possible the mod of ObsidianMD did the same thing with the obsidianmd hashtag. However, I see that ObsidianMD is a lemmy.world community. I'll need to look into this more.
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/obsidianmd@lemmy.world 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/@laserjet@lemmy.dbzer0.com. 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.