When giving hints to a problem, sometimes it's beneficial to use the spoiler markers >!
, however if the reasoning is longer and split into more than one hint, then this leads to bad user experience. For example, consider a post with two hints:
Hint 1:
Define $x = \text{(some complex formula)}$.
Hint 2:
Observe that $f(x) = 0$.
Then, if the user wishes to read the second hint, the first disappears (along with the complex formula inside). I know that one can select the post (i.e. highlight) so that the text becomes visible, but that's only a temporary solution.
In short, it would be great if we could have spoiler markers that would support hierarchical behavior. For example, we could write:
>! hint 1
>! >! hint 2
That could be solved also by toggle-button functionality (which also makes sense for mobile devices), but some say it's not such a good idea.
I suspect that's not easy to add, but might be worth considering if some other changes were to be made as well (e.g. fixing spoilers and MathJax interaction).
What do you think?
Edit:
A feature easier to implement: a serial behavior, which could be triggered by something like
<!-- spoilers: serial -->
in fashion similar to stack-overflow's syntax
highlighting
<!-- language: lang-or-tag-here -->
feature.