yarn mjml 3.3.0

latest releases: 5.0.0-alpha.4, 5.0.0-alpha.3, 5.0.0-alpha.2...
7 years ago

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 supports inline="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 to mjml2html

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-includeinside an mj-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 if mj-head was used

Don't miss a new mjml release

NewReleases is sending notifications on new releases.