Name: ssb-mentions
Owner: Secure Scuttlebutt Consortium
Description: extract the mentions in a ssb message, just using the markdown.
Created: 2016-03-06 05:11:56.0
Updated: 2018-05-21 17:24:20.0
Pushed: 2018-04-20 11:41:34.0
Size: 16
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
mentions = require('ssb-mentions')
ary = mentions(markdown, opts)
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 the link
filled in with a
feed id, to make a “patchwork-style mention”, or be removed from the mentions
array before publishing.emoji
(boolean, default false): if true, include emoji in the mentions
array, in the form {name: "NAME", emoji: true}
.MIT