Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadAndReplace ¶
func DownloadAndReplace(ctx context.Context, client *http.Client, markdown string, destDir string) (string, error)
DownloadAndReplace finds GitHub attachment image URLs in markdown text, downloads each image to destDir using the provided HTTP client, and returns the markdown with URLs replaced by absolute local file paths.
If an image fails to download, the original URL is preserved (best-effort). If no images are found, the original text is returned unchanged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.