Files: de7b121198e402b391580433b43572a993304c49 / README.md
624 bytesRaw
ssb-mentions
extract the mentions in a ssb message, just using the markdown. this is mostly compatible with the way patchwork does it. but simpler, because it relies only on the markdown.
var mentions = require('ssb-mentions')
var ary = mentions(markdown, opts)
options
bareFeedNames
(boolean, default false): if true, include stub mention objects for bare feed name mentions, in the format{name: "NAME", link: "@"}
. these can then have thelink
filled in with a feed id, to make a "patchwork-style mention", or be removed from the mentions array before publishing.
License
MIT
Built with git-ssb-web