Function: markdown-match-inline-generic
markdown-match-inline-generic is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown-match-inline-generic REGEX LAST &optional FACELESS)
Documentation
Match inline REGEX from the point to LAST.
When FACELESS is non-nil, do not return matches where faces have been applied.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-match-inline-generic (regex last &optional faceless)
"Match inline REGEX from the point to LAST.
When FACELESS is non-nil, do not return matches where faces have been applied."
(when (re-search-forward regex last t)
(let ((bounds (markdown-code-block-at-pos (match-beginning 1)))
(face (and faceless (text-property-not-all
(match-beginning 0) (match-end 0) 'face nil))))
(cond
;; In code block: move past it and recursively search again
(bounds
(when (< (goto-char (cl-second bounds)) last)
(markdown-match-inline-generic regex last faceless)))
;; When faces are found in the match range, skip over the match and
;; recursively search again.
(face
(when (< (goto-char (match-end 0)) last)
(markdown-match-inline-generic regex last faceless)))
;; Keep match data and return t when in bounds.
(t
(<= (match-end 0) last))))))