Function: markdown-get-defined-references

markdown-get-defined-references is a byte-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 ~/.emacs.d/elpa/markdown-mode-20260321.143/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))))