Skip to content

Commit

Permalink
Merge pull request #4391 from curbengh/tag-code-wrap
Browse files Browse the repository at this point in the history
fix(tag-code): parse 'wrap' option
  • Loading branch information
curbengh committed Jun 30, 2020
2 parents 3363a8c + 3b01052 commit f5eb2df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/tag/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f5eb2df

Please sign in to comment.