summaryrefslogtreecommitdiffstats
path: root/lib/book.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-03-06 16:54:46 +0100
committerSamy Pessé <samypesse@gmail.com>2015-03-06 16:54:46 +0100
commit8bfba604b3ae1a51012499d726ea99c6f256035d (patch)
treeb12172b1aa184c15020dbad39cd2be26ce21dd62 /lib/book.js
parent2a5fa1c5fb62e48a73e64204b997486a3ca69ebd (diff)
downloadgitbook-8bfba604b3ae1a51012499d726ea99c6f256035d.zip
gitbook-8bfba604b3ae1a51012499d726ea99c6f256035d.tar.gz
gitbook-8bfba604b3ae1a51012499d726ea99c6f256035d.tar.bz2
Update gitbook-parsers@0.5.0 and include page.prepare
Fix #625: escape code blocks in markdown
Diffstat (limited to 'lib/book.js')
-rw-r--r--lib/book.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/book.js b/lib/book.js
index 3912977..38448dd 100644
--- a/lib/book.js
+++ b/lib/book.js
@@ -512,7 +512,8 @@ Book.prototype.parsePage = function(filename, options) {
return that.template.renderPage(page);
})
- // Parse markup
+ // Prepare and Parse markup
+ .then(filetype.page.prepare)
.then(function(content) {
page.content = content;