Socket
Book a DemoInstallSign in
Socket

markdown-summary

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-summary

extract summary/preview text from markdown

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
430
-26.12%
Maintainers
1
Weekly downloads
 
Created
Source

markdown-summary

extract useful things like a title, a summary, and a preview image from a freeform markdown post.

var msum = require('markdown-summary')

var title = msum.title(text) //the first line, or the first 80 chars or so
var summary = msum.summary(text) //the next line, or the rest of the first line (if a whole paragraph)
var image = msum.image(text) //the first embedded image ![...](...)

License

MIT

FAQs

Package last updated on 28 Sep 2017

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