highlight.js
11.12.0 · 12 Aug 2026BSD-3-Clause56.9M / weekRepositoryHomepagenpmAtom feed
10.7.3 is the newest release of 10.x.
In short
3 deprecated2 changed
- Deprecated
htmlbarsgrammar is now deprecated. Usehandlebarsinstead. (#2344) [Nils Knappmeier] - Deprecated
lexemesis now deprecated in favor ofkeywords.$patternkey (#2519) [Josh Goebel] - Deprecated
endSameAsBeginis now deprecated. (#2261) [Josh Goebel]
Security
2 advisories affect 10.1.0; 10.4.1 fixes them
- ModerateReDOS vulnerabities: multiple grammarsGHSA-7wwv-vh3v-89cq · 4 Dec 2020Fixed in 10.4.1
- ModeratePrototype Pollution in highlight.jsGHSA-vfrc-7r7c-w9mx · 24 Nov 2020Fixed in 10.1.2
Release note
Just your typical minor release. Plenty of fixes and enhancements, few new themes.
Some deprecations language maintainers might want to pay attention to:
- Deprecated
htmlbarsgrammar is now deprecated. Usehandlebarsinstead. (#2344) [Nils Knappmeier] When using
highlightBlockresult.redeprecated. Useresult.relevanceinstead. (#2552) [Josh Goebel]Ditto for
result.second_best.re=>result.second_best.relevance- Deprecated
lexemesis now deprecated in favor ofkeywords.$patternkey (#2519) [Josh Goebel] - Deprecated
endSameAsBeginis now deprecated. (#2261) [Josh Goebel]
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.