I am suspecting that my Firefox extension Grammarly has an incompatibility issue with WoltLab. If so, it would be the first time I have seen it have a compatibility issue anywhere.
Pasted into code wrapper
Select text first then add code wrapper
I wonder if this was the problem or not.