From 3b01052af5035d3f3f4affd78c5435c22180910a Mon Sep 17 00:00:00 2001 From: MDLeom <43627182+curbengh@users.noreply.github.com> Date: Tue, 30 Jun 2020 03:41:12 +0100 Subject: [PATCH] fix(tag-code): parse 'wrap' option --- lib/plugins/tag/code.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);