get-md-image
get image from markdown article
Install
npm install --save get-md-image
Usage
; const input = `# title description ![meow](http://placekitten.com/g/300)`; alt; // meowsrc; // http://placekitten.com/g/300html; // <img src="http://placekitten.com/g/300" alt="meow" />; // undefined ¯\_(ツ)_/¯
API
getImage(input)
input
Required
Type: String
Markdown string.
Related
- get-md-content - get content from markdown article
- get-md-date - get date from markdown article
- get-md-desc - get description from markdown article
- get-md-title - get title from markdown article
License
MIT © Vladimir Starkov