mjmlio / mjml

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

Bulletproof list #2520

Open V1co opened 1 year ago

V1co commented 1 year ago

Hello.

I am using MJMl for work and I find difficult to create list which will be consistent across all mailboxes including Outlook which is usually causing issues. At the moment I need to fix bugs post build but as we all now post build is really bad practice. I've seen that there are dependencies like this one: https://premail.dev/docs/components/mjml-bullet-list/

I was not using it but if it would be working well maybe it should be included in official mjml components or community components? Thank you

iRyusa commented 1 year ago

In previous release we've deprecated and removed bullet-list as most of the time you can "avoid" using them. Only issue I have is it's a bit heavy to write :

<mj-text> something... bla bla html</mj-text>
<mj-list><mj-li>...</mj-li><mj-li>...</li></mj-list>
<mj-text> something... bla bla html</mj-text>

Plus the mj-list render a table + a new list for each bulletpoint I'm not sure this is the right approach here.

I know that https://lists.cm/ has code for that, and we maybe need to do something in mj-text to identify and replace the list but that's not an easy thing to do :D

NickHatBoecker commented 1 year ago

@iRyusa I cannot find mj-list in documentation. Is there a reason for this? Maybe not fully supported yet?

iRyusa commented 1 year ago

In previous release we've deprecated and removed bullet-list as most of the time you can "avoid" using them.

mj-list was in MJML3 and removed in MJML4.

manvydas-tbol commented 2 weeks ago

@iRyusa it was removed, but is there a guide what is the best practice to achieve same result?