Skip to content

Commit

Permalink
Also check special external-link element link props
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeorpinel authored Jun 18, 2021
1 parent bea28de commit 52961f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scrapeLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const scrapeFromString: (filePath: string, content: string) => string[] = (
/\[.*?\]:\s*\n?\s*(.*)/gm,
(x) => x[2] || x[1]
);
const hrefLinks = regexMap(content, /href="(.*?)"/gm);
const otherLinks = regexMap(content, /(href|link|image)="(.*?)"/gm);
const links = mdLinks.concat(mdRefLinks).concat(hrefLinks);
return links
? links
Expand Down

0 comments on commit 52961f9

Please sign in to comment.