diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-02-13 13:56:04 +0100 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-02-13 13:56:04 +0100 |
commit | d8ed34beba05bde85af420cc4e42a065021653dc (patch) | |
tree | 14a98389f20ef6cf768db851d46267701fa3d4d8 /lib/output/base.js | |
parent | 3154d37e41da68a16ef29ec69d8896acd9da336a (diff) | |
download | gitbook-d8ed34beba05bde85af420cc4e42a065021653dc.zip gitbook-d8ed34beba05bde85af420cc4e42a065021653dc.tar.gz gitbook-d8ed34beba05bde85af420cc4e42a065021653dc.tar.bz2 |
Add method to fetch remote image with AssetsInliner
Diffstat (limited to 'lib/output/base.js')
-rw-r--r-- | lib/output/base.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/output/base.js b/lib/output/base.js index dd62cff..688ecb7 100644 --- a/lib/output/base.js +++ b/lib/output/base.js @@ -106,9 +106,9 @@ Output.prototype.onOutputSVG = function(page, svg) { }; // Output an image as a file +// Normalize the relative link Output.prototype.onOutputImage = function(page, imgFile) { - // Don't replace it - return imgFile; + return page.relative(imgFile); }; // Finish the generation |