wcoder / highlightjs-line-numbers.js

Line numbering plugin for Highlight.js
https://wcoder.github.io/highlightjs-line-numbers.js/
MIT License
541 stars 125 forks source link

Bad format show style #59

Closed truefriend-cz closed 4 years ago

truefriend-cz commented 5 years ago

Problem 1: Code text isnt on one line. (with options "singleLine: true" too). Missing effect as "white-space: pre;".

Problem 2: And problem geting original style from highlight.min.js (font size and font-family).

Version 2.6.0

Do you can fixed, please?

Edit: Problem 1 has been fixed after add CSS this:

.hljs-ln .hljs-ln-line {
     white-space: pre;
}
wcoder commented 5 years ago

Hi @truefriend-cz thanks for the feedback!

Could you provide more info (used snippet or screenshot) about your problems?

wcoder commented 4 years ago

I’m closing this issue because it has been inactive for a few months. This probably means that it is not reproducible or it has been fixed in a newer version.

Please reopen if you still encounter this issue with the latest stable version. You can also contribute directly by providing a patch. :)

Thank you!