Releases: mjmlio/mjml
Releases · mjmlio/mjml
3.3.5
3.3.4
Note : This should be the last release of MJML 3 branch, (if no breaking bug is found in this release)
Features
mj-image
supportssrcset
attributes thanks to @ctborgmj-button
supportstext-align
now #699mj-carousel-image
supportstitle
attribute #734
Fixes
mj-social
logo can have extra height on Outlookmj-section
with a background image can have extra 20px padding on Outlook solved by @ogonkov- Encode thin arrows
-> <-
to prevent issue with the XML parser solved by @zouxuoz - Documentation warning on
base-url
formj-social
not applied to custom network - Replacing deprecated
fs-promise
withmz
thanks to @jackytck - If
mjContent
has more than one react node it no longer adds an unwanted,
see #675 thanks to @etiennemarais
Thanks to @zouxuoz and @jamesblight for contributing on the documentation
4.0.0-alpha.3
To follow the advancement of MJML 4, please have a look at this PR: #706
Breaking changes
- MJML doesn't use React anymore, meaning custom components created for a previous version of MJML don't work anymore
mj-container
andmj-body
are merged into a singlemj-body
component. Templates created for a previous version of MJML to be adapted to reflect this change.- The structure of the
mj-social
component changes for more consistency, following the semantic structure below. Templates created for a previous version of MJML to be adapted to reflect this change.
<mj-social>
<mj-social-link name="facebook" ... />
<mj-social-link src="custom-icon-url" ... />
</mj-social>
Features
mj-column
now supports thepadding
attribute (especially useful to create gutters between columns!) (#160)- Full-width sections are now correctly displayed in Outlook desktop (#284)
mj-raw
doesn't alter thexml
/html
content anymore (such as auto-closing tags) and is added in the HTML output where it is expected (cf #485 & #600)- The new component
mj-breakpoint
enables to change the default breakpoint used by MJML - The new API
createComponent
enables you to render MJML inside a component without importing it - Attributes inheritance is now supported when using MJML inside components
List of components supported in this alpha
mj-preview
mj-body
mj-wrapper
mj-section
mj-column
mj-group
mj-button
mj-image
mj-text
mj-divider
mj-spacer
mj-social
(new syntax)
3.3.3
Features
- New component:
mj-preview
inmj-head
enables to set an email preview that will be displayed in email clients but hidden from the body of the email (#388) - New attribute: all MJML body tags now support the
css-class
attribute. The class name set incss-class
will be passed to the root HTML element created from the MJML tag as well as the Outlook conditional comment if any, with a-outlook
suffix (#532) - New attribute:
mj-button
,mj-image
,mj-carousel-image
,mj-location
,mj-navbar
andmj-social
now support therel
attribute (#533) mj-social
now supports theborder-radius
attribute (#556)
Fixes
- The
line-height
attribute ofmj-button
is now set to1.2
by default to avoid any issue with multi-line buttons thanks to @rogierslag - The
text-transform
attribute onmj-link
is now correctly validated by the mjml-validator (#596) - The
alt
attribute onmj-image
is now set to13px
by default instead of0px
to avoid it from being invisible
3.3.3-beta.3
Features
- Adding new
mj-preview
tag inmj-head
to set an email preview that will be displayed in email clients but hidden from the body of the email (cf https://litmus.com/blog/the-ultimate-guide-to-preview-text-support) - Revert "fully clickable" button because of incompatibility in several email clients
Fixes
mj-text
now only adds the class on the roottr
when usingcss-class
- MJML-Validator should no longer return a validation error about
css-class
being invalid
3.3.3-beta.1
Features
mj-button
s are now fully clickable, including in the area set withinner-padding
. Thanks a lot to @guillaumebreux for this contribution (#557)mj-button
has now a default line-height of1.2
to avoid any issue with multi line buttons thanks to @rogierslagmj-button
,mj-image
,mj-carousel-image
,mj-location
,mj-navbar
andmj-social
now support therel
attribute (#533)- All MJML body tags now support the
css-class
attribute. The class name set incss-class
will be passed to the root HTML element created from the MJML tag (#532) mj-social
now supports theborder-radius
attribute (#556)
Fixes
- The
text-transform
attribute onmj-link
is now correctly recognized by the mjml-validator (#596) - The
alt
attribute onmj-image
doesn't have a defaultfont-size
set to0px
anymore but to13px
instead
3.3.2
3.3.1
3.3.0
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
3.3.0-beta.8
Fixes
- Fix numeral on mjml-invoice