diff --git a/media_source/system/js/highlight.es6.js b/media_source/system/js/highlight.es6.js index 65e6ec77b8e34..3b544e46e3b03 100644 --- a/media_source/system/js/highlight.es6.js +++ b/media_source/system/js/highlight.es6.js @@ -1,6 +1,6 @@ -import Mark from 'mark.js/src/vanilla'; +import Mark from 'advanced-mark.js/src/vanilla'; -// mark.js defaults +// advanced-mark.js defaults const defaultOptions = { exclude: [], separateWordSearch: true, diff --git a/package-lock.json b/package-lock.json index e03de74e675e2..b2c7678392aea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,6 +34,7 @@ "@vue-flow/minimap": "^1.5.4", "@vue-flow/node-resizer": "^1.5.1", "accessibility": "^3.0.17", + "advanced-mark.js": "^3.0.0", "altcha": "^2.3.0", "awesomplete": "^1.1.7", "bootstrap": "^5.3.8", @@ -47,7 +48,6 @@ "joomla-ui-custom-elements": "^0.4.1", "jquery": "^3.7.1", "jquery-migrate": "^3.6.0", - "mark.js": "^8.11.1", "mediaelement": "^7.1.0", "metismenujs": "^1.4.0", "punycode": "^2.3.1", @@ -4268,6 +4268,12 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, + "node_modules/advanced-mark.js": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/advanced-mark.js/-/advanced-mark.js-3.0.0.tgz", + "integrity": "sha512-PAQcvOXosSsdY9G2Tb/kR2vgAgzmLTtpy49t7QYgyEzxVkuwAL1JuKGRvfpwKdb3Ga3hZmFvJ7S6Pj0JVos2nQ==", + "license": "MIT" + }, "node_modules/ajv": { "version": "6.14.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz", @@ -8996,12 +9002,6 @@ "node": ">=6.0.0" } }, - "node_modules/mark.js": { - "version": "8.11.1", - "resolved": "https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz", - "integrity": "sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==", - "license": "MIT" - }, "node_modules/math-intrinsics": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", diff --git a/package.json b/package.json index f9878c64a34df..37d6a313d35c4 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "@vue-flow/minimap": "^1.5.4", "@vue-flow/node-resizer": "^1.5.1", "accessibility": "^3.0.17", + "advanced-mark.js": "^3.0.0", "altcha": "^2.3.0", "awesomplete": "^1.1.7", "bootstrap": "^5.3.8", @@ -70,7 +71,6 @@ "joomla-ui-custom-elements": "^0.4.1", "jquery": "^3.7.1", "jquery-migrate": "^3.6.0", - "mark.js": "^8.11.1", "mediaelement": "^7.1.0", "metismenujs": "^1.4.0", "punycode": "^2.3.1",