mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-13 22:00:27 +00:00
Fix anchor being shown when not needed
This commit is contained in:
parent
291c8c01ca
commit
1c093b6c98
@ -113,8 +113,8 @@ func From(address, display, hyphaName string) *Link {
|
|||||||
if strings.HasPrefix(link.Display, "//") && len(link.Display) > 2 {
|
if strings.HasPrefix(link.Display, "//") && len(link.Display) > 2 {
|
||||||
link.Display = link.Display[2:]
|
link.Display = link.Display[2:]
|
||||||
}
|
}
|
||||||
|
link.Display += link.Anchor
|
||||||
}
|
}
|
||||||
link.Display += link.Anchor
|
|
||||||
link.Address = address
|
link.Address = address
|
||||||
case strings.HasPrefix(address, "#"):
|
case strings.HasPrefix(address, "#"):
|
||||||
link.Kind = LinkLocalHypha
|
link.Kind = LinkLocalHypha
|
||||||
|
Loading…
Reference in New Issue
Block a user