summaryrefslogtreecommitdiffstats
path: root/lib/backbone
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-11 13:58:26 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-11 13:58:26 +0100
commitf47208528b28dad69391aa2e4eaccb32d11ba69d (patch)
treeb509fc02f4a37b360e649a501dac4f4b21bf9f2c /lib/backbone
parent87d90a65ac6d1ceb5c1ce255d71713cff7dc9d17 (diff)
downloadgitbook-f47208528b28dad69391aa2e4eaccb32d11ba69d.zip
gitbook-f47208528b28dad69391aa2e4eaccb32d11ba69d.tar.gz
gitbook-f47208528b28dad69391aa2e4eaccb32d11ba69d.tar.bz2
Normalize fs access
Diffstat (limited to 'lib/backbone')
-rw-r--r--lib/backbone/page.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/backbone/page.js b/lib/backbone/page.js
index c75c434..94812d9 100644
--- a/lib/backbone/page.js
+++ b/lib/backbone/page.js
@@ -89,9 +89,10 @@ Page.prototype.parse = function() {
.then(that.update);
})
- // Render markup
+ // Render markup using the parser
.then(function() {
- return that.parser.page(that.content);
+ return that.parser.page(that.content)
+ .then(that.update);
});
};