diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-05-02 09:29:49 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-05-02 09:29:49 +0200 |
commit | 63839bb0a7dd429b50b99109511737efed257e36 (patch) | |
tree | def31d11ef1a50510b86d32e7a8f819c31db6af4 | |
parent | 793fada0fbb27db69fc163cbda33a4c0dc8cf1e2 (diff) | |
download | gitbook-63839bb0a7dd429b50b99109511737efed257e36.zip gitbook-63839bb0a7dd429b50b99109511737efed257e36.tar.gz gitbook-63839bb0a7dd429b50b99109511737efed257e36.tar.bz2 |
Fix apply of async html modifiers
-rw-r--r-- | lib/output/modifiers/modifyHTML.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output/modifiers/modifyHTML.js b/lib/output/modifiers/modifyHTML.js index 0fcf994..cd3d6e5 100644 --- a/lib/output/modifiers/modifyHTML.js +++ b/lib/output/modifiers/modifyHTML.js @@ -14,7 +14,7 @@ function modifyHTML(page, operations) { var $ = cheerio.load(html); return Promise.forEach(operations, function(op) { - op($); + return op($); }) .then(function() { var resultHTML = $.html(); |