Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #31 from ALonelySheep/master
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 authored Feb 25, 2023
2 parents dc958f9 + 658d98b commit 55ee3ce
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 55ee3ce

Please sign in to comment.