You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble working out a way to use process_inlines in combination with with filters like linebreaks. Consider these three scenarios:
{% process_inlines item.story %}
Works, but other text in item.story does not get | linebreaks functionality.
{% process_inlines item.story as story %}
{{story|linebreaks|safe}}
linebreaks in text happen correctly but video embed code is displayed, not rendered.
{% process_inlines item.story as story %}
{{story|safe|linebreaks}}
linebreaks work and video embed is rendered, but if you view source you'll see that br tags are inserted after each line of embed code, and the block is inside a div inside a paragraph.
Is there a way to prevent linebreaks from operating on the code generated by process_inlines?
Thanks.
The text was updated successfully, but these errors were encountered:
I'm having trouble working out a way to use process_inlines in combination with with filters like linebreaks. Consider these three scenarios:
{% process_inlines item.story %}
Works, but other text in item.story does not get | linebreaks functionality.
{% process_inlines item.story as story %}
{{story|linebreaks|safe}}
linebreaks in text happen correctly but video embed code is displayed, not rendered.
{% process_inlines item.story as story %}
{{story|safe|linebreaks}}
linebreaks work and video embed is rendered, but if you view source you'll see that br tags are inserted after each line of embed code, and the block is inside a div inside a paragraph.
Is there a way to prevent linebreaks from operating on the code generated by process_inlines?
Thanks.
The text was updated successfully, but these errors were encountered: