Function: markdown--get-remote-image

markdown--get-remote-image is a natively compiled function defined in markdown-mode.el.

Signature

(markdown--get-remote-image URL)

Documentation

Retrieve the image path for a given URL.

Source Code

;; Defined in /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/markdown-mode.el
(defun markdown--get-remote-image (url)
  "Retrieve the image path for a given URL."
  (or (gethash url markdown--remote-image-cache)
      (let ((dl-path (make-temp-file "markdown-mode--image")))
        (require 'url)
        (url-copy-file url dl-path t)
        (puthash url dl-path markdown--remote-image-cache))))