Skip to content

Commit

Permalink
deps: Highlight.js deprecations documentationjs#1365 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Shchekota committed Apr 6, 2021
1 parent c6c64ea commit 3a69b28
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -46,7 +46,7 @@
"github-slugger": "1.2.0",
"glob": "^7.1.2",
"globals-docs": "^2.4.0",
"highlight.js": "^10.5.0",
"highlight.js": "^10.7.2",
"ini": "^1.3.5",
"js-yaml": "^3.10.0",
"lodash": "^4.17.10",
Expand Down
2 changes: 1 addition & 1 deletion src/default_theme/index.js
Expand Up @@ -80,7 +80,7 @@ module.exports = function (comments, config) {
if (config.hljs && config.hljs.highlightAuto) {
return hljs.highlightAuto(example).value;
}
return hljs.highlight('js', example).value;
return hljs.highlight(example, { language: 'js' }).value;
}
}
};
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -3730,10 +3730,10 @@ he@^1.1.0:
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==

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

hosted-git-info@^2.1.4:
version "2.8.8"
Expand Down

0 comments on commit 3a69b28

Please sign in to comment.