Releases: mjmlio/mjml
Releases · mjmlio/mjml
3.0.2
3.0.1
3.0.0
Features
mj-validatorprovides validation to MJML documents with 3 levels ( skip/soft/strict)mj-includeis now recursive, so you can usemj-includeinsidemj-include(related: https://i.imgflip.com/1beg53.jpg)- New tag
mj-stylecan be used inmj-headto add CSS that will be inlined in the generated HTML.mj-styledoesn't support media queries at the moment. mj-fontnow enables users to override default MJML fonts like Robotomj-sectionnow support thedirectionattribute to change the way columns display on desktopmj-socialnow supportsinner-paddingto add padding between social networksmj-buttonnow supports theborder-left/right/bottom/topandwidthattributesmj-sectionnow supports theborder-left/right/bottom/topattributesmj-columnnow supports theborder-left/right/bottom/topattributes
API Update
mjml&mj-bodyis now mandatory, old MJML syntax with onlymj-bodyis removedmjml2htmlandMJMLRendererwill 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-buttonshould 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.mjmlextension is optional .mjmlconfigshould now finally accepts relative path 🎉- Fixed the
package.jsonversion lockout to download a specific version - Fixed
mj-groupso it renders correctly on Outlook 2000/2003 &background-colorworks as expected
3.0.0-beta.2
See list of changes in #321
3.0.0-beta.1
See list of changes in #321
2.3.3
Features
- Add
presentation="role"for almost everytableto help with accessibility http://blog.rebelmail.com/accessibility-in-email-part-ii/
Fixes
- Fix Mj-Button ghost button, padding fix introduce in
2.3.1broke border - Fix Mj-Hero align/padding were not applied #366
mj-locationhrefis now documented- Remove a
mj-herowarning Mj-Herosupportsvertical-alignthanks to @tothandras
2.3.2
2.3.1
2.3.0
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 cellspacingsee #202 ) - Mj Image has now
border-radius( not supported everywhere ) andtitleattributes - Mj Include allows you to import partial MJML file
- Mj Head Attributes has now a
mj-allthat update style for every MJML component
API Update
- No more
setMjCssClassesorsetDefaultAttributes, 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
.htmlonly 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-columnwithout surroundingtd - Errors from
.mjmlconfiggive now more relevant informations
2.2.0
Features
mj-groupallows you to control how yourmj-columnbehave on mobile! Look at https://github.com/mjmlio/mjml/blob/master/packages/mjml-group/README.md for more informationsmj-linknow supports thetext-transformattribute