From b96d4c5452fdd80acb18c76c09604000f016af98 Mon Sep 17 00:00:00 2001 From: Arnas Udovic Date: Tue, 27 Jun 2023 11:25:32 +0300 Subject: [PATCH] url fix --- tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }