ssb-mentions

0.5.2 • Public • Published

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 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}.

License

MIT

/ssb-mentions/

    Package Sidebar

    Install

    npm i ssb-mentions

    Weekly Downloads

    10

    Version

    0.5.2

    License

    MIT

    Unpacked Size

    8.93 kB

    Total Files

    7

    Last publish

    Collaborators

    • mmckegg
    • christianbundy
    • dominictarr
    • marak
    • cel
    • ahdinosaur
    • staltz
    • mixmix
    • arj03
    • cryp7ix