1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-13 05:50:27 +00:00

Fix anchor being shown when not needed

This commit is contained in:
bouncepaw 2021-04-19 21:44:32 +05:00
parent 291c8c01ca
commit 1c093b6c98

View File

@ -113,8 +113,8 @@ func From(address, display, hyphaName string) *Link {
if strings.HasPrefix(link.Display, "//") && len(link.Display) > 2 {
link.Display = link.Display[2:]
}
link.Display += link.Anchor
}
link.Display += link.Anchor
link.Address = address
case strings.HasPrefix(address, "#"):
link.Kind = LinkLocalHypha