Headless Server Developer Manual / Version 2307
Table Of ContentsAn Element Transformer allows generating an alternate element name based on the element styles. It is used, for example, for generating HTML headlines from the rich text headlines, which are internally stored as paragraphs with custom style classes.
Example: mapping from a style's name to element qualified name.
... elementTransformer: !ElementFromClass mapping: *headline_1_style: h1 *headline_2_style: h2 *headline_3_style: h3 *headline_4_style: h4 *headline_5_style: h5 *headline_6_style: h6