Skip to content

Handle highlight.js deprecation #882

Closed
@nwhittaker

Description

@nwhittaker

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions