diff options
Diffstat (limited to 'lib/page/index.js')
-rw-r--r-- | lib/page/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/page/index.js b/lib/page/index.js index 711e0e1..7074780 100644 --- a/lib/page/index.js +++ b/lib/page/index.js @@ -84,7 +84,7 @@ Page.prototype.parse = function(opts) { var that = this; opts = _.defaults(opts || {}, { - + linkPages: true }); @@ -123,9 +123,10 @@ Page.prototype.parse = function(opts) { // Normalize HTML output .then(function() { var pipelineOpts = _.extend({ - // Replace links to page of summary onRelativeLink: function(href) { + if (!opts.linkPages) return href; + var to = that.book.getPage(href); if (to) return to.outputPath(); |