From 658d98b1016f98de280a465b4be11266fb27f020 Mon Sep 17 00:00:00 2001 From: ALonelySheep Date: Sat, 15 Oct 2022 20:09:25 +0800 Subject: [PATCH] fix "footnotes as node" --- parse.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/parse.go b/parse.go index 65b1510..a36c71d 100644 --- a/parse.go +++ b/parse.go @@ -38,12 +38,14 @@ func parse(dir, pathPrefix string) []Link { source := processSource(trim(dir, pathPrefix, ".md")) // fmt.Printf(" '%s' => %s\n", source, target) - links = append(links, Link{ - Source: source, - Target: target, - Text: text, - }) - n++ + if !strings.HasPrefix(text, "^"){ + links = append(links, Link{ + Source: source, + Target: target, + Text: text, + }) + n++ + } }) fmt.Printf("found: %d links\n", n)