summaryrefslogtreecommitdiffstats
path: root/lib/page/index.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-02-12 21:59:49 +0100
committerSamy Pesse <samypesse@gmail.com>2016-02-12 21:59:49 +0100
commit39b6562d1445e9a6c43a377d2a978eefa6458755 (patch)
tree77d530bca613c44e8c8fee8e6944d538d44f3ca7 /lib/page/index.js
parent0d966fe19738089607de3927694ac5f2bd41f03f (diff)
downloadgitbook-39b6562d1445e9a6c43a377d2a978eefa6458755.zip
gitbook-39b6562d1445e9a6c43a377d2a978eefa6458755.tar.gz
gitbook-39b6562d1445e9a6c43a377d2a978eefa6458755.tar.bz2
Add pipeline to outline svg as png
Diffstat (limited to 'lib/page/index.js')
-rw-r--r--lib/page/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/page/index.js b/lib/page/index.js
index 8d1bfed..282cffe 100644
--- a/lib/page/index.js
+++ b/lib/page/index.js
@@ -119,7 +119,8 @@ Page.prototype.parse = function(output) {
.then(function() {
var pipelineOpts = {
// Replace links to page of summary
- onRelativeLink: _.partial(output.onRelativeLink, that)
+ onRelativeLink: _.partial(output.onRelativeLink, that),
+ onOutputSVG: _.partial(output.onOutputSVG, that)
};
var pipeline = new HTMLPipeline(that.content, pipelineOpts);