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

It seems to destroy some of the structure.

nasyxx opened this issue · comments

commented

Before:
screen shot 2018-02-06 at 8 07 02 pm
screen shot 2018-02-06 at 8 07 25 pm
After:
screen shot 2018-02-06 at 8 08 32 pm
screen shot 2018-02-06 at 8 08 40 pm

Is there any way to avoid this happening?

Hi @nasyxx, thanks for the feedback.

This is a known issue in the latest version of the plugin.

I tried to fix it in dev branch, please try it, should help you:

https://github.com/wcoder/highlightjs-line-numbers.js/blob/bugfixes/multiline-nodes/src/highlightjs-line-numbers.js