dart-lang / markdown

A Dart markdown library
https://pub.dev/packages/markdown
BSD 3-Clause "New" or "Revised" License
440 stars 200 forks source link

Is there a way to preserve successives linebreaks ? #575

Open imGok opened 5 months ago

imGok commented 5 months ago

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

srawlins commented 5 months ago

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

imGok commented 5 months ago

Thank you for your answer