highlightjs / vue-plugin

Highlight.js Vue Plugin
BSD 3-Clause "New" or "Revised" License
203 stars 27 forks source link

Bug: Langauge being overwritten #50

Open JeffreyArts opened 2 months ago

JeffreyArts commented 2 months ago

I've seen that this project is no longer maintained, but I wanted to share this experience nonetheless, so other people are aware of this.

When I specify typescript as a proptype it won't use it, but instead will (wrongfully) fall back to other registered plugins. I've made a demo repo where you can see this behavior. It also implements a native highlight solution, bypassing this component entirely.

Since this package is no longer maintained and the work-around is so simple. Maybe it is an idea that this plugin no longer should be recommended on the Readme of highlight.js?


You can clone the repo below to get a minified code-sample of the situation I'm describing. https://github.com/JeffreyArts/demo-bug-vue-highlight-js

joshgoebel commented 2 months ago

Maybe it is an idea that this plugin no longer should be recommended on the Readme of highlight.js?

Makes sense, we'd take a PR for that.