🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

parse-markdown-links

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-markdown-links

Get all links from a markdown string

1.0.4
latest
Source
npm
Version published
Weekly downloads
8.4K
-11.26%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

markdown

FAQs

Package last updated on 10 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts