@salesforcedevs/docs-components
Advanced tools
Comparing version 0.5.0 to 0.5.4
{ | ||
"name": "@salesforcedevs/docs-components", | ||
"version": "0.5.0", | ||
"version": "0.5.4", | ||
"description": "Docs Lightning web components for DSC", | ||
@@ -17,3 +17,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "f7bda2c332ef955ac21e7cfc689ea0ffd1a5ba4e" | ||
"gitHead": "cebf647acc9c020249c0f9b760369bca1c4426ef" | ||
} |
@@ -139,4 +139,6 @@ /* eslint-disable @lwc/lwc/no-inner-html */ | ||
// Modify links to work with any domain | ||
const anchorEls = templateEl.content.querySelectorAll("a"); | ||
// Modify links to work with any domain, links that start with "#" are excluded | ||
const anchorEls = templateEl.content.querySelectorAll( | ||
"a:not([href^='#'])" | ||
); | ||
anchorEls.forEach((anchorEl) => { | ||
@@ -153,2 +155,3 @@ if ( | ||
} | ||
const href = anchorEl.href.split("/"); | ||
@@ -155,0 +158,0 @@ if ( |
149838
3786