Closed jdrouet closed 5 months ago
As noted by #409, we currently cannot have a comment at the root of the template like following
<!-- not allowed --> <mjml> <mj-body> <!-- allowed --> </mj-body> </mjml>
To fix that, I introduced a Root element which will be called when doing mrml::parse or mrml::async_parse and will only return the contained Mjml component. This means that the comment will be just ignored.
Root
mrml::parse
mrml::async_parse
Mjml
As noted by #409, we currently cannot have a comment at the root of the template like following
To fix that, I introduced a
Root
element which will be called when doingmrml::parse
ormrml::async_parse
and will only return the containedMjml
component. This means that the comment will be just ignored.