FIX: empty highlighted_languages resulted in ["", "auto", "nohighlight"] (#10772)

This commit is contained in:
Joffrey JAFFEUX 2020-09-29 14:34:46 +02:00 committed by GitHub
parent 09381717e8
commit de94506c1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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"]);
});