We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
env: vue 3.2.11 vue-diff 1.1.3 highlight.js 11.4.0
description:
import VueDiff from 'vue-diff'; import 'vue-diff/dist/index.css'; import groovy from 'highlight.js/lib/languages/groovy'; VueDiff.hljs.registerLanguage('groovy', groovy);
i want to extend language, but i fail, i get an error "Language definition for 'groovy' could not be registered.", because 'hljs.regex' is undefined.
function groovy(hljs) { const regex = hljs.regex; // undefined const IDENT_RE = '[A-Za-z0-9_$]+'; ..... }
the highlight.js of vue-diff's dependencies is "^10.5.0", 'hljs.regex' does not exist in here.
but the highlight.js of my project's dependencies is "^11.4.0", 'hljs.regex' is defiined.
version difference of the highlight.js causes problems.
The text was updated successfully, but these errors were encountered:
refactor: #15 Update highlight.js major version
5c550dd
chore(release): 1.1.4 [skip ci]
bcfb642
### [1.1.4](v1.1.3...v1.1.4) (2022-02-07) ### Refactor * [#15](#15) Update highlight.js major version ([5c550dd](5c550dd))
I patched the dependencies and released version 1.1.4. Please check it out. 😀
Sorry, something went wrong.
it is solved. 😁👏🏻
No branches or pull requests
env:
vue 3.2.11
vue-diff 1.1.3
highlight.js 11.4.0
description:
i want to extend language, but i fail, i get an error "Language definition for 'groovy' could not be registered.", because 'hljs.regex' is undefined.
the highlight.js of vue-diff's dependencies is "^10.5.0", 'hljs.regex' does not exist in here.
but the highlight.js of my project's dependencies is "^11.4.0", 'hljs.regex' is defiined.
version difference of the highlight.js causes problems.
The text was updated successfully, but these errors were encountered: