Function: markdown-get-defined-references
markdown-get-defined-references is a natively compiled function
defined in markdown-mode.el.
Signature
(markdown-get-defined-references)
Documentation
Return all defined reference labels and their line numbers.
They does not include square brackets).
Source Code
;; Defined in /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/markdown-mode.el
(defun markdown-get-defined-references ()
"Return all defined reference labels and their line numbers.
They does not include square brackets)."
(save-excursion
(goto-char (point-min))
(let (refs)
(while (re-search-forward markdown-regex-reference-definition nil t)
(let ((target (match-string-no-properties 2)))
(cl-pushnew
(cons (downcase target)
(markdown-line-number-at-pos (match-beginning 2)))
refs :test #'equal :key #'car)))
(reverse refs))))