Function: markdown-match-math-generic
markdown-match-math-generic is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown-match-math-generic REGEX LAST)
Documentation
Match REGEX from point to LAST.
REGEX is either markdown-regex-math-inline-single for matching
$..$ or markdown-regex-math-inline-double for matching $$..$$.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-match-math-generic (regex last)
"Match REGEX from point to LAST.
REGEX is either `markdown-regex-math-inline-single' for matching
$..$ or `markdown-regex-math-inline-double' for matching $$..$$."
(when (markdown-match-inline-generic regex last)
(let ((begin (match-beginning 1)) (end (match-end 1)))
(prog1
(if (or (markdown-range-property-any
begin end 'face
'(markdown-inline-code-face markdown-bold-face))
(markdown-range-properties-exist
begin end
(markdown-get-fenced-block-middle-properties)))
(markdown-match-math-generic regex last)
t)
(goto-char (1+ (match-end 0)))))))