blackfriday icon indicating copy to clipboard operation
blackfriday copied to clipboard

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

Open inliquid opened this issue 4 years ago • 0 comments

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.

inliquid avatar Aug 15 '21 12:08 inliquid