feat: code colorize option support

pull/166/head
NGPixel 8 years ago committed by Nicolas Giard
parent 168e2e875d
commit 8cf3f6f066

@ -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 '<pre class="hljs"><code>' + hljs.highlight(lang, str, true).value + '</code></pre>'
} catch (err) {

Loading…
Cancel
Save