md-imgs

1.0.1 • Public • Published

get-images-md

get all images node in markdown

var getImg = require('md-imgs')
var input = `
![a](http://leeon.im/image1)
![b](http://leeon.im/image2)
![c](http://leeon.im/image3)
`
var srcList = getImg(input)
console.log(srcList)
/**
[
  'http://leeon.im/image1',
  'http://leeon.im/image2',
  'http://leeon.im/image3'
]
**/

get

Readme

Keywords

Package Sidebar

Install

npm i md-imgs

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

1.59 kB

Total Files

4

Last publish

Collaborators

  • leeonfield