Function: markdown-update-header-faces

markdown-update-header-faces is a byte-compiled function defined in markdown-mode.el.

Signature

(markdown-update-header-faces &optional SCALING SCALING-VALUES)

Documentation

Update header faces, depending on if header SCALING is desired.

If so, use given list of SCALING-VALUES relative to the baseline size of markdown-header-face.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-update-header-faces (&optional scaling scaling-values)
  "Update header faces, depending on if header SCALING is desired.
If so, use given list of SCALING-VALUES relative to the baseline
size of `markdown-header-face'."
  (dotimes (num 6)
    (let* ((face-name (intern (format "markdown-header-face-%s" (1+ num))))
           (scale (cond ((not scaling) 1.0)
                        (scaling-values (float (nth num scaling-values)))
                        (t (float (nth num markdown-header-scaling-values))))))
      (unless (get face-name 'saved-face) ; Don't update customized faces
        (set-face-attribute face-name nil :height scale)))))