Function: markdown-syntax-propertize-yaml-metadata

markdown-syntax-propertize-yaml-metadata is a byte-compiled function defined in markdown-mode.el.

Signature

(markdown-syntax-propertize-yaml-metadata START END)

Documentation

Propertize elements inside YAML metadata blocks from START to END.

Assumes region from START and END is already known to be the interior region of a YAML metadata block as propertized by markdown-syntax-propertize-fenced-block-constructs.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-syntax-propertize-yaml-metadata (start end)
  "Propertize elements inside YAML metadata blocks from START to END.
Assumes region from START and END is already known to be the interior
region of a YAML metadata block as propertized by
`markdown-syntax-propertize-fenced-block-constructs'."
  (save-excursion
    (goto-char start)
    (cl-loop
     while (re-search-forward markdown-regex-declarative-metadata end t)
     do (progn
          (put-text-property (match-beginning 1) (match-end 1)
                             'markdown-metadata-key (match-data t))
          (put-text-property (match-beginning 2) (match-end 2)
                             'markdown-metadata-markup (match-data t))
          (put-text-property (match-beginning 3) (match-end 3)
                             'markdown-metadata-value (match-data t))))))