About spoiler tag

Be sure to read and follow the guidelines for our forums.

May 10, 2023 7:02 pm
Hello.

I'm not sure I chose the right forum for the question/suggestion.
Perhaps this has already been discussed, but I did not find it by searching the site.
Correct me if something is wrong.

I noticed that the site does not allow you to adequately make a spoiler inside a spoiler.
For example, a quote within a quote looks normal (there is a hierarchy):
[ +- ] many quotes in quotes
Whereas the spoiler tag seems to be closed by the first closing tag (no hierarchy).
[ +- ] many spoilers in spoilers
[ +- ]
[ +- ]
[/spoiler][/spoiler]
[/spoiler]

I think it doesn't hurt anything if the spoiler logic is made the same as the quote logic.
May 10, 2023 7:33 pm
You can use snippet inside spoilers
[ +- ] spoiler
If you really want to go crazy add charsheet
[ +- ] spoiler
I believe this is due to the simple text open and close tags
Last edited May 11, 2023 3:24 am
May 11, 2023 2:12 am
Wow, thanks!
Sep 14, 2023 2:19 pm
Note for developers planning on looking at this:

GP uses regular expressions to parse the bbcode. PHP does support recursive regex, but it has a stack overflow when the content is too long (a length which some posts manage to hit).

There's a nestedReplace function in the GP code that can handle tested tags (added to support nested f tags), but it's not used by spoilers.

Somebody would need to update the code to use the nestedReplace fn and support nested spoilers.

You do not have permission to post in this thread.