mjmlio / mjml

MJML: the only framework that makes responsive-email easy
https://mjml.io
MIT License
17.1k stars 961 forks source link

Liquid template code is getting minified #2737

Open arunmecom opened 1 year ago

arunmecom commented 1 year ago

When I am using Shopify liquid code inside <mj-raw> in output file its getting minified (one liner) Input

Screenshot 2023-08-30 at 12 12 50 AM

Output

Screenshot 2023-08-30 at 12 13 27 AM

Is there any way to to get the output liquid code similar to input( formatted code ) Expected behavior

Screenshot 2023-08-30 at 12 19 52 AM
iRyusa commented 1 year ago

Can you try to wrap them in <!-- htmlmin:ignore --> this should prevent any minification for a specific block

arunmecom commented 1 year ago

@iRyusa I tried <!-- htmlmin:ignore --> also its not working

Input

Screenshot 2023-08-30 at 10 38 15 AM

Output

Screenshot 2023-08-30 at 10 38 38 AM
iRyusa commented 1 year ago

It might not be related to minifier then, i'll see what i can do 🤔

thomas-wolschon commented 3 weeks ago

Not sure if you or anyone else is still running into this, but I had to move my variables to within in order to get them to render correctly on their own lines.