Variable: htmlize-max-alt-text

htmlize-max-alt-text is a customizable variable defined in htmlize.el.

Value

100

Documentation

Maximum size of text to use as ALT text in images.

Normally when htmlize encounters text covered by the display property that specifies an image, it generates an alt attribute containing the original text. If the text is larger than htmlize-max-alt-text characters, this will not be done.

Source Code

;; Defined in ~/.emacs.d/elpa/htmlize-20250724.1703/htmlize.el
(defcustom htmlize-max-alt-text 100
  "Maximum size of text to use as ALT text in images.

Normally when htmlize encounters text covered by the `display' property
that specifies an image, it generates an `alt' attribute containing the
original text.  If the text is larger than `htmlize-max-alt-text' characters,
this will not be done."
  :type 'integer
  :group 'htmlize)