Extracts links from markdown texts.
$ npm install --save markdown-link-extractor
Parameters:
markdown
text in markdown format.Returns:
const { readFileSync } = require('fs');
const markdownLinkExtractor = require('markdown-link-extractor');
const markdown = readFileSync('README.md', {encoding: 'utf8'});
const links = markdownLinkExtractor(markdown);
links.forEach(link => console.log(link));
Code that looked like this:
const { links } = markdownLinkExtractor(str);
Should change to this:
const links = markdownLinkExtractor(str);
![]()
no longer supportednpm test
See LICENSE.md