email-builder-js icon indicating copy to clipboard operation
email-builder-js copied to clipboard

Invalid HTML within Text Block with Markdown enabled breaks the builder

Open alexc-harrap opened this issue 11 months ago • 1 comments

Seems there is a bug with the Markdown option in the Text Block where it will fatally break the builder if it tries to render invalid html.

Steps to reproduce:

Visit the demo playground: https://usewaypoint.github.io/email-builder-js/#

Add new Text Block

Image

Wrap text in <a> tags and enable Markdown

Image

Now try add a href to the <a> tag. The builder will break once you type "href"

Image

alexc-harrap avatar Jan 23 '25 11:01 alexc-harrap

I realise the Markdown uses GitHub style markdown which may be the issue here. This was not apparent from the ReadMe or within the builder UI itself how the Markdown feature works. (I found out though one of the past issues https://github.com/usewaypoint/email-builder-js/issues/103)

alexc-harrap avatar Jan 23 '25 15:01 alexc-harrap