color-changing-cover
color-changing-cover(self: none, color: gray, fallback-hide: hide, transparentize-table: false, fallback-hide-args: (:), it)(source)Cover content with a text-color-changing mechanism.
Example: config-methods(cover: utils.color-changing-cover.with(color: gray))
Parameters
color : color default: gray
The color to apply to text when covered. Default is gray.
fallback-hide : func default: hide
The function to use to hide the content if it does not contain text. Default is typst's own hide. You may pass none to not hide non-text content. To hide content with a semi-transparent/color overlay, you can pass in semi-transparent-cover/cover-with-rect.with(fill: ...).
transparentize-table : bool default: false
Whether to transparentize table content. Default is false.
it : content
The content to cover.
fallback-hide-args : dict default: (:)
The named arguments to pass to the fallback hide function if the content does not contain text.
Returns: content