summaryrefslogtreecommitdiffstats
path: root/lib/page
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-24 16:53:46 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-24 16:53:46 +0100
commit78e11bc6be6d114c89e85ee5ba46448b7cdf7849 (patch)
tree0211e6541adf4a35b6fe0920d92a82d7fd8de005 /lib/page
parent40cc20e06e64a52ded4bd36ae4023000c9df2855 (diff)
downloadgitbook-78e11bc6be6d114c89e85ee5ba46448b7cdf7849.zip
gitbook-78e11bc6be6d114c89e85ee5ba46448b7cdf7849.tar.gz
gitbook-78e11bc6be6d114c89e85ee5ba46448b7cdf7849.tar.bz2
By default escape html in code blocks
Diffstat (limited to 'lib/page')
-rw-r--r--lib/page/html.js2
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);