Open returnv01d opened 1 year ago
Why would you expect this to work ?
I would expect it to throw an error, not to work
Ok then I misread, the issue first my bad.
Really weird that the validator doesn't catch this https://github.com/mjmlio/mjml/blob/master/packages/mjml-preset-core/src/dependencies.js#L8 this shouldn't be marked as a valid children 🤔
I made a fix for this issue: https://github.com/mjmlio/mjml/pull/2709
Describe the bug When MJML template contains in body another full MJML template (another
<mjml>....</mjml>
) then it does render only outer template (see screenshot) without throwing any errors.To Reproduce Steps to reproduce the behavior:
Create a file with this MJML code:
Expected behavior There should be at least error about illegal nesting or rendering both templates.
MJML environment (please complete the following information):
Screenshots
Additional context Embedding MJML in layout uncovered this issue.