Sounds like something the collapsible spoiler can do.
Lemmy
Everything about Lemmy; bugs, gripes, praises, and advocacy.
For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.
The problem with that is that you can't
have spoilers within the line itself
As each spoiler requires a line break
Compare the almost seamless implementation in my example to the raw output of this comment.
This is definitely a cool but very niche feature that I and nerds like me would use, but the vast majority of normal* folk never would. So for that reason it's probably not going to be any kind of priority to add. But hey, in the meantime, we've always got footnotes!
* "normal" by Lemming standards, anyway
I find footnotes are extremely clumsy and break the pacing of the sentence. For example, I read your footnote first, and didn't get the context.