usewaypoint / email-builder-js

A free and open-source block-based email template builder.
https://emailbuilderjs.com
MIT License
308 stars 92 forks source link

New lines aren't being applied #84

Closed nicktc closed 1 month ago

nicktc commented 3 months ago

When using a text block it would be helpful if it supports new lines. Whenever I add a new line in the text, it's not applied in the design. Not sure if this is a conscious decision? Because of the not supporting of new lines, most blocks have to be converted to a HTML block, which feels overkill.

Scherm­afbeelding 2024-04-14 om 09 58 05 Scherm­afbeelding 2024-04-14 om 09 58 09
jordanisip commented 3 months ago

At the moment, we made the decision to use plain text for the text blocks. We may consider adding Markdown (like on our Pro builder) in the future – either as a separate block or as part of the text block.

jordanisip commented 1 month ago

Good news, we've added a 'Markdown' option on Text blocks to solve this. When turned on, it will process the text through a Markdown processor which will respect the line breaks and allow for basic formatting syntax.

CleanShot 2024-05-31 at 16 45 41

Hope that helps!

nicktc commented 1 month ago

Cool!