Function: markdown-footnote-find-marker

markdown-footnote-find-marker is a byte-compiled function defined in markdown-mode.el.

Signature

(markdown-footnote-find-marker ID)

Documentation

Find the location of the footnote marker with ID.

The actual buffer position returned is the position directly following the marker's closing bracket. If no marker is found, NIL is returned.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-footnote-find-marker (id)
  "Find the location of the footnote marker with ID.
The actual buffer position returned is the position directly
following the marker's closing bracket.  If no marker is found,
NIL is returned."
  (save-excursion
    (goto-char (point-min))
    (when (re-search-forward (concat "\\[" id "\\]\\([^:]\\|\\'\\)") nil t)
      (skip-chars-backward "^]")
      (point))))