claus / storyblok-rich-text-react-renderer

A React renderer for Storyblok rich text content
MIT License
87 stars 16 forks source link

Issue with <br /> Tag in Rich Text Field Not Rendering Correctly #50

Open manojdots opened 1 month ago

manojdots commented 1 month ago

Hello

I hope this message finds you well. I am currently experiencing an issue with the rich text field in Storyblok, where line breaks inserted using
are not being rendered correctly as HTML
tags in the front end. Instead, they appear as string literals, resulting in improper formatting of content.

Here are the specific details:

Issue: When using the
tag in the rich text editor, it doesn't get converted to a proper HTML
tag in the rendered output. Expected Behavior: The line break should be rendered as a
tag in the output, allowing content to display with proper spacing. Current Behavior: The
tag is not interpreted, leading to continuous text without breaks. I am using the storyblok-rich-text-react-renderer library in my React project. Despite trying custom text resolvers to handle new line characters and other potential solutions, the issue persists.

I would greatly appreciate any guidance or solutions you could provide to resolve this issue.

Thank you for your time and assistance. I look forward to your response.

Best regards,

claus commented 1 month ago

Hi @manojdots, do you have a demo online somewhere that shows the problem, so i can reproduce it? Line breaks should work just fine with storyblok-rich-text-react-renderer.