mirror of
https://github.com/kovetskiy/mark.git
synced 2026-05-03 22:12:35 +00:00
Fix replacing relative links, fix #43
This commit is contained in:
5
main.go
5
main.go
@@ -213,11 +213,12 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
links, err := mark.ResolveRelativeLinks(api, markdown, ".")
|
||||
links, err := mark.ResolveRelativeLinks(api, meta, markdown, ".")
|
||||
if err != nil {
|
||||
log.Fatalf(err, "unable to resolve relative links")
|
||||
}
|
||||
markdown = mark.ReplaceRelativeLinks(markdown, links)
|
||||
|
||||
markdown = mark.SubstituteLinks(markdown, links)
|
||||
|
||||
if dryRun {
|
||||
compileOnly = true
|
||||
|
||||
Reference in New Issue
Block a user