diff --git a/tree.go b/tree.go index 6335cb8..a574b4f 100644 --- a/tree.go +++ b/tree.go @@ -258,7 +258,7 @@ func fixFormat(dir string, attachmentRegistry map[string]string) error { if err != nil { aPath := path.Clean(fmt.Sprintf("%s/%s", path.Dir(fullPath), string(match[2][:]))) if _, ok := attachmentRegistry[aPath]; ok { - link := fmt.Sprintf("(%s)[%s]", match[1], attachmentRegistry[aPath]) + link := fmt.Sprintf("![%s](%s)", match[1], attachmentRegistry[aPath]) data = bytes.Replace(data, match[0], []byte(link), 1) } }