Function: markdown-follow-thing-at-point

markdown-follow-thing-at-point is an interactive and natively compiled function defined in markdown-mode.el.

Signature

(markdown-follow-thing-at-point ARG)

Documentation

Follow thing at point if possible, such as a reference link or wiki link.

Opens inline and reference links in a browser. Opens wiki links to other files in the current window, or the another window if ARG is non-nil. See markdown-follow-link-at-point and markdown-follow-wiki-link-at-point.

Key Bindings

markdown-mode-map C-c C-o markdown-mode-mouse-map <mouse-2>

Source Code

;; Defined in /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/markdown-mode.el
;;; Following & Doing =========================================================

(defun markdown-follow-thing-at-point (arg)
  "Follow thing at point if possible, such as a reference link or wiki link.
Opens inline and reference links in a browser.  Opens wiki links
to other files in the current window, or the another window if
ARG is non-nil.
See `markdown-follow-link-at-point' and
`markdown-follow-wiki-link-at-point'."
  (interactive "P")
  (cond ((markdown-link-p)
         (markdown-follow-link-at-point))
        ((markdown-wiki-link-p)
         (markdown-follow-wiki-link-at-point arg))
        (t
         (let* ((values (markdown-link-at-pos (point)))
                (url (nth 3 values)))
           (unless url
             (user-error "Nothing to follow at point"))
           (markdown--browse-url url)))))