diff options
Diffstat (limited to 'lib/constants')
-rw-r--r-- | lib/constants/defaultBlocks.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/constants/defaultBlocks.js b/lib/constants/defaultBlocks.js index ed19115..74d1f1f 100644 --- a/lib/constants/defaultBlocks.js +++ b/lib/constants/defaultBlocks.js @@ -1,15 +1,15 @@ var Immutable = require('immutable'); var TemplateBlock = require('../models/templateBlock'); -module.exports = Immutable.List([ - TemplateBlock({ +module.exports = Immutable.Map({ + html: TemplateBlock({ name: 'html', process: function(blk) { return blk; } }), - TemplateBlock({ + code: TemplateBlock({ name: 'code', process: function(blk) { return { @@ -19,7 +19,7 @@ module.exports = Immutable.List([ } }), - TemplateBlock({ + markdown: TemplateBlock({ name: 'markdown', process: function(blk) { return this.book.renderInline('markdown', blk.body) @@ -29,7 +29,7 @@ module.exports = Immutable.List([ } }), - TemplateBlock({ + asciidoc: TemplateBlock({ name: 'asciidoc', process: function(blk) { return this.book.renderInline('asciidoc', blk.body) @@ -39,7 +39,7 @@ module.exports = Immutable.List([ } }), - TemplateBlock({ + markup: TemplateBlock({ name: 'markup', process: function(blk) { return this.book.renderInline(this.ctx.file.type, blk.body) @@ -48,4 +48,4 @@ module.exports = Immutable.List([ }); } }) -]); +}); |