FIX: empty highlighted_languages resulted in ["", "auto", "nohighlight"] (#10772)
This commit is contained in:
parent
09381717e8
commit
de94506c1e
|
@ -37,6 +37,7 @@ export function setup(helper) {
|
|||
opts.defaultCodeLang = siteSettings.default_code_lang;
|
||||
opts.acceptableCodeClasses = (siteSettings.highlighted_languages || "")
|
||||
.split("|")
|
||||
.filter(Boolean)
|
||||
.concat(["auto", "nohighlight"]);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue