yarn mjml 3.0.0

latest releases: 5.0.0-alpha.1, 5.0.0-alpha.0, 4.15.3...
7 years ago

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

Don't miss a new mjml release

NewReleases is sending notifications on new releases.