mjml icon indicating copy to clipboard operation
mjml copied to clipboard

Liquid template code is getting minified

Open arunmecom opened this issue 1 year ago • 3 comments

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

arunmecom avatar Aug 30 '23 03:08 arunmecom

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

iRyusa avatar Aug 30 '23 07:08 iRyusa

@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

arunmecom avatar Aug 30 '23 13:08 arunmecom

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

iRyusa avatar Sep 15 '23 09:09 iRyusa