Features
- New component
mj-wrapper
lets you wrap multiple sections to share a background or borders across multiple sections - New component
mj-accordion
enables to add an accordion readers can interact with inside their email client mj-style
no longer inlines styles by default but adds the css into the head (as a consequence, it now supports media queries!)mj-style
now supportsinline="inline"
attribute to inline the given css instead of adding it to the head
API
mj-head
is now available when passing MJML as a JSON object tomjml2html
Fixes
- Updated the error message when mj-body has no children thanks to @michelgotta #514
- Fixed numeral on mjml-invoice
- Fixed default border-radius on mj-image which was set to null #538
- Fixed encoding/decoding issues with special characters
- Fixed the issue where
$
+ a number was duplicating content, thanks to @koss-lebedev #559 - MJML is now using Cheerio instead of jQuery inside an Electron app (especially useful for Atom packages)
- Fixed the issue where nested
mj-include
inside anmj-head
wasn't parsed correctly (introduced in 3.2) - MJML doesn't use Juice by default anymore, but only if there is CSS to inline (using
mj-style inline="inline"
) for better performances - Fixed the issue where
--validate
wasn't working properly, especially ifmj-head
was used