6
I think you need to use Markdown and not bracketed tags.
Try the spoiler format:
https://join-lemmy.org/docs/users/02-media.html
You can also have a look at how other people did it. There should be a button somewhere to view the source text of any post or comment. In the Lemmy web-interface this button is hidden behind the three dots icon.