mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
UseSoftlineBreakAsHardlineBreak() doesn't work?
#311
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @denys-olleik on GitHub (Jul 3, 2019).
I see absolutely no difference with the following...
Output...
Expected output...
I thought at some point it worked and added
</br>, no?@MihaZupan commented on GitHub (Jul 3, 2019):
If you test
"test\r\ntest", you will see the difference as that is a line break inside of a paragraph.What is happening in your example is that you have multiple newlines which means you're splitting the paragraph into two.
@denys-olleik commented on GitHub (Jul 3, 2019):
Ok, maybe I misunderstood what that UseSoftlineBreakAsHardlineBreak does. But I'm looking for a way to preserve spaces between my paragraphs that I get back from my textarea.
@MihaZupan commented on GitHub (Jul 3, 2019):
The extension does what you think it does (insert
<br>to force a new-line being rendered in the browser), but having a blank line between text in markdown means that that ends the paragraph and all blank lines are discarded.From the top of my head I can only think of inserting
<br>tags into the document manually where you want more empty lines.