[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

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
)
},
},