Function: markdown-insert-link-button
markdown-insert-link-button is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown-insert-link-button LINK OLDBUF)
Documentation
Insert a button for jumping to LINK in buffer OLDBUF.
LINK should be a list of the form (text char line) containing the link text, location, and line number.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-insert-link-button (link oldbuf)
"Insert a button for jumping to LINK in buffer OLDBUF.
LINK should be a list of the form (text char line) containing
the link text, location, and line number."
(let ((label (cl-first link))
(char (cl-second link))
(line (cl-third link)))
;; Create a reference button
(insert-button label
:type 'markdown-location-button
'target-buffer oldbuf
'target-char char)
(insert (format " (line %d)\n" line))))