summaryrefslogtreecommitdiffstats
path: root/lib/output/base.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-18 17:03:37 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-18 17:03:37 +0100
commit95d81d02a12dc6ae5e9d845e2eb69b7e1dc1debd (patch)
tree2d13fc184bab0fb037f056a8d820a765e0183efb /lib/output/base.js
parent8401a674c382cd1c7ca6c6a02e4def3d237c9734 (diff)
downloadgitbook-95d81d02a12dc6ae5e9d845e2eb69b7e1dc1debd.zip
gitbook-95d81d02a12dc6ae5e9d845e2eb69b7e1dc1debd.tar.gz
gitbook-95d81d02a12dc6ae5e9d845e2eb69b7e1dc1debd.tar.bz2
Fix resolve of images
Diffstat (limited to 'lib/output/base.js')
-rw-r--r--lib/output/base.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/output/base.js b/lib/output/base.js
index 6678bb0..2a7ec48 100644
--- a/lib/output/base.js
+++ b/lib/output/base.js
@@ -76,12 +76,12 @@ Output.prototype.generate = function() {
.value();
return Promise.serie(byTypes.asset, function(filename) {
- that.log.info.ln('copy asset', filename);
+ that.log.debug.ln('copy asset', filename);
return that.onAsset(filename);
})
.then(function() {
return Promise.serie(byTypes.page, function(filename) {
- that.log.info.ln('process page', filename);
+ that.log.debug.ln('process page', filename);
return that.onPage(that.book.getPage(filename));
});
});
@@ -154,6 +154,7 @@ Output.prototype.onOutputSVG = function(page, svg) {
// Output an image as a file
// Normalize the relative link
Output.prototype.onOutputImage = function(page, imgFile) {
+ imgFile = page.resolveLocal(imgFile);
return page.relative(imgFile);
};