url fix
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Arnas Udovic 2023-06-27 11:25:32 +03:00
parent 6f76d2efd6
commit b96d4c5452

View file

@ -258,7 +258,7 @@ func fixFormat(dir string, attachmentRegistry map[string]string) error {
if err != nil { if err != nil {
aPath := path.Clean(fmt.Sprintf("%s/%s", path.Dir(fullPath), string(match[2][:]))) aPath := path.Clean(fmt.Sprintf("%s/%s", path.Dir(fullPath), string(match[2][:])))
if _, ok := attachmentRegistry[aPath]; ok { 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) data = bytes.Replace(data, match[0], []byte(link), 1)
} }
} }