-
Notifications
You must be signed in to change notification settings - Fork 960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering another MJML template in MJML template #2695
Comments
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:/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: #2709 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
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.
The text was updated successfully, but these errors were encountered: