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

Fix "footnotes as nodes" #31

Merged
merged 1 commit into from
Feb 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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