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

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

Open
manojdots opened this issue Sep 20, 2024 · 1 comment
Open

Comments

@manojdots
Copy link

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
Copy link
Owner

claus commented Sep 21, 2024

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.

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

2 participants