We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 95dc102 + cba0345 commit 86bbd4cCopy full SHA for 86bbd4c
plugins/line-highlight/prism-line-highlight.js
@@ -19,7 +19,7 @@ function highlightLines(pre, lines, classes) {
19
var ranges = lines.replace(/\s+/g, '').split(','),
20
offset = +pre.getAttribute('data-line-offset') || 0;
21
22
- var lineHeight = parseFloat(getComputedStyle(pre).lineHeight);
+ var lineHeight = parseInt(getComputedStyle(pre).lineHeight);
23
24
for (var i=0, range; range = ranges[i++];) {
25
range = range.split('-');
0 commit comments