I anyone from #npm is reading this, here's how to fix the code tab on npmjs.com.
The file contents preview originally uses a float:left for the line numbers, which doesn't line up with the contents.
Switching the container to a flex layout solves the problem, and removes the need for a float.