diff --git a/cmd/backend/docx.go b/cmd/backend/docx.go index c44ee73..9affbb6 100644 --- a/cmd/backend/docx.go +++ b/cmd/backend/docx.go @@ -52,7 +52,7 @@ func ConvertToMarkdown(c *Config, filename string) ([]byte, error) { 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