diff --git a/package-lock.json b/package-lock.json index fdfd9daf68..83d2b693a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "core-js": "^3.30.2", "electron-builder": "^23.6.0", "github-markdown-css": "^5.2.0", + "highlight.js": "^11.8.0", "markdown-it-highlightjs": "^4.0.1", "material-design-icons": "^3.0.1", "update-electron-app": "^2.0.1", @@ -6907,6 +6908,15 @@ "node": ">=8" } }, + "node_modules/cli-highlight/node_modules/highlight.js": { + "version": "10.7.3", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz", + "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==", + "dev": true, + "engines": { + "node": "*" + } + }, "node_modules/cli-highlight/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz", @@ -11192,12 +11202,11 @@ } }, "node_modules/highlight.js": { - "version": "10.7.3", - "resolved": "https://registry.npmmirror.com/highlight.js/-/highlight.js-10.7.3.tgz", - "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==", - "dev": true, + "version": "11.8.0", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.8.0.tgz", + "integrity": "sha512-MedQhoqVdr0U6SSnWPzfiadUcDHfN/Wzq25AkXiQv9oiOO/sG0S7XkvpFIqWBl9Yq1UYyYOOVORs5UW2XlPyzg==", "engines": { - "node": "*" + "node": ">=12.0.0" } }, "node_modules/hmac-drbg": { @@ -13152,14 +13161,6 @@ "highlight.js": "^11.5.1" } }, - "node_modules/markdown-it-highlightjs/node_modules/highlight.js": { - "version": "11.8.0", - "resolved": "https://registry.npmmirror.com/highlight.js/-/highlight.js-11.8.0.tgz", - "integrity": "sha512-MedQhoqVdr0U6SSnWPzfiadUcDHfN/Wzq25AkXiQv9oiOO/sG0S7XkvpFIqWBl9Yq1UYyYOOVORs5UW2XlPyzg==", - "engines": { - "node": ">=12.0.0" - } - }, "node_modules/markdown-it-ins": { "version": "3.0.1", "resolved": "https://registry.npmmirror.com/markdown-it-ins/-/markdown-it-ins-3.0.1.tgz", @@ -20163,14 +20164,6 @@ "markdown-it-toc-done-right": "^4.2.0" } }, - "node_modules/vue3-markdown-it/node_modules/highlight.js": { - "version": "11.8.0", - "resolved": "https://registry.npmmirror.com/highlight.js/-/highlight.js-11.8.0.tgz", - "integrity": "sha512-MedQhoqVdr0U6SSnWPzfiadUcDHfN/Wzq25AkXiQv9oiOO/sG0S7XkvpFIqWBl9Yq1UYyYOOVORs5UW2XlPyzg==", - "engines": { - "node": ">=12.0.0" - } - }, "node_modules/vue3-markdown-it/node_modules/markdown-it-highlightjs": { "version": "3.6.0", "resolved": "https://registry.npmmirror.com/markdown-it-highlightjs/-/markdown-it-highlightjs-3.6.0.tgz", diff --git a/package.json b/package.json index 7c1395d67f..057960298c 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "core-js": "^3.30.2", "electron-builder": "^23.6.0", "github-markdown-css": "^5.2.0", + "highlight.js": "^11.8.0", "markdown-it-highlightjs": "^4.0.1", "material-design-icons": "^3.0.1", "update-electron-app": "^2.0.1", diff --git a/src/App.vue b/src/App.vue index b6e58b5e54..1d27b98766 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,22 +2,36 @@