[Extensions UI] Fix `hljs.highlight` call to match new API.

This commit is contained in:
Fabio Manganiello 2023-12-29 13:15:03 +01:00
parent 7e58044804
commit 2575d6cbc5
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 5 additions and 5 deletions

View File

@ -86,15 +86,15 @@ export default {
highlightedInstallCmd() {
return (
this.installCmd ?
hljs.highlight(
this.installCmd ?
this.extension.deps.install_cmd
.map((cmd) => `$ ${cmd}`)
.join('\n')
.trim()
).value :
'# No extra installation steps required',
{language: 'bash'}
.trim() :
'# No extra installation steps required',
{language: 'bash'}
).value
)
},
},