summaryrefslogtreecommitdiffstats
path: root/lib/page
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-24 17:02:34 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-24 17:02:34 +0100
commit1fa952b9301dd48bc3d065f2a6e6ea7db3d9dd11 (patch)
treecc47a8a4472accc20fad7ccfed7780d3d743370e /lib/page
parent78e11bc6be6d114c89e85ee5ba46448b7cdf7849 (diff)
downloadgitbook-1fa952b9301dd48bc3d065f2a6e6ea7db3d9dd11.zip
gitbook-1fa952b9301dd48bc3d065f2a6e6ea7db3d9dd11.tar.gz
gitbook-1fa952b9301dd48bc3d065f2a6e6ea7db3d9dd11.tar.bz2
Fix inclusion of block using a simple function
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 016d75e..bd9ec91 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 !== true) {
+ if (blk.html === false) {
$code.text(blk.body);
} else {
$code.html(blk.body);