Function: markdown-follow-wiki-link
markdown-follow-wiki-link is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown-follow-wiki-link NAME &optional OTHER)
Documentation
Follow the wiki link NAME.
Convert the name to a file name and call find-file. Ensure that
the new buffer remains in markdown-mode. Open the link in another
window when OTHER is non-nil.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-follow-wiki-link (name &optional other)
"Follow the wiki link NAME.
Convert the name to a file name and call `find-file'. Ensure that
the new buffer remains in `markdown-mode'. Open the link in another
window when OTHER is non-nil."
(let ((filename (markdown-convert-wiki-link-to-filename name))
(wp (when buffer-file-name
(file-name-directory buffer-file-name))))
(if (not wp)
(user-error "Must be visiting a file")
(when other (other-window 1))
(let ((default-directory wp))
(find-file filename)))
(unless (derived-mode-p 'markdown-mode)
(markdown-mode))))