Skip to content

Releases: mjmlio/mjml

3.1.0

06 Dec 13:40
Compare
Choose a tag to compare

Features

  • Make your email interactive with brand new mj-carousel !

API

  • Add or remove custom rules on mjml-validator with .mjmlconfig
  • MJML is now embeddable inside Atom with every features

Fixes

  • Fix some non illegal attributes see #424
  • Fix double unit on VML background for mj-section #422
  • Line Height supports now unitless line-height in supported components #390
  • $ no longer duplicate content #449
  • Some documentation fixes ex #446
  • Some fix to be used inside a browser environment

Soon to be deprecated

  • mj-list will be deprecated in the next release
  • mj-html will be deprecated in the next release

3.0.2

07 Nov 15:42
Compare
Choose a tag to compare

Fixes

  • border-radius on mj-section should now work
  • mj-invoice should now render correctly

3.0.1

21 Oct 13:20
Compare
Choose a tag to compare

Fixes

  • Default css should be applied correctly
  • Fix a a bug with NaN padding by @blaze33
  • Add some missing default parameters for MJML validation

API

  • documentParser : add attributes params

3.0.0

18 Oct 13:48
Compare
Choose a tag to compare

Features

  • mj-validator provides validation to MJML documents with 3 levels ( skip/soft/strict)
  • mj-include is now recursive, so you can use mj-include inside mj-include(related: https://i.imgflip.com/1beg53.jpg)
  • New tag mj-style can be used in mj-head to add CSS that will be inlined in the generated HTML. mj-style doesn't support media queries at the moment.
  • mj-fontnow enables users to override default MJML fonts like Roboto
  • mj-section now support the direction attribute to change the way columns display on desktop
  • mj-social now supports inner-padding to add padding between social networks
  • mj-button now supports the border-left/right/bottom/top and width attributes
  • mj-section now supports the border-left/right/bottom/top attributes
  • mj-column now supports the border-left/right/bottom/top attributes

API Update

  • mjml & mj-body is now mandatory, old MJML syntax with only mj-body is removed
  • mjml2html and MJMLRenderer will not return a string anymore, it will return an object with : { errors, html }

Fixes

  • Fixed a bug when registering twice a MJML element with the same name
  • mj-button should now render correctly on old outlook ( 2000/2003)
  • Glob pattern ( *.mjml ) should now work in mjml-cli
  • When importing a MJML file using mj-include, the .mjml extension is optional
  • .mjmlconfig should now finally accepts relative path 🎉
  • Fixed the package.json version lockout to download a specific version
  • Fixed mj-group so it renders correctly on Outlook 2000/2003 & background-color works as expected

3.0.0-beta.2

05 Oct 09:33
Compare
Choose a tag to compare

See list of changes in #321

3.0.0-beta.1

28 Sep 09:17
Compare
Choose a tag to compare

See list of changes in #321

2.3.3

31 Aug 14:02
Compare
Choose a tag to compare

Features

Fixes

  • Fix Mj-Button ghost button, padding fix introduce in 2.3.1 broke border
  • Fix Mj-Hero align/padding were not applied #366
  • mj-location href is now documented
  • Remove a mj-hero warning
  • Mj-Hero supports vertical-align thanks to @tothandras

2.3.2

16 Aug 10:52
Compare
Choose a tag to compare

Fixes

  • Bug with $2/$1/$0 that duplicate some content see #341
  • Bug with custom component and mj-column thanks to @martinhorsky see #342

2.3.1

28 Jul 12:36
Compare
Choose a tag to compare

Fixes

  • React Warning
  • Padding on mj-button thanks to @g0ddish PR #331

2.3.0

11 Jul 11:14
Compare
Choose a tag to compare

Features

  • MJ Button supports ghost buttons #116 ! + some new attributes on it ( inner-padding text-transform )
  • Mj Font to import custom font when used #80
  • Mj Title to set HTML title !
  • Mj Table has some new attributes (cellpadding cellspacing see #202 )
  • Mj Image has now border-radius ( not supported everywhere ) and title attributes
  • Mj Include allows you to import partial MJML file
  • Mj Head Attributes has now a mj-all that update style for every MJML component

API Update

  • No more setMjCssClasses or setDefaultAttributes, they are now properties on MJMLRenderer
  • ColumnElement is no longer needed
  • Default HTML container can now be modified by Mj-Head elements

Fixes

  • Cli now adding .html only if output html has no extension see #262
  • Multiple MJ-Classes should now work as intended
  • Element as MjText/MjImage... can be rendered outside a mj-column without surrounding td
  • Errors from .mjmlconfig give now more relevant informations