mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-10-25 04:37:41 +00:00
Fix extra hyphae appearing and wrong red link coloring
This commit is contained in:
@@ -67,10 +67,10 @@ func wikilink(src string, state *GemLexerState) (href, text, class string) {
|
||||
case strings.ContainsRune(href, ':'):
|
||||
class = "wikilink_external"
|
||||
default:
|
||||
href = path.Join("/page", href)
|
||||
if !HyphaExists(href) {
|
||||
class += " wikilink_new"
|
||||
}
|
||||
href = path.Join("/page", href)
|
||||
}
|
||||
return href, strings.TrimSpace(text), class
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user