usewaypoint/email-builder-js

New lines aren't being applied

nicktc opened this issue · 3 comments

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

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.

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!

Cool!