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:
parent
291c8c01ca
commit
1c093b6c98
@ -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.Address = address
|
||||
case strings.HasPrefix(address, "#"):
|
||||
link.Kind = LinkLocalHypha
|
||||
|
Loading…
Reference in New Issue
Block a user