Function: markdown-heading-at-point
markdown-heading-at-point is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown-heading-at-point &optional POS)
Documentation
Return non-nil if there is a heading at the POS.
Set match data for markdown-regex-header.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-heading-at-point (&optional pos)
"Return non-nil if there is a heading at the POS.
Set match data for `markdown-regex-header'."
(let* ((p (or pos (if (and (eolp) (>= (point) 2)) (1- (point)) (point))))
(match-data (get-text-property p 'markdown-heading)))
(when match-data
(set-match-data match-data)
t)))