tcort / markdown-link-extractor

extracts links from markdown texts
ISC License
23 stars 20 forks source link

Return array whit href and text-content #18

Closed DianaCato closed 3 years ago

DianaCato commented 3 years ago

Hello,

I was using this module for a project, for which it was necessary for me to include the "text-content", as another return value. Hope you can consider it.

Greetings!

NicolasMassart commented 3 years ago

@tcort, this is a breaking change. It looks like the array version of #9

tcort commented 3 years ago

I've added an extended output mode. It includes the text (along with other information) and isn't a breaking change. Thanks for your input and I hope this helps you with your project. I'll be cutting a new release shortly.