it’s a bit of a problem how to handle spoiler tags which contain markup; right now i’m just Not Supporting Them. a Better solution would probably be to strip the markup but that is computationally much more difficult
like it kinda sucks that your ||very important spoiler you *don’t* want people to see|| doesn’t actually get spoilered because you accidentally put an <em> tag in there
that’s unintuitive, but also i have no easy way of federating that <em> tag and it’s way easier to just only process text nodes
maybe instead of doing a discord‐style ||spoiler|| i should just do a custom elements‐style <spoiler-text> as that would at least make stripping internal markup easier (and also be easier to support in html)
like it kinda sucks that your ||very important spoiler you *don’t* want people to see|| doesn’t actually get spoilered because you accidentally put an <em> tag in there
that’s unintuitive, but also i have no easy way of federating that <em> tag and it’s way easier to just only process text nodes