Variable: htmlize-transform-image

htmlize-transform-image is a customizable variable defined in htmlize.el.

Value

htmlize-default-transform-image

Documentation

Function called to modify the image descriptor.

The function is called with the image descriptor found in the buffer and the text the image is supposed to replace. It should return a (possibly different) image descriptor property list or a replacement string to use instead of of the original buffer text.

Returning nil is the same as returning the original text.

Source Code

;; Defined in ~/.emacs.d/elpa/htmlize-20250724.1703/htmlize.el
(defcustom htmlize-transform-image 'htmlize-default-transform-image
  "Function called to modify the image descriptor.

The function is called with the image descriptor found in the buffer and
the text the image is supposed to replace.  It should return a (possibly
different) image descriptor property list or a replacement string to use
instead of of the original buffer text.

Returning nil is the same as returning the original text."
  :type 'boolean
  :group 'htmlize)