summaryrefslogtreecommitdiffstats
path: root/lib/book.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/book.js')
-rw-r--r--lib/book.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/book.js b/lib/book.js
index 38448dd..aee425c 100644
--- a/lib/book.js
+++ b/lib/book.js
@@ -507,13 +507,20 @@ Book.prototype.parsePage = function(filename, options) {
return interpolate(options.interpolateTemplate);
})
+ // Prepare page markup
+ .then(function() {
+ return filetype.page.prepare(page.content)
+ .then(function(content) {
+ page.content = content;
+ });
+ })
+
// Generate template
.then(function() {
return that.template.renderPage(page);
})
// Prepare and Parse markup
- .then(filetype.page.prepare)
.then(function(content) {
page.content = content;