Function: markdown--browse-url
markdown--browse-url is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown--browse-url URL)
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown--browse-url (url)
(let* ((struct (url-generic-parse-url url))
(full (url-fullness struct))
(file url))
;; Parse URL, determine fullness, strip query string
(setq file (car (url-path-and-query struct)))
;; Open full URLs in browser, files in Emacs
(if full
(browse-url url)
(when (and file (> (length file) 0))
(let ((link-file (funcall markdown-translate-filename-function file)))
(if (and markdown-open-image-command (string-match-p (image-file-name-regexp) link-file))
(if (functionp markdown-open-image-command)
(funcall markdown-open-image-command link-file)
(process-file markdown-open-image-command nil nil nil link-file))
(find-file link-file)))))))