mirror of
https://github.com/jackyzha0/hugo-obsidian.git
synced 2024-06-14 11:42:35 +03:00
fix "footnotes as node"
This commit is contained in:
parent
34bb5aac83
commit
658d98b101
14
parse.go
14
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)
|
||||||
links = append(links, Link{
|
if !strings.HasPrefix(text, "^"){
|
||||||
Source: source,
|
links = append(links, Link{
|
||||||
Target: target,
|
Source: source,
|
||||||
Text: text,
|
Target: target,
|
||||||
})
|
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