Bootstrap 5 Page Builder

Building pages without coding

Back to Bootstrap 5 Page Builder Support

utopotam64594
utopotam64594

When used as a Frontend builder for partial with attached Post component from Rainlab.Blog plugin, there is no of preservation of line breaks in the content of the post. The instruction {{ post.content_html|raw }} doesn't work properly in the post block. I tried to add nl2br filter {{ post.content_html|raw|nl2br }} and got some improvements. But this is a hack and it also doesn't completely fix rendering of code fences in markdown.

import time
time.sleep(1)

Renders in one line as:

import time time.sleep(1)

P.S. Same problem with Bootstrap 4 builder

Vladimir
Vladimir

Hi!
I tried to reproduce the situation.
Everything works correctly for me.
https://www.youtube.com/watch?v=oJFPE26SoKY

utopotam64594
utopotam64594

Sorry, perhaps I should have written 'new line symbols' and not 'line breaks'. All works fine with <br> tags, but \n disappears, although it is present in the database. And I think that I discovered why: https://stackoverflow.com/a/9388418 I couldn't find where str_get_html is called for render and just changed $stripRN to false in vendor lib and it worked!

1-3 of 3