You can use specific data-css-inline attributes to control how the library treats certain elements or tags:
data-css-inline="ignore": Skips inlining for the specific tag. Can also be used on <style> or <link> tags to prevent them from being processed.data-css-inline="keep": Prevents <style> tags from being removed after inlining. This is useful for preserving @media queries for responsive emails.
Note: If you use setKeepAtRules(true) in your configuration, @media queries will be preserved in <style> tags even if setKeepStyleTags is set to false.
<!-- Skip inlining for this specific element -->
<h1 data-css-inline="ignore">Big Text</h1>
<!-- Keep this style tag in the output -->
<style data-css-inline="keep">@media (max-width: 600px) { ... }</style>