Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leeonfield/get-images-md
get all images node in markdown
https://github.com/leeonfield/get-images-md
Last synced: about 1 month ago
JSON representation
get all images node in markdown
- Host: GitHub
- URL: https://github.com/leeonfield/get-images-md
- Owner: leeonfield
- Created: 2019-09-12T04:34:07.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T04:42:52.000Z (over 1 year ago)
- Last Synced: 2024-09-30T01:01:20.286Z (about 2 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# get-images-md
get all images node in markdown```js
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