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

Something wrong with SingleLine option #69

Closed BigCoke233 closed 4 years ago

BigCoke233 commented 4 years ago

Describe the bug Well, if the value of SingleLine option is true and there're more than one code blocks on the same page, there'll be lots of 1 number in the front of each block and every line will be in the line that is numbered with these 1.

To Reproduce Steps to reproduce the behavior:

  1. Set the SingleLine option to true
  2. Create a page with more than one code blocks.
  3. See the error

Expected behavior There's only one number in each line in a block as usual.

Screenshots

image host image host image host

Desktop (please complete the following information):

Smartphone (please complete the following information):


Here's an error page - https://guhub.cn/p/easy-batch.html

BigCoke233 commented 4 years ago

Sorry, I found the reason. It's not a bug.