diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-27 21:39:41 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-27 21:39:41 +0100 |
commit | cf12d090928907bb82c9f1796b642cbef9b42640 (patch) | |
tree | b229ff036508d52cbc8c9b50614c99f8ee8d0c65 /test/plugins/blocks | |
parent | 8e18adbe4cd64b8d6baf63627cba4109774fc7e5 (diff) | |
download | gitbook-cf12d090928907bb82c9f1796b642cbef9b42640.zip gitbook-cf12d090928907bb82c9f1796b642cbef9b42640.tar.gz gitbook-cf12d090928907bb82c9f1796b642cbef9b42640.tar.bz2 |
Complete parsing of blocks from plugin extensions
Diffstat (limited to 'test/plugins/blocks')
-rw-r--r-- | test/plugins/blocks/index.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/plugins/blocks/index.js b/test/plugins/blocks/index.js index 0f5fb87..f2c588a 100644 --- a/test/plugins/blocks/index.js +++ b/test/plugins/blocks/index.js @@ -1,22 +1,22 @@ module.exports = { blocks: { "test": { - process: function(args) { - return "test"+args.body+"test"; + process: function(blk) { + return "test"+blk.body+"test"; } }, "test2": { end: "endtest2end", - process: function(args) { - return "test2"+args.body+"test2"; + process: function(blk) { + return "test2"+blk.body+"test2"; } }, "test3join": { blocks: [ "also" ], - process: function(args) { - return "test"; + process: function(blk) { + return [blk.body, blk.blocks[0].body].join(blk.kwargs.separator); } } } |