Sign up (with export icon)

ExportInlineStylesTransformationAttrs

Api-typedef icontypedef

An object containing helper functions to control the transformation flow during the inline styles conversion.

Properties

  • A function used to register a callback to be executed after the current element's children have been processed.

    This allows for modifications based on the final state of the descendants.

  • A function used to register a callback to be executed after the entire document has been processed.

    It is particularly useful when you want to modify or replace the HTML structure of the document (e.g., replacing a figure with a section) without breaking the CSS selector matching for inline styles. By deferring structural changes to this callback, elements will still receive inline styles based on their original DOM structure (e.g., a div will still get styles from a figure > div selector before the parent figure is turned into a section).

Value

object