Skip to content
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

Handle highlight.js deprecation #882

Closed
nwhittaker opened this issue Jun 14, 2021 · 0 comments · Fixed by #891
Closed

Handle highlight.js deprecation #882

nwhittaker opened this issue Jun 14, 2021 · 0 comments · Fixed by #891
Labels

Comments

@nwhittaker
Copy link

Deprecated as of 10.7.0. highlight(lang, code, ...args) has been deprecated.
Deprecated as of 10.7.0. Please use highlight(code, options) instead.
highlightjs/highlight.js#2277

Seeing the above deprecation warning when running ember build in an app that depends on ember-cli-addon-docs.

I suspect it stems from this line:

return hljs.getLanguage(lang) ? hljs.highlight(lang, code).value : code;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants