-
Notifications
You must be signed in to change notification settings - Fork 1
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
\n to br #12
Comments
I am not sure I understand what you want. Could you give me two code examples? One for before (the current output) and one for the output you want, both in HTML. Also what will the benefit of this be? To make things simple I am mostly trying the match the official React plugin from Strapi. |
In the output below, there is a \n in the text-property, inside a paragraph. The \n is not replaced by a
|
hi @MarijnFK so i found strapi/blocks-react-renderer#42, we'll do it when it hits release. |
@reslear awesome, thanks for the reply |
This comment was marked as off-topic.
This comment was marked as off-topic.
@monolithed thanks for the workaround. Unfortunatly it is a React-example, this is a vue-package. Maybe you can update it to match the vue-syntax? |
@MarijnFK my bad, I don't use Strapi with Vue, but the |
In the strapi-blocks it is possible to input a shift-enter, which results in a \n
I see there is a
option for empty paragraphs, maybe it's possible to replace line-breaks inside the 'text' property to
<br>
aswell? This way we can place<br>
inside a<p>
tagThe text was updated successfully, but these errors were encountered: