Function: htmlize-display-prop-to-html
htmlize-display-prop-to-html is a byte-compiled function defined in
htmlize.el.
Signature
(htmlize-display-prop-to-html DISPLAY TEXT)
Source Code
;; Defined in ~/.emacs.d/elpa/htmlize-20250724.1703/htmlize.el
(defun htmlize-display-prop-to-html (display text)
(let (desc)
(cond ((stringp display)
;; Emacs ignores recursive display properties.
(htmlize-escape-or-link display))
((not (eq (car-safe display) 'image))
(htmlize-protect-string text))
((null (setq desc (funcall htmlize-transform-image
(cdr display) text)))
(htmlize-escape-or-link text))
((stringp desc)
(htmlize-escape-or-link desc))
(t
(htmlize-generate-image desc text)))))