diff options
Diffstat (limited to 'lib/output/base.js')
-rw-r--r-- | lib/output/base.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/output/base.js b/lib/output/base.js index d301b14..dd62cff 100644 --- a/lib/output/base.js +++ b/lib/output/base.js @@ -84,7 +84,7 @@ Output.prototype.prepare = function() { // Write a page (parsable file), ex: markdown, etc Output.prototype.onPage = function(page) { - + return page.parse(this); }; // Copy an asset file (non-parsable), ex: images, etc @@ -100,15 +100,20 @@ Output.prototype.onRelativeLink = function(currentPage, href) { return href; }; -// Output a SVG as a file +// Output a SVG buffer as a file Output.prototype.onOutputSVG = function(page, svg) { return null; }; +// Output an image as a file +Output.prototype.onOutputImage = function(page, imgFile) { + // Don't replace it + return imgFile; +}; + // Finish the generation Output.prototype.finish = function() { }; - module.exports = Output; |