From a1bce73751dc00acd15e973339636af6f7932f10 Mon Sep 17 00:00:00 2001 From: bouncepaw Date: Tue, 3 Nov 2020 21:39:06 +0500 Subject: [PATCH] Fix extra hyphae appearing and wrong red link coloring --- hypha.go | 1 + markup/lexer.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hypha.go b/hypha.go index 83314e2..a49b785 100644 --- a/hypha.go +++ b/hypha.go @@ -209,6 +209,7 @@ func Index(path string) { // If this hypha looks like it can be a hypha path, go deeper. Do not touch the .git and static folders for they have an admnistrative importance! if node.IsDir() && isCanonicalName(node.Name()) && node.Name() != ".git" && node.Name() != "static" { Index(filepath.Join(path, node.Name())) + continue } var ( diff --git a/markup/lexer.go b/markup/lexer.go index c6fe504..dab1aaf 100644 --- a/markup/lexer.go +++ b/markup/lexer.go @@ -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 }