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
I use the :table styling for line numbers. But when there's only a single line of code the line number column only contains a blank <pre></pre>, where I'd expect to be a 1.
The text was updated successfully, but these errors were encountered:
How about an option to hide line numbers if there are less than x lines? (default 0, don't hide them). This would be more flexible. Reference:
Well, for line numbering my blog is a real use case :) In my blog most of the code blocks are about 10/15 lines, so line numbering is unnecessary, but in the post Extending RedCloth with CodeRay, there's a code snippet of 60 lines, and line numbering is useful only in that case. (Issue #65) - @nicolaracco
I think hiding line numbers should be off by default, but if we do that, this should probably be for 1.1? (a "breaking" change)
I use the
:table
styling for line numbers. But when there's only a single line of code the line number column only contains a blank<pre></pre>
, where I'd expect to be a1
.The text was updated successfully, but these errors were encountered: