diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-05-02 13:40:14 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-05-02 13:41:07 +0200 |
commit | 99bbcbebfc35cfca348860c2ea93e0a54ba2c25c (patch) | |
tree | 40710a906c1db014bd1663d10efee902130ddc15 | |
parent | 289e4b5dc1e79259fe3b53b75567d3fc0dd655d1 (diff) | |
download | gitbook-99bbcbebfc35cfca348860c2ea93e0a54ba2c25c.zip gitbook-99bbcbebfc35cfca348860c2ea93e0a54ba2c25c.tar.gz gitbook-99bbcbebfc35cfca348860c2ea93e0a54ba2c25c.tar.bz2 |
Fix modifiers for ebook format
-rw-r--r-- | lib/output/modifiers/inlineAssets.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/output/modifiers/inlineAssets.js b/lib/output/modifiers/inlineAssets.js index 9f19fd7..ee932eb 100644 --- a/lib/output/modifiers/inlineAssets.js +++ b/lib/output/modifiers/inlineAssets.js @@ -16,11 +16,11 @@ function inlineAssets(rootFolder, currentFile) { // Resolving images and fetching external images should be // done before svg conversion - .then(resolveImages.bind(null, currentFile)) - .then(fetchRemoteImages.bind(null, rootFolder, currentFile)) + .then(resolveImages.bind(null, currentFile, $)) + .then(fetchRemoteImages.bind(null, rootFolder, currentFile, $)) - .then(svgToImg.bind(null, rootFolder, currentFile)) - .then(svgToPng.bind(null, rootFolder, currentFile)); + .then(svgToImg.bind(null, rootFolder, currentFile, $)) + .then(svgToPng.bind(null, rootFolder, currentFile, $)); }; } |