russross / blackfriday

Blackfriday: a markdown processor for Go
Other
5.41k stars 596 forks source link

`AutoLink` becomes turned off when running with `HardLineBreak` ext #688

Open inliquid opened 2 years ago

inliquid commented 2 years ago

When I run blackfriday this way

b := blackfriday.Run([]byte(in))

which implicitly enables common extensions, AutoLink is also working and links such as

https://site.com

rendered as <a href=...>https://site.com</a>. However when blackfriday is run with HardLineBreak and it's supposed that common extensions also enabled

b := blackfriday.Run([]byte(in), blackfriday.WithExtensions(blackfriday.HardLineBreak))

AutoLink doesn't work anymore and links are not rendered.

I didn't check whether other common extensions stop working or not.