Function: markdown-match-propertized-text
markdown-match-propertized-text is a natively compiled function
defined in markdown-mode.el.
Signature
(markdown-match-propertized-text PROPERTY LAST)
Documentation
Match text with PROPERTY from point to LAST.
Restore match data previously stored in PROPERTY.
Source Code
;; Defined in /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/markdown-mode.el
(defun markdown-match-propertized-text (property last)
"Match text with PROPERTY from point to LAST.
Restore match data previously stored in PROPERTY."
(let ((saved (get-text-property (point) property))
pos)
(unless saved
(setq pos (next-single-property-change (point) property nil last))
(unless (= pos last)
(setq saved (get-text-property pos property))))
(when saved
(set-match-data saved)
;; Step at least one character beyond point. Otherwise
;; `font-lock-fontify-keywords-region' infloops.
(goto-char (min (1+ (max (match-end 0) (point)))
(point-max)))
saved)))