fix "footnotes as node"

This commit is contained in:
ALonelySheep 2022-10-15 20:09:25 +08:00
parent 34bb5aac83
commit 658d98b101

View File

@ -38,12 +38,14 @@ func parse(dir, pathPrefix string) []Link {
source := processSource(trim(dir, pathPrefix, ".md")) source := processSource(trim(dir, pathPrefix, ".md"))
// fmt.Printf(" '%s' => %s\n", source, target) // fmt.Printf(" '%s' => %s\n", source, target)
if !strings.HasPrefix(text, "^"){
links = append(links, Link{ links = append(links, Link{
Source: source, Source: source,
Target: target, Target: target,
Text: text, Text: text,
}) })
n++ n++
}
}) })
fmt.Printf("found: %d links\n", n) fmt.Printf("found: %d links\n", n)