2.0.0
Features
- MJML is now a mono repo project with multiple packages
mjml-core
for the engine that renders MJML componenentmjml-cli
for the cllient, based on mjml-core interfacemjml
is a standlone mjml client with standard MJML lib (column/section/body/...)- One standalone package for each component
- API te create a component is now much easier, and allow
postRender
hook with full HTML document. Document can be modified through cheerio mjml
root tag have been implemented #78 allows #157
<mjml>
<mj-body>
<mj-container>
...
</mj-container>
</mj-body>
</mjml>
Note that previous notation is deprecated but still available
<mj-body>
...
</mj-body>
.mjmlconfig
allows you to define a list of included component that will be required bymjml-core
{
"packages": [
"mjml-body",
"mjml-section"
]
}
- Upgrade React version to v15.0.1, adding a unit on each CSS property
- Expose global helpers on mjml-core
Fix
- Fix #153 : comments inside a ending tags are back
align
on column element is now atext-align
ontd
- Remove
min-width
on a column for pixel layout. It will fix browser and Mail on iOS render - Fix when you use mjml React component with childrens