diff --git a/lib/plugins/tag/code.js b/lib/plugins/tag/code.js index d668a3cb7d..5301ba6873 100644 --- a/lib/plugins/tag/code.js +++ b/lib/plugins/tag/code.js @@ -150,7 +150,7 @@ module.exports = ctx => function codeTag(args, content) { mark, tab: hljsCfg.tab_replace, autoDetect: hljsCfg.auto_detect, - wrap: typeof wrap === 'undefined' ? wrap : hljsCfg.wrap + wrap: typeof wrap === 'boolean' ? wrap : hljsCfg.wrap }; content = highlight(content, hljsOption);