From 8cf3f6f066d55c462b2ec239891bcae1656b5cf9 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sat, 1 Jul 2017 22:37:43 -0400 Subject: [PATCH] feat: code colorize option support --- server/libs/markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {