Fix highlight.js v11 API compatibility#1568
Merged
chagong merged 3 commits intodependabot/npm_and_yarn/highlight.js-11.11.1from Feb 12, 2026
Merged
Fix highlight.js v11 API compatibility#1568chagong merged 3 commits intodependabot/npm_and_yarn/highlight.js-11.11.1from
chagong merged 3 commits intodependabot/npm_and_yarn/highlight.js-11.11.1from
Conversation
Co-authored-by: chagong <831821+chagong@users.noreply.github.com>
Co-authored-by: chagong <831821+chagong@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Bump highlight.js from 10.5.0 to 11.11.1
Fix highlight.js v11 API compatibility
Feb 12, 2026
28ae9c6
into
dependabot/npm_and_yarn/highlight.js-11.11.1
1 check passed
wenytang-ms
pushed a commit
that referenced
this pull request
Feb 12, 2026
* build(deps): bump highlight.js from 10.5.0 to 11.11.1 Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 10.5.0 to 11.11.1. - [Release notes](https://github.com/highlightjs/highlight.js/releases) - [Changelog](https://github.com/highlightjs/highlight.js/blob/main/CHANGES.md) - [Commits](highlightjs/highlight.js@10.5.0...11.11.1) --- updated-dependencies: - dependency-name: highlight.js dependency-version: 11.11.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Fix highlight.js v11 API compatibility (#1568) * Initial plan * Initial plan for highlight.js upgrade Co-authored-by: chagong <831821+chagong@users.noreply.github.com> * Fix highlight.js API usage for v11 compatibility Co-authored-by: chagong <831821+chagong@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: chagong <831821+chagong@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: chagong <831821+chagong@users.noreply.github.com> Co-authored-by: Changyong Gong <shawn.gong@hotmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The highlight.js upgrade from 10.5.0 to 11.11.1 introduced breaking API changes that caused build failures.
Changes:
import hljs from "highlight.js"instead ofimport * as hljshljs.highlight(code, {language: "java"})instead ofhljs.highlight("java", code)Affected file:
src/formatter-settings/assets/features/formatterSettings/components/Highlight.tsx✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.