Skip to content

Commit

Permalink
chore: upgrade highlight.js
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Sep 10, 2021
1 parent 2db672e commit da1698b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/varlet-markdown-loader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function highlight(str, lang, style) {
'<link rel="stylesheet" href="' +
style +
'"/>' +
hljs.highlight(lang, str, true).value +
hljs.highlight(str, { language: lang, ignoreIllegals: true }).value +
'</code></pre>'
)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/varlet-markdown-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"url": "https://github.com/haoziqaq/varlet/issues"
},
"dependencies": {
"highlight.js": "10.3.2",
"highlight.js": "^10.7.2",
"loader-utils": "^2.0.0",
"markdown-it": "^12.0.2"
},
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7545,10 +7545,10 @@ he@^1.2.0:
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==

highlight.js@10.3.2:
version "10.3.2"
resolved "https://registry.npmjs.org/highlight.js/-/highlight.js-10.3.2.tgz#135fd3619a00c3cbb8b4cd6dbc78d56bfcbc46f1"
integrity sha512-3jRT7OUYsVsKvukNKZCtnvRcFyCJqSEIuIMsEybAXRiFSwpt65qjPd/Pr+UOdYt7WJlt+lj3+ypUsHiySBp/Jw==
highlight.js@^10.7.2:
version "10.7.3"
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-10.7.3.tgz#697272e3991356e40c3cac566a74eef681756531"
integrity sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==

homedir-polyfill@^1.0.1:
version "1.0.3"
Expand Down

0 comments on commit da1698b

Please sign in to comment.