Home | Zones | Log in | Register

spoiler tags behave strangely depending upon how your post is formatted

bug report

Nobody
Page 1 of /1  π€   ⬇︎ 

thx for the report i will try to fix

bird on skateboard

for the first one, the < makes it think it’s an html tag and treats the rest of the post as an unclosed spoiler. not sure how i can wrangle the html stuff to treat malformed html better

no idea why the capitalization thing does what it does. i might be able to fix it, gotta do more investigating

bird on skateboard

is there like a markdown equivalent of the spoiler tag?

bagel

unfortunately not
there’s a programming language specifier thing for the ``` code block that we might be able to re-purpose for spoilers hmm

bird on skateboard

i’ve seen with some spoiler tags, particularly captioned ones, that also break if they aren’t part of a new line

<i'm gay>

this will probably be broken

</i'm gay>

stunt failed

this seems mostly fixed now
you can leave a tag unclosed, do them inline and use caps

yeah idk if tiko did it or how it happened but they do seem more reliable these days

high impact

oh yeah i changed how they work / figured out why they were fucking up in the first place
the downside is that spoilers now always have a line break in front of them, i might be able to fix later.

nerd info:
turns out it wasn’t a markdown html parsing bug, just that fact that <p> can’t have a child <p> (it gets treated as a new p, that’s why spoiler content was getting β€˜leaked’ outside the spoiler), so i changed spoilers to use div instead of span which due to some obscure html rules is ok to put in an unclosed p tag. eti doesn’t have this problem cuz it doesn’t put stuff in <p> but the markdown thing i’m using does

bird on skateboard

neat! i like nerd infos

high impact

p is a specialized div tag with exclusivity rules tho

Reply:
To reply to this thread, please join this community.
Pages: 1
1 person is reading this thread now.