mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 22:51:06 +08:00
FIX: empty highlighted_languages resulted in ["", "auto", "nohighlight"] (#10772)
This commit is contained in:
@ -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"]);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user