Function: markdown-footnote-find-text

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

Signature

(markdown-footnote-find-text ID)

Documentation

Find the location of the text of footnote ID.

The actual buffer position returned is the position of the first character of the text, after the footnote's identifier. If no footnote text is found, NIL is returned.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-footnote-find-text (id)
  "Find the location of the text of footnote ID.
The actual buffer position returned is the position of the first
character of the text, after the footnote's identifier.  If no
footnote text is found, NIL is returned."
  (save-excursion
    (goto-char (point-min))
    (when (re-search-forward (concat "^ \\{0,3\\}\\[" id "\\]:") nil t)
      (skip-chars-forward " \t")
      (point))))