mirror of
https://github.com/jackyzha0/hugo-obsidian.git
synced 2024-06-14 11:42:35 +03:00
Merge pull request #31 from ALonelySheep/master
This commit is contained in:
commit
55ee3ce9c7
2
parse.go
2
parse.go
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user