diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-24 16:53:46 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-24 16:53:46 +0100 |
commit | 78e11bc6be6d114c89e85ee5ba46448b7cdf7849 (patch) | |
tree | 0211e6541adf4a35b6fe0920d92a82d7fd8de005 /lib/page/html.js | |
parent | 40cc20e06e64a52ded4bd36ae4023000c9df2855 (diff) | |
download | gitbook-78e11bc6be6d114c89e85ee5ba46448b7cdf7849.zip gitbook-78e11bc6be6d114c89e85ee5ba46448b7cdf7849.tar.gz gitbook-78e11bc6be6d114c89e85ee5ba46448b7cdf7849.tar.bz2 |
By default escape html in code blocks
Diffstat (limited to 'lib/page/html.js')
-rw-r--r-- | lib/page/html.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/page/html.js b/lib/page/html.js index bd9ec91..016d75e 100644 --- a/lib/page/html.js +++ b/lib/page/html.js @@ -110,7 +110,7 @@ HTMLPipeline.prototype.transformCodeBlocks = function() { return Promise(this.opts.onCodeBlock(source, lang)) .then(function(blk) { - if (blk.html === false) { + if (blk.html !== true) { $code.text(blk.body); } else { $code.html(blk.body); |