Function: markdown-propertize-end-match
markdown-propertize-end-match is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown-propertize-end-match REG END FENCE-SPEC MIDDLE-BEGIN)
Documentation
Get match for REG up to END, if exists, and propertize appropriately.
FENCE-SPEC is an entry in markdown-fenced-block-pairs and
MIDDLE-BEGIN is the start of the "middle" section of the block.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-propertize-end-match (reg end fence-spec middle-begin)
"Get match for REG up to END, if exists, and propertize appropriately.
FENCE-SPEC is an entry in `markdown-fenced-block-pairs' and
MIDDLE-BEGIN is the start of the \"middle\" section of the block."
(when (re-search-forward reg end t)
(let ((close-begin (match-beginning 0)) ; Start of closing line.
(close-end (match-end 0)) ; End of closing line.
(close-data (match-data t))) ; Match data for closing line.
;; Propertize middle section of fenced block.
(put-text-property middle-begin close-begin
(cl-third fence-spec)
(list middle-begin close-begin))
;; If the block is a YAML block, propertize the declarations inside
(when (< middle-begin close-begin) ;; workaround #634
(markdown-syntax-propertize-yaml-metadata middle-begin close-begin))
;; Propertize closing line of fenced block.
(put-text-property close-begin close-end
(cl-cadadr fence-spec) close-data))))