-
Notifications
You must be signed in to change notification settings - Fork 35
Fix the alreadyHighlighted issue #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
So nice @cyrilf, perfect pull request and documentation... |
@justcaliturner, please merge it. |
@justcaliturner – please merge this |
Poking again to hopefully get this merged; We're going on 6 months now. I'm currently able to get by installing |
@justcaliturner please merge :D |
@TheRockettek @nickfrosty |
@justcaliturner – please merge this |
? |
🐛 Bug
Since the
v11.9.0
of highlight.js there is no highlighting on my code.The console show me this message:
Element previously highlighted. To highlight again, first unset 'dataset.highlighted'.
I've seen that even though it's a minor update, some breaking changes were introduced (as you can read on the release note).
You can see the commit responsible for the issue here.
The first comment on this commit actually explains how to fix this breaking change.
This is what I did on your code.
(please note, that I've not tested this fix).
#️⃣ Versions:
I'm using "simple-code-editor": "2.0.9" (which use "highlight.js": "11.9.0").
🏅 Bonus
This will also close: