Markdown Links Library is a JavaScript Library that can be used to extract links from Markdown texts.
Returns an array of objects that contains the urls and the links.
getLinksFromMd(markdown);
$npm install md-links-library
$node
> let extract = require("md-links-library")
> extract("[foo](http://foo.com/foo)");
// [ { href: 'http://foo.com/foo', text: 'foo' } ]
$node
> let extract = require("md-links-library")
> extract("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut [labore](https://en.wiktionary.org/wiki/labore) et [dolore](https://en.wiktionary.org/wiki/dolore) et [foo](http://foo.com) magna aliqua.");
// [
// { href: 'https://en.wiktionary.org/wiki/labore', text: 'labore' },
// { href: 'https://en.wiktionary.org/wiki/dolore', text: 'dolore' },
// { href: 'http://foo.com', text: 'foo' }
// ]