Skip to content

Commit

Permalink
Merge pull request #63 from mnich0ls/markdown-links
Browse files Browse the repository at this point in the history
Fix links to markdown anchors; Resolve issue #62
  • Loading branch information
thedevsaddam authored Dec 21, 2021
2 parents ec87951 + 0bd12af commit 9301cda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/funcmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ func githubLink(v string) string {
v = strings.ToLower(v)

v = strings.Replace(v, " ", "-", -1)
v = strings.Replace(v, ".", "", -1)
v = strings.Replace(v, "/", "", -1)
nonWordChars := regexp.MustCompile(`[^-\w\d]`)
v = nonWordChars.ReplaceAllString(v, "")
return v
}

Expand Down

0 comments on commit 9301cda

Please sign in to comment.