Function: markdown-footnote-delete-marker
markdown-footnote-delete-marker is a natively compiled function
defined in markdown-mode.el.
Signature
(markdown-footnote-delete-marker)
Documentation
Delete a footnote marker at point.
Returns a list (ID START) containing the footnote ID and the start position of the marker before deletion. If no footnote marker was deleted, this function returns NIL.
Source Code
;; Defined in /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/markdown-mode.el
(defun markdown-footnote-delete-marker ()
"Delete a footnote marker at point.
Returns a list (ID START) containing the footnote ID and the
start position of the marker before deletion. If no footnote
marker was deleted, this function returns NIL."
(let ((marker (markdown-footnote-marker-positions)))
(when marker
(delete-region (cl-second marker) (cl-third marker))
(butlast marker))))