Function: markdown-find-previous-prop
markdown-find-previous-prop is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown-find-previous-prop PROP &optional LIM)
Documentation
Find previous place where property PROP is non-nil, up to LIM.
Return a cons of (pos . property). pos is point if point contains non-nil PROP.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-find-previous-prop (prop &optional lim)
"Find previous place where property PROP is non-nil, up to LIM.
Return a cons of (pos . property). pos is point if point contains
non-nil PROP."
(let ((res
(if (get-text-property (point) prop) (point)
(previous-single-property-change
(point) prop nil (or lim (point-min))))))
(when (and (not (get-text-property res prop))
(> res (point-min))
(get-text-property (1- res) prop))
(cl-decf res))
(when (and res (get-text-property res prop)) (cons res prop))))