diff --git a/modules/anchors.js b/modules/anchors.js index 7c4278c..65035cd 100644 --- a/modules/anchors.js +++ b/modules/anchors.js @@ -11,6 +11,10 @@ module.exports = { if (anchors[i].getAttribute('href')) { var anchor = anchors[i] var href = anchor.getAttribute('href').trim() + + // Do not touch hrefs which start with a pound sign + if (href[0] == '#') continue + var absoluteURL = functions.resolve(absBasePath, href) anchor.setAttribute('href', absoluteURL)