FIX: updates highlightjs to latest version to avoid a freeze (#10578)

FIX: updates highlightjs to latest version to avoid a freeze (#10578)

Example repro of the freeze:

```css
[
diff --git a/lib/tasks/javascript.rake b/lib/tasks/javascript.rake
index c869b9b..ad5362c 100644
--- a/lib/tasks/javascript.rake
+++ b/lib/tasks/javascript.rake
@@ -188,13 +188,11 @@ task 'javascript:update' do
       system("cd node_modules/highlight.js && yarn install")
 
       puts "Build Highlight.js"
-      system("cd node_modules/highlight.js && node tools/build.js -t cdn none")
+      system("cd node_modules/highlight.js && node tools/build.js -t cdn")
 
       puts "Cleanup unused styles folder"
       system("rm -rf node_modules/highlight.js/build/styles")
 
-      langs_dir = 'vendor/assets/javascripts/highlightjs/languages/*.min.js'
-
       # We don't need every language for tests
       langs = ['javascript', 'sql', 'ruby']
       test_bundle_dest = 'vendor/assets/javascripts/highlightjs/highlight-test-bundle.min.js'
diff --git a/package.json b/package.json
index 32f2a71..bc4f823 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
     "eslint-plugin-lodash": "^6.0.0",
     "favcount": "https://github.com/chrishunt/favcount",
     "handlebars": "^4.7.0",
-    "highlight.js": "https://github.com/highlightjs/highlight.js#d72f0817aaab8187711fca7c608f5272ea5147f6",
+    "highlight.js": "https://github.com/highlightjs/highlight.js",
     "intersection-observer": "^0.5.1",
     "jquery": "3.5.0",
     "jquery-color": "3.0.0-alpha.1",
diff --git a/vendor/assets/javascripts/highlightjs/highlight.min.js b/vendor/assets/javascripts/highlightjs/highlight.min.js
index bc0f11c..cd99257 100644
--- a/vendor/assets/javascripts/highlightjs/highlight.min.js
+++ b/vendor/assets/javascripts/highlightjs/highlight.min.js
@@ -1,2 +1,6 @@
-/*! highlight.js v9.18.1 | BSD3 License | git.io/hljslicense */

[... diff too long, it was truncated ...]

GitHub sha: 02f06378

1 Like

This commit appears in #10578 which was approved by eviltrout and pmusaraj. It was merged by jjaffeux.