Bug fix
This commit is contained in:
parent
77a64d5179
commit
5552e6d2eb
@ -52,7 +52,7 @@ func ConvertToMarkdown(c *Config, filename string) ([]byte, error) {
|
|||||||
return nil, fmt.Errorf("error saving image %v: %v", name, err)
|
return nil, fmt.Errorf("error saving image %v: %v", name, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
articleContent = regexp.MustCompile(name).ReplaceAll(articleContent, []byte(c.PicsDir+"/"+newImageName))
|
articleContent = regexp.MustCompile(name).ReplaceAll(articleContent, []byte(c.Domain+"/image/serve/"+newImageName))
|
||||||
}
|
}
|
||||||
|
|
||||||
return articleContent, nil
|
return articleContent, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user