Sign up (with export icon)

ExportInlineStylesTransformation

Api-typedef icontypedef

Parameters

element : HTMLElement

The DOM element being processed.

stylesMap : StylesMap

The map of styles to be applied to the element. This map can be modified (adding, removing, or updating styles) before they are inlined.

attrs : ExportInlineStylesTransformationAttrs

Helpers to control the transformation flow.

Returns

HTMLElement | undefined | void

The new element that will be used instead of the original one, or undefined to keep the original element. It may be used when a transformer replaces one element with another (e.g., converting a figure to a div).