Merge pull request #31 from ALonelySheep/master

This commit is contained in:
Jacky Zhao 2023-02-25 12:35:20 -08:00 committed by GitHub
commit 55ee3ce9c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)