Follow

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

· · Web · 1 · 0 · 0

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)

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.