Skip to content

Conversation

cyrilf
Copy link

@cyrilf cyrilf commented Jan 13, 2024

🐛 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:

Copy link

vercel bot commented Jan 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
simple-code-editor ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 13, 2024 4:20pm

@MiguelAleixo
Copy link

So nice @cyrilf, perfect pull request and documentation...
you helped me solve a big problem! Congratulations!!

@arnonrdp
Copy link

arnonrdp commented Feb 4, 2024

@justcaliturner, please merge it.

@griffin-ezbot
Copy link

@justcaliturner – please merge this

@pkkid
Copy link

pkkid commented Jul 19, 2024

Poking again to hopefully get this merged; We're going on 6 months now. I'm currently able to get by installing "highlight.js": "^11.8.0",, but that might not last long as dependencies update.

@stokedout
Copy link

@justcaliturner please merge :D

@arnonrdp
Copy link

arnonrdp commented Oct 3, 2024

@TheRockettek @nickfrosty
Do you guys have permission to merge it?

@sanbei101
Copy link

@justcaliturner – please merge this

@cookiejest
Copy link

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants