diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-24 17:02:34 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-24 17:02:34 +0100 |
commit | 1fa952b9301dd48bc3d065f2a6e6ea7db3d9dd11 (patch) | |
tree | cc47a8a4472accc20fad7ccfed7780d3d743370e /lib/template/blocks.js | |
parent | 78e11bc6be6d114c89e85ee5ba46448b7cdf7849 (diff) | |
download | gitbook-1fa952b9301dd48bc3d065f2a6e6ea7db3d9dd11.zip gitbook-1fa952b9301dd48bc3d065f2a6e6ea7db3d9dd11.tar.gz gitbook-1fa952b9301dd48bc3d065f2a6e6ea7db3d9dd11.tar.bz2 |
Fix inclusion of block using a simple function
Diffstat (limited to 'lib/template/blocks.js')
-rw-r--r-- | lib/template/blocks.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/template/blocks.js b/lib/template/blocks.js index 0e04643..a079cde 100644 --- a/lib/template/blocks.js +++ b/lib/template/blocks.js @@ -7,5 +7,10 @@ module.exports = { // Highlight a code block // This block can be replaced by plugins - code: _.identity + code: function(blk) { + return { + html: false, + body: blk.body + }; + } }; |