I am not sure if this is something which would be beneficial to other sites which handle blocks of formatted text, but for sites like CS50.SE and others, it would be good if there could be a special spoiler tag which supports wrapping a block of formatted text in a spoiler without ruining the formatting.
Has this been considered and is it doable on the network side, or possibly just for the CS50 at least? This would help with Academic Honesty and not ruining the joy of learning for those who are looking for help, but want to be challenged as well to not just read through the answer.