Function: markdown-insert-footnote
markdown-insert-footnote is an interactive and natively compiled
function defined in markdown-mode.el.
Signature
(markdown-insert-footnote)
Documentation
Insert footnote with a new number and move point to footnote definition.
Key Bindings
markdown-mode-map C-c C-a f markdown-mode-map C-c C-s f markdown-mode-style-map f
Source Code
;; Defined in /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/markdown-mode.el
(defun markdown-insert-footnote ()
"Insert footnote with a new number and move point to footnote definition."
(interactive)
(let ((fn (markdown-footnote-counter-inc)))
(insert (format "[^%d]" fn))
(push-mark (point) t)
(markdown-footnote-text-find-new-location)
(markdown-ensure-blank-line-before)
(unless (markdown-cur-line-blank-p)
(insert "\n"))
(insert (format "[^%d]: " fn))
(markdown-ensure-blank-line-after)))