Function: markdown-end-of-defun
markdown-end-of-defun is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown-end-of-defun)
Documentation
`end-of-defun-function’ for Markdown.
This is used to find the end of the defun at point. It is called with no argument, right after calling ‘beginning-of-defun-raw’, so it can assume that point is at the beginning of the defun body. It should move point to the first position after the defun.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-end-of-defun ()
"`end-of-defun-function’ for Markdown.
This is used to find the end of the defun at point.
It is called with no argument, right after calling ‘beginning-of-defun-raw’,
so it can assume that point is at the beginning of the defun body.
It should move point to the first position after the defun."
(or (eobp) (forward-char 1))
(let (found)
(while (and (not found)
(not (eobp))
(re-search-forward markdown-regex-header nil 'move))
(when (not (markdown-code-block-at-pos (match-beginning 0)))
(setq found (match-beginning 0))))
(when found
(goto-char found)
(skip-syntax-backward "-"))))