You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When placing a <mj-raw> tag under <mj-list> the mjml parser throws the following error:
Line 3 of undefined, included at line 143 of file /test.mjml (mj-raw) — mj-raw cannot be used inside mj-list, only inside: mj-column, mjml, mj-accordion, mj-accordion-element, mj-attributes, mj-body, mj-group, mj-head, mj-hero, mj-navbar, mj-section, mj-social, mj-wrapper
The <mj-raw> tag is necessary as we are implementing jinja2 templating syntax which dissapears after rendering the mjml to html.
Example:
<mj-raw>{% if filters|length > 0 %}</mj-raw><!-- This works fine --><mj-list>
{% for key, value in filters.items() %} <!-- This does not render in html and therefore requires an mj-raw --><mj-libullet-color="#8aabff" color="#2a2a2a" padding-left="7px">
{{ key }}
</mj-li>
{% endfor %}
</mj-list>
Notice the missing {% for key, value in filters.items() %} in the rendered output
MJML Bullet List version
1.2.2
MJML version
4.13.0
What operating system are you using?
Mac
Node version
19.7.0
npm or yarn version
7.18.0 (pnpm)
Current behavior
When placing a
<mj-raw>
tag under<mj-list>
the mjml parser throws the following error:The
<mj-raw>
tag is necessary as we are implementing jinja2 templating syntax which dissapears after rendering the mjml to html.Example:
Notice the missing
{% for key, value in filters.items() %}
in the rendered outputExpected behavior
<mj-list>
should be able to include an<mj-raw>
tag and render the markup unprocessed.Steps to reproduce
Include an
<mj-raw>
tag inside of an<mj-list>
tag.Relevant log output
No response
Related code
No response
Preferred solution
No response
Other information
No response
The text was updated successfully, but these errors were encountered: