Makes a template following the MJML 3 syntax compatible with MJML 4.
Clone the repo & npm install
or install via NPM: npm install mjml-migrate
migrate <input> <output>
-
mj-container
is removed and its attributes are passed tomj-body
- Unitless values are converted to
px
-
mj-social
's syntax is replaced with the v4 syntax - Unsupported tags (defined in
unavailableTags
inconfig.js
) are removed