2.5.0 • Published 2 years ago

remark-ssb-mentions v2.5.0

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
2 years ago

remark-ssb-mentions

Extract the mentions in an SSB message, just using the markdown. This is mostly compatible with the way Manyverse does it, but simpler, because it relies only on the markdown.

const mentions = require('remark-ssb-mentions')

const ary = mentions(markdown, opts)

This is basically the same as ssb-mentions, but implemented with Unified instead of ssb-marked.

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.

License

MIT

2.5.0

2 years ago

2.3.0

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.4.0

2 years ago

2.1.0

3 years ago

2.0.0

4 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago