Function: markdown-footnote-marker-positions
markdown-footnote-marker-positions is a byte-compiled function defined
in markdown-mode.el.
Signature
(markdown-footnote-marker-positions)
Documentation
Return the position and ID of the footnote marker point is on.
The return value is a list (ID START END). If point is not on a footnote, NIL is returned.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-footnote-marker-positions ()
"Return the position and ID of the footnote marker point is on.
The return value is a list (ID START END). If point is not on a
footnote, NIL is returned."
;; first make sure we're at a footnote marker
(if (or (looking-back (concat "\\[\\^" markdown-footnote-chars "*\\]?") (line-beginning-position))
(looking-at-p (concat "\\[?\\^" markdown-footnote-chars "*?\\]")))
(save-excursion
;; move point between [ and ^:
(if (looking-at-p "\\[")
(forward-char 1)
(skip-chars-backward "^["))
(looking-at (concat "\\(\\^" markdown-footnote-chars "*?\\)\\]"))
(list (match-string 1) (1- (match-beginning 1)) (1+ (match-end 1))))))