summaryrefslogtreecommitdiffstats
path: root/lib/constants
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-04-27 16:22:17 +0200
committerSamy Pessé <samypesse@gmail.com>2016-04-27 16:22:17 +0200
commite50422bce588ec5a0b5581bf3963b0995138de4c (patch)
tree5128b5759c2bed3d9cac21fa8de5ccc1b3ead7bb /lib/constants
parent999882e72327e06dd2fd346ca13eccb1c7e8781f (diff)
downloadgitbook-e50422bce588ec5a0b5581bf3963b0995138de4c.zip
gitbook-e50422bce588ec5a0b5581bf3963b0995138de4c.tar.gz
gitbook-e50422bce588ec5a0b5581bf3963b0995138de4c.tar.bz2
Use code TemplateBlock to highlight code
Diffstat (limited to 'lib/constants')
-rw-r--r--lib/constants/defaultBlocks.js14
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([
});
}
})
-]);
+});