[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() { highlightedInstallCmd() {
return ( return (
this.installCmd ?
hljs.highlight( hljs.highlight(
this.installCmd ?
this.extension.deps.install_cmd this.extension.deps.install_cmd
.map((cmd) => `$ ${cmd}`) .map((cmd) => `$ ${cmd}`)
.join('\n') .join('\n')
.trim() .trim() :
).value :
'# No extra installation steps required', '# No extra installation steps required',
{language: 'bash'} {language: 'bash'}
).value
) )
}, },
}, },