Closed yamanoku closed 3 years ago
Does your project have two different HLJS versions in it's dependency tree?
@yamanoku manually reinstall the highlight.js@10.7.2(not latest) and it works.
npm i highlight.js@10.7.2
That's true, but I want to be able to use the latest version. I created this issue because I thought I could use this plugin with the latest version of highlight.js.
Right now it's not possible to have two different versions in your dependency tree. Closing this as a dup of #1.
it should be
const language = toRef(props, "language")
I have specified
highlightjs/vue-plugin
from the one created in the Vue-cli template. https://codesandbox.io/s/bold-glitter-fl0e6?file=/src/main.jsHowever, even though I have specified the corresponding language in
registerLanguage
as per the README, the style is not reflected.https://fl0e6.csb.app/
highlightjs/vue-plugin version: latest