Skip to content

Commit 11bb98c

Browse files
authored
Merge pull request #1 from sandyarmstrong/anchors-away
Support in-page header links
2 parents c7b8464 + ddf59da commit 11bb98c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

action.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,13 @@ Function UpdateFileLinks()
149149
Write-Verbose "Link $link is already absolute, nothing to do"
150150
return "[$text]($link)"
151151
}
152+
153+
if ($link -like "#*")
154+
{
155+
# Header anchor, no change
156+
Write-Verbose "Link $link is to an anchor within the page (generally a header), nothing to do"
157+
return "[$text]($link)"
158+
}
152159

153160
$upDirs = 0
154161
$path = @()

0 commit comments

Comments
 (0)