wcoder/highlightjs-line-numbers.js

It seems to destroy some of the structure.

nasyxx opened this issue · 1 comments

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