Releases: mjmlio/mjml
Releases · mjmlio/mjml
1.3.0
Features
- MJML can now be used in a isomorphic environment !
mjml
cli supports i/o streams see #91ColumnElement
such astext, image, list, ...
now supportscontainer-background-color
- MJML support Open Sans, Droid Sans, Lato and Roboto fonts and, fonts are imported only when used
- Add support to share and non-share url for
mj-social
, add:url
to disable share link for a social network :<mj-social display="twitter:url facebook google:url" />
New components
mj-invoice
: Display a table of items with calculated total price.mj-table
: This tag allows you to display table and filled it with data.mj-location
: Display a Google Maps location link
Bug fixes
mj-raw
tags should no longer parse incorrect tags, see #25- Custom MJ Element with empty content or string content no longer make MJML crash, see #62
mj-button
default attributes has been updated to match other element, see #109 and #69max-width
onmj-image
has been removed see #86color
is no longer inherited and see #105mj-social
now have a padding between fortext-mode
false- Fix
font-size
formj-html
VerticalAlign
for column is now applied on Outlook client- Use
width
formj-divider
#77 mj-divider
should now use%
instead ofpx
for width + fix #125- Outlook conditional tags should behave correctly with
%
#130 - Divider has a incorrect padding bottom on Outlook 2013 see #137
1.3.0-beta4
- Clean code
- Fix CDATA for
mj-raw
- Fix
font-size
formj-html
- Use
width
formj-divider
1.3.0-beta3
- MJML support Open Sans, Droid Sans, Lato and Roboto fonts
- Fonts are imported only when it is used
mj-column
'svertical-align
is now applied on outlook too see #7
1.3.0-beta
- MJML can now be used in a isomorphic environment !
mj-raw
tags should no longer parse incorrect tags, see #25- Custom MJ Element with empty content or string content no longer make MJML crash, see #62
mj-button
default attributes has been updated to match other element, see #109 and #69max-width
onmj-image
has been removed see #86color
is no longer inherited and see #105mj-social
now have a padding between fortext-mode
falsemjml
cli supports i/o streams see #91
1.2.1
1.2.0
- Padding syntax rework
- Elements with padding can now be written with
padding
syntax inpx
, e.g.padding: 20px 0
is now a valid thing! padding-left|-top|-right|-bottom
now overridepadding
definition : Hello` will now have a top padding of 35px and a bottom padding of 20px
- Elements with padding can now be written with
mj-social
receive a heavy lifting thanks to @hteumeuleu 's work- New syntax: you can now reorder and choose what social network you want to display.
<mj-social display="twitter facebook google" />
will display only twitter, facebook and google, in this particular order. base-url
has been added to allow self-hosted icons
- New syntax: you can now reorder and choose what social network you want to display.
mj-section
supportstext-align
- Fixed a crash when empty
mj-text
Body width, Column background Color
- Adding
width
property onbody
- Now
column
supportsbackground-color
! - Fix a render issue with
image
on iOs
Remove HTMLTidy
- No more escaped characters caused by htmltidy
- Margin on
divider
is now fixed
Bug fixes + typos
- Update MjDivider for a better render on Outlook & Gmail
- MjImage should behave better with no
width
attributes - Added a default
background-size
on section to render properly - Update lint rules
Cli fix
- Typo in command line interface: fixed