An MJML component that outputs raw HTML without MJML processing. It is part of the mjml-4-terser package (version 4.15.5), a fork aiming to reduce bundle size. Releases follow upstream MJML. Key differentiator: allows embedding arbitrary HTML, templating, or meta tags, and can be placed before the doctype using position='file-start'. Caution required with minification: wrap template syntax in htmlmin:ignore comments to avoid parsing errors.
npm install mjml-raw-4-terserNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to embed raw HTML inside an MJML template using the mj-raw tag.
Wrap template syntax with <!-- htmlmin:ignore -->...<!-- htmlmin:ignore -->
Wrap multi-line content with <!-- htmlmin:ignore --> tags
Do not nest MJML components inside <mj-raw>
Wrap the template syntax with <!-- htmlmin:ignore -->...<!-- htmlmin:ignore -->
Remove MJML components from inside <mj-raw>; it only accepts HTML.
Use position='file-start' (the only valid value).