diff --git a/server/libs/markdown.js b/server/libs/markdown.js index dfadaae2..20a847c1 100644 --- a/server/libs/markdown.js +++ b/server/libs/markdown.js @@ -25,7 +25,7 @@ var mkdown = md({ linkify: true, typography: true, highlight(str, lang) { - if (lang && hljs.getLanguage(lang)) { + if (appconfig.theme.code.colorize && lang && hljs.getLanguage(lang)) { try { return '
' + hljs.highlight(lang, str, true).value + '
' } catch (err) {