Your MJML will always be up-to-date and responsive. Building a responsive email is super easy with tags such as and .Say goodbye to endless HTML table nesting or email client specific CSS. Mj-raw tags are also parsed correctly by the mjml engine leaving only the contents of the mj-raw tags outputted into the html. Get your speed and productivity boosted with MJMLâs semantic syntax. ![]() Something similar to the conditional comment where the opening comment allows the mj-text element to render. MJML is a markup language designed to reduce the pain of coding a responsive email. Problematic snippet (large red square in screenshot): (EDIT 1 year later) Ive switched to Jeremy Peters method below, works great for both sup and sub. It isnt enough to just remove the comments from a rendered html, because comments are used there for conditional formatting as well, and any cleanup script would accidentally remove those tags as well. Method 2 seems to work well all the time until you modify the line-height (bad things happen). Id love to be able to tell mjml to throw away these comments, as I use them for storing alternatives (eg. The mj-element doesnât render as expected. Method 1 seems to work well in everything but outlook (extra tiny fonts), so it might be worth conditional ie statements to try to adjust the font size. ![]() When using an conditional inside an mj-raw tag (mjml 4.3) the first closing mj-raw tag, mjml element that follows, and subsequent opening mj-raw tag (needed to hold the closing mso conditional tag) is treated as one comment.
0 Comments
Leave a Reply. |