Packages

highlight.js

11.12.0 · 12 Aug 2026BSD-3-Clause56.9M / weekRepositoryHomepagenpmAtom feed

Your version

11.3.0

17 Oct 2021Where it was published

11.12.0 is the newest release of 11.x.

In short

6 new8 fixed15 changed

Release note

Version 11.3.0

Build:

  • Add HighlightJS named export (#3295) [Josh Goebel]

  • Add .default named export to CJS builds (#3333) [Josh Goebel]

Parser:

  • Add first rough performance testing script (#3280) [Austin Schick]

  • Add throwUnescapedHTML to warn against potential HTML injection [Josh Goebel]

  • Expose regex helper functions via hljs injection [Josh Goebel]

    • concat

    • lookahead

    • either

    • optional

    • anyNumberOfTimes

Grammars:

  • fix(ts) some complex types would classify as JSX (#3278) [Josh Goebel]

  • fix(js/ts) less false positives for class X extends Y (#3278) [Josh Goebel]

  • enh(css): add properties from several W3C (Candidate) Recommendations

  • fix(js/ts) Float32Array highlighted incorrectly (#3353) [Josh Goebel]

  • fix(css) single-colon psuedo-elements no longer break highlighting (#3240) [Josh Goebel]

  • fix(scss) single-colon psuedo-elements no longer break highlighting (#3240) [Josh Goebel]

  • enh(fsharp) rewrite most of the grammar, with many improvements [Melvyn Laïly]

  • enh(go) better type highlighting, add error type [Josh Goebel]

  • fix(js/ts) regex inside SUBST is no longer highlighted [Josh Goebel]

  • fix(python) added support for unicode identifiers (#3280) [Austin Schick]

  • enh(css/less/stylus/scss) improve consistency of function dispatch (#3301) [Josh Goebel]

  • enh(css/less/stylus/scss) detect block comments more fully (#3301) [Josh Goebel]

  • fix(cpp) switch is a keyword (#3312) [Josh Goebel]

  • fix(cpp) fix xor_eq keyword highlighting. [Denis Kovalchuk]

  • enh(c,cpp) highlight type modifiers as type (#3316) [Josh Goebel]

  • enh(css/less/stylus/scss) add support for CSS Grid properties [monochromer]

  • enh(java) add support for Java Text Block (#3322) [Teletha]

  • enh(scala) add missing do and then keyword (#3323) [Nicolas Stucki]

  • enh(scala) add missing enum, export and given keywords (#3328) [Nicolas Stucki]

  • enh(scala) remove symbol syntax and fix quoted code syntax (#3324) [Nicolas Stucki]

  • enh(scala) add Scala 3 extension soft keyword (#3326) [Nicolas Stucki]

  • enh(scala) add Scala 3 end soft keyword (#3327) [Nicolas Stucki]

  • enh(scala) add inline soft keyword (#3329) [Nicolas Stucki]

  • enh(scala) add using soft keyword (#3330) [Nicolas Stucki]

  • enh(fsharp) added f# alias (#3337) [Bahnschrift]

  • enh(bash) added gnu core utilities (#3342) [katzeprior]

  • enh(nsis) add new NSIS commands (#3351) [idleberg]

  • fix(nsis) set case_insensitive to true (#3351) [idleberg]

  • fix(css/less/stylus/scss) highlight single-colon psuedo-elements properly (#3240) [zsoltlengyelit]

  • fix(css) add css hex color alpha support (#3360) ierehon1905

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.