You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One can force the padding to work in .hljs-ln-numbers and .hljs-ln-coding by appending !important to the padding style, but that seems somewhat hackish.
Expected: Padding specification in the user-supplied .hljs-ln-* classes should be accepted.
The text was updated successfully, but these errors were encountered:
In Usage, the examples give
padding-right
andpadding-left
in classes .hljs-ln-numbers and .hljs-ln-coding, respectively.These styles appear to be ignored, because of explicit padding:0 in the DOM:
<style type="text/css">.hljs-ln{border-collapse:collapse}.hljs-ln td{padding:0}.hljs-ln-n:before{content:attr(data-line-number)}</style>
The above is added by this code:
highlightjs-line-numbers.js/src/highlightjs-line-numbers.js
Line 136 in 98ca4f2
One can force the padding to work in .hljs-ln-numbers and .hljs-ln-coding by appending
!important
to the padding style, but that seems somewhat hackish.Expected: Padding specification in the user-supplied .hljs-ln-* classes should be accepted.
The text was updated successfully, but these errors were encountered: