-
Notifications
You must be signed in to change notification settings - Fork 968
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
Inlining styles makes all elements inside mj-raw tags lowercase #1450
Comments
Might be related to |
And I haven't seen that it has been converted to Thanks for reporting this @wdonnell with an example 👍 |
Your comments set me on the right track.
Exposing this configuration as a parameter would be a more permanent solution. |
Maybe open a PR on juice side so we can update juice version for the next release ? |
Describe the bug
When using
<mj-style inline="inline">
all html elements inside<mj-raw>
and<mj-table>
have their tag names and parameters set to lowercase, even if they aren't related to the css selectors.My intended workflow is using MJML to render a freemarker template, which our application can process to dynamically generate unique emails. The freemarker tags include references to variables, so casing is important.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Body output is:
Ideally, the styles would be inlined with the
<p>
tag and the unrelated<#if>
would remain unchanged. Or, since it's inside an mj-raw tag, everything including the<p>
would remain untouched.Actual behavior
Body output is:
The style is applied, but the
<#if>
tag's attributesomecheckhere
is lowercasedMJML environment (please complete the following information):
The text was updated successfully, but these errors were encountered: