Fix for subdirectories related attachments (issue #31) (#151)

This commit is contained in:
klysunkin
2022-01-18 09:07:36 +03:00
committed by GitHub
parent 8d58ff26a3
commit 9a7146c7d7
4 changed files with 80 additions and 15 deletions

View File

@@ -313,7 +313,7 @@ func processFile(
target = page
}
attaches, err := mark.ResolveAttachments(api, target, ".", meta.Attachments)
attaches, err := mark.ResolveAttachments(api, target, filepath.Dir(file), meta.Attachments)
if err != nil {
log.Fatalf(err, "unable to create/update attachments")
}