highlight.js v11.3.0 Release Notes

  • πŸ— 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 (#3308)
    • πŸ›  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