Skip to content

Commit 72f7c25

Browse files
deps: Highlight.js deprecations documentationjs#1365 fixed
1 parent c6c64ea commit 72f7c25

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"github-slugger": "1.2.0",
4747
"glob": "^7.1.2",
4848
"globals-docs": "^2.4.0",
49-
"highlight.js": "^10.5.0",
49+
"highlight.js": "^10.7.2",
5050
"ini": "^1.3.5",
5151
"js-yaml": "^3.10.0",
5252
"lodash": "^4.17.10",

src/default_theme/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module.exports = function (comments, config) {
8080
if (config.hljs && config.hljs.highlightAuto) {
8181
return hljs.highlightAuto(example).value;
8282
}
83-
return hljs.highlight('js', example).value;
83+
return hljs.highlight(example, { language: 'js' }).value;
8484
}
8585
}
8686
};

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3730,10 +3730,10 @@ he@^1.1.0:
37303730
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
37313731
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
37323732

3733-
highlight.js@^10.5.0:
3734-
version "10.5.0"
3735-
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-10.5.0.tgz#3f09fede6a865757378f2d9ebdcbc15ba268f98f"
3736-
integrity sha512-xTmvd9HiIHR6L53TMC7TKolEj65zG1XU+Onr8oi86mYa+nLcIbxTTWkpW7CsEwv/vK7u1zb8alZIMLDqqN6KTw==
3733+
highlight.js@^10.7.2:
3734+
version "10.7.2"
3735+
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-10.7.2.tgz#89319b861edc66c48854ed1e6da21ea89f847360"
3736+
integrity sha512-oFLl873u4usRM9K63j4ME9u3etNF0PLiJhSQ8rdfuL51Wn3zkD6drf9ZW0dOzjnZI22YYG24z30JcmfCZjMgYg==
37373737

37383738
hosted-git-info@^2.1.4:
37393739
version "2.8.8"

0 commit comments

Comments
 (0)