Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty <p></p> tags right before embedded entry block which is last content of the rich text are not recognized as empty para tags #484

Open
swapnil1689 opened this issue Jul 10, 2023 · 0 comments

Comments

@swapnil1689
Copy link

swapnil1689 commented Jul 10, 2023

The richtext has some text and in the end there is a empty paragraph and then an embedded entry linked. When the rich text convert is used to convert rich text to html, the html looks something like this at the end.

<p></p><img src=\"embedded-entry-block:73Q3j01NWmasala\" translate=\"false\" />

When I try to convert the html back to rich text using @contentful/rich-text-from-markdown, the

tags are not matched becoz of which I have to ignore it and in return only response having the embedded entry. How can this be handled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant