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
In the following HTML example: One<br /><b>Two</b><br /><i>Three</i><br /><i><b>Four</b></i><br /><br />New <b>Paragraph</b>!
should render with a line break after the 'Four' and before the 'New Paragraph' is rendered. However, I've noticed when the HTML string is parsed, the second line break is stripped out, so the render ends up like this:
instead of this:
Can this functionality be switched off, or is there a bug present?
EDIT: I've found this function in the source code which seems to the be the culprit:
@danielallsopp You can see in my recent PR here I added a policy to modify line break behaviour. #37
For me I found the behaviour was adding more line breaks that I preferred. Maybe there could be another line break policy added that makes no changes to the built-in line breaks. (call it raw or something like that?).
In the following HTML example:
One<br /><b>Two</b><br /><i>Three</i><br /><i><b>Four</b></i><br /><br />New <b>Paragraph</b>!
should render with a line break after the 'Four' and before the 'New Paragraph' is rendered. However, I've noticed when the HTML string is parsed, the second line break is stripped out, so the render ends up like this:
instead of this:
Can this functionality be switched off, or is there a bug present?
EDIT: I've found this function in the source code which seems to the be the culprit:
but I can't find anyway of switching it off, or overriding the functionality.
The text was updated successfully, but these errors were encountered: