images

package
v0.2.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL