Account for caption

Change height and position if caption has been added. Also read
outerWidth of line numbers pre rather than just width and copy pre’s
margin and padding properties.