1.0.4 • Published 6 years ago

parse-markdown-links v1.0.4

Weekly downloads
3,585
License
MIT
Repository
github
Last release
6 years ago

parse-markdown-links

Get all links from a markdown string.

npm Node version Build Status JavaScript Style Guide

Piggy backs on top of remarkable to get a list of parsed tokens corresponding to links.

Install

$ npm i parse-markdown-links -S

Usage

const parse = require('parse-markdown-links')
console.log(parse('[a link](https://woohoo.com)\n![image](image.png)'))
// [ 'https://woohoo.com' , 'image.png' ]

API

parse(text)

Takes a markdown string and returns an array of links.

License

MIT

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago