parse-markdown-links
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/parse-markdown-links package

1.0.4 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    2,405
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    2,405
  • 1.0.3
    2
  • 1.0.2
    3
  • 1.0.1
    1
  • 1.0.0
    2

Package Sidebar

Install

npm i parse-markdown-links

Weekly Downloads

1,131

Version

1.0.4

License

MIT

Unpacked Size

2.3 kB

Total Files

4

Last publish

Collaborators

  • ralphtheninja