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)