wooorm / markdown-rs

CommonMark compliant markdown parser in Rust with ASTs and extensions
https://docs.rs/markdown/1.0.0-alpha.21/markdown/
MIT License
971 stars 53 forks source link

Add support for automatic hard breaks #67

Open rambip opened 1 year ago

rambip commented 1 year ago

Some very popular markdown tools (I know about obsidian.md, but it is probably not the only one) have an option to toggle true hard breaks, meaning any return character in the markdown will produce a html
tag.

It would be really nice to have that option in markdown-rs too !

wooorm commented 1 year ago

I recently discover GFM works the same way, at the syntax-level, so I think that's an okay idea.

alex35mil commented 1 month ago

Came to create the same issue. There's a LineEnding enum, but apparently, it's not related to parsing options, and there's no way to parse line feed into mdast::Break.