Code that requires horizontal scrolling can easily be missed.
calebbrown opened this issue · 4 comments
calebbrown commented
I encountered this package that appeared like this in my browser:
Being MacOS there was no horizontal scrollbar indicating there was text further to the right.
I added white-space: pre-wrap
to the code block and this is what I found:
This solution messes with the line numbers, but it made it obvious where the malicious code was.
calebbrown commented
The problem may actually be the overflow: auto
on the pre[class*=language-]
selector
di commented
di commented