summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-20 17:35:10 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-20 17:35:10 +0100
commitfb921788b91b4f78c3ec932727a92c5ecda00144 (patch)
treeb6f00c746dbdfaca6594eb0109b1363c92bb58ec
parent847c6b9aa2a84f1a7508341a6e64230c8a3daa1a (diff)
downloadgitbook-fb921788b91b4f78c3ec932727a92c5ecda00144.zip
gitbook-fb921788b91b4f78c3ec932727a92c5ecda00144.tar.gz
gitbook-fb921788b91b4f78c3ec932727a92c5ecda00144.tar.bz2
Fix page.toHTML by using .content directly
-rw-r--r--lib/page/index.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/page/index.js b/lib/page/index.js
index 2bdc951..c4d2721 100644
--- a/lib/page/index.js
+++ b/lib/page/index.js
@@ -152,8 +152,7 @@ Page.prototype.toHTML = function(output) {
.then(function() {
return that.parser.page(that.content)
.then(function(out) {
- var content = _.pluck(out.sections, 'content').join('\n');
- that.update(content);
+ that.update(out.content);
});
})