Function: markdown-follow-link-at-point

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

Signature

(markdown-follow-link-at-point &optional EVENT)

Documentation

Open the non-wiki link at point or EVENT.

If the link is a complete URL, open in browser with browse-url. Otherwise, open with find-file after stripping anchor and/or query string. Translate filenames using markdown-filename-translate-function.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-follow-link-at-point (&optional event)
  "Open the non-wiki link at point or EVENT.
If the link is a complete URL, open in browser with `browse-url'.
Otherwise, open with `find-file' after stripping anchor and/or query string.
Translate filenames using `markdown-filename-translate-function'."
  (interactive (list last-command-event))
  (if event (posn-set-point (event-start event)))
  (if (markdown-link-p)
      (or (run-hook-with-args-until-success 'markdown-follow-link-functions (markdown-link-url))
          (markdown--browse-url (markdown-link-url)))
    (user-error "Point is not at a Markdown link or URL")))