wcoder / highlightjs-line-numbers.js

Line numbering plugin for Highlight.js

Home Page:https://wcoder.github.io/highlightjs-line-numbers.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bad format show style

truefriend-cz opened this issue · comments

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;
}

Hi @truefriend-cz thanks for the feedback!

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

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!