ExportInlineStylesTransformation
Parameters
element : HTMLElementThe DOM element being processed.
stylesMap : StylesMapThe map of styles to be applied to the element. This map can be modified (adding, removing, or updating styles) before they are inlined.
attrs : ExportInlineStylesTransformationAttrsHelpers to control the transformation flow.
Returns
HTMLElement | undefined | voidThe new element that will be used instead of the original one, or
undefinedto keep the original element. It may be used when a transformer replaces one element with another (e.g., converting afigureto adiv).