Function: markdown-link-url
markdown-link-url is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown-link-url)
Documentation
Return the URL part of the regular (non-wiki) link at point.
Works with both inline and reference style links, and with images. If point is not at a link or the link reference is not defined returns nil.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-link-url ()
"Return the URL part of the regular (non-wiki) link at point.
Works with both inline and reference style links, and with images.
If point is not at a link or the link reference is not defined
returns nil."
(let* ((values (markdown-link-at-pos (point)))
(text (nth 2 values))
(url (nth 3 values))
(ref (nth 4 values)))
(or url (and ref (car (markdown-reference-definition
(downcase (if (string= ref "") text ref))))))))