markdown icon indicating copy to clipboard operation
markdown copied to clipboard

Is there a way to preserve successives linebreaks ?

Open imGok opened this issue 1 year ago • 2 comments

Hi, I'm using the library in my app and I noticed multiple linebreaks in a row are replaced by 1 (br tag). Is there a way to keep the amount of linebreak after the markdown ? image

Thank you

imGok avatar Jan 19 '24 11:01 imGok

I'm not sure if there is a way. You can look over the CommonMark specification for the rules. Maybe something in Hard Line Breaks: https://spec.commonmark.org/0.30/#hard-line-breaks

srawlins avatar Jan 19 '24 15:01 srawlins

Thank you for your answer

imGok avatar Jan 22 '24 12:01 imGok