Skip to content

Commit

Permalink
Support in-page header links
Browse files Browse the repository at this point in the history
  • Loading branch information
sandyarmstrong committed May 5, 2021
1 parent c7b8464 commit ddf59da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions action.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ Function UpdateFileLinks()
Write-Verbose "Link $link is already absolute, nothing to do"
return "[$text]($link)"
}

if ($link -like "#*")
{
# Header anchor, no change
Write-Verbose "Link $link is to an anchor within the page (generally a header), nothing to do"
return "[$text]($link)"
}

$upDirs = 0
$path = @()
Expand Down

0 comments on commit ddf59da

Please sign in to comment.