File tree 3 files changed +6
-6
lines changed 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 46
46
"github-slugger" : " 1.2.0" ,
47
47
"glob" : " ^7.1.2" ,
48
48
"globals-docs" : " ^2.4.0" ,
49
- "highlight.js" : " ^10.5.0 " ,
49
+ "highlight.js" : " ^10.7.2 " ,
50
50
"ini" : " ^1.3.5" ,
51
51
"js-yaml" : " ^3.10.0" ,
52
52
"lodash" : " ^4.17.10" ,
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ module.exports = function (comments, config) {
80
80
if ( config . hljs && config . hljs . highlightAuto ) {
81
81
return hljs . highlightAuto ( example ) . value ;
82
82
}
83
- return hljs . highlight ( 'js' , example ) . value ;
83
+ return hljs . highlight ( example , { language : 'js' } ) . value ;
84
84
}
85
85
}
86
86
} ;
Original file line number Diff line number Diff line change @@ -3730,10 +3730,10 @@ he@^1.1.0:
3730
3730
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
3731
3731
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
3732
3732
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 ==
3737
3737
3738
3738
hosted-git-info@^2.1.4 :
3739
3739
version "2.8.8"
You can’t perform that action at this time.
0 commit comments