From 938b8f5b3dd81e6afdba2e7ed4e0f31e827108eb Mon Sep 17 00:00:00 2001 From: Alexej Yaroshevich Date: Thu, 12 Mar 2015 11:31:14 +0300 Subject: [PATCH] Blockquote, paragraph: fixup bh templates Fixes #4 Fixes #5 --- common.blocks/blockquote/blockquote.bh.js | 4 ++-- common.blocks/paragraph/paragraph.bh.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common.blocks/blockquote/blockquote.bh.js b/common.blocks/blockquote/blockquote.bh.js index c9e77d8..291b1c1 100644 --- a/common.blocks/blockquote/blockquote.bh.js +++ b/common.blocks/blockquote/blockquote.bh.js @@ -6,7 +6,7 @@ module.exports = function(bh) { ctx.content([ { block : 'paragraph', - mix : { block : ctx.block, elem : 'content' }, + mix : { block : json.block, elem : 'content' }, content : ctx.content() }, json.source && { @@ -14,7 +14,7 @@ module.exports = function(bh) { tag : 'footer', content : json.source } - ]); + ], true); }); }; diff --git a/common.blocks/paragraph/paragraph.bh.js b/common.blocks/paragraph/paragraph.bh.js index 0e28846..2141941 100644 --- a/common.blocks/paragraph/paragraph.bh.js +++ b/common.blocks/paragraph/paragraph.bh.js @@ -10,7 +10,7 @@ module.exports = function(bh) { content : json.mark }, ctx.content() - ]); + ], true); }); };