Open pablobm opened 5 years ago
At first inspection, it would appear that the CSS properties for .CodeRay .line
don't play well with the line numbers. This class is applied to the lines with colour background to allow the colour cover the whole line. When these properties are removed, the problem disappears, but the colour stops covering the whole line:
Say we have a diff file,
test.diff
:And we run CodeRay with the following options:
The resulting HTML+CSS shows the line numbers misaligned, as follows:
The following example is the same output, with the CSS rules
width: 40em; margin: auto;
applied to the.CodeRay
block to highlight "wrapped-over" line numbers and content:This is the expected behaviour, achieved by not using the option
line_numbers: :inline
: