tools: upgrade highlight.js to version 11.0.1

Refs: https://github.com/highlightjs/highlight.js/blob/main/VERSION_11_UPGRADE.md

PR-URL: https://github.com/nodejs/node/pull/39032
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Antoine du Hamel 2021-06-14 17:48:40 +02:00 committed by Node.js GitHub Bot
parent 1317252dfe
commit fdb097c4f4
3 changed files with 15 additions and 13 deletions

View File

@ -8,7 +8,8 @@
}
.hljs-attribute,
.hljs-keyword {
.hljs-keyword,
.hljs-type {
color: #338;
}
@ -35,9 +36,10 @@
color: var(--green4);
}
.dark-mode .hljs-keyword,
.dark-mode .hljs-attribute,
.dark-mode .hljs-doctag {
.dark-mode .hljs-doctag,
.dark-mode .hljs-keyword,
.dark-mode .hljs-type {
color: #66d9ef;
}

View File

@ -11,7 +11,7 @@
"node-doc-generator": "generate.js"
},
"devDependencies": {
"highlight.js": "10.7.3",
"highlight.js": "11.0.1",
"js-yaml": "4.1.0",
"rehype-raw": "5.1.0",
"rehype-stringify": "8.0.0",
@ -25,7 +25,7 @@
"unist-util-visit": "3.1.0"
},
"engines": {
"node": ">=12.10.0"
"node": ">=14.8.0"
}
},
"node_modules/@types/hast": {
@ -356,12 +356,12 @@
}
},
"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==",
"version": "11.0.1",
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.0.1.tgz",
"integrity": "sha512-EqYpWyTF2s8nMfttfBA2yLKPNoZCO33pLS4MnbXQ4hECf1TKujCt1Kq7QAdrio7roL4+CqsfjqwYj4tYgq0pJQ==",
"dev": true,
"engines": {
"node": "*"
"node": ">=12.0.0"
}
},
"node_modules/html-void-elements": {
@ -1513,9 +1513,9 @@
}
},
"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==",
"version": "11.0.1",
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.0.1.tgz",
"integrity": "sha512-EqYpWyTF2s8nMfttfBA2yLKPNoZCO33pLS4MnbXQ4hECf1TKujCt1Kq7QAdrio7roL4+CqsfjqwYj4tYgq0pJQ==",
"dev": true
},
"html-void-elements": {

View File

@ -7,7 +7,7 @@
"node": ">=14.8.0"
},
"devDependencies": {
"highlight.js": "10.7.3",
"highlight.js": "11.0.1",
"js-yaml": "4.1.0",
"rehype-raw": "5.1.0",
"rehype-stringify": "8.0.0",