0.0.1 • Published 4 months ago

@fedikit/remark-webfinger-mentions v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@fedikit/remark-webfinger-mentions

Remark plugin to replace acct mentions with links

Use

import { remark } from 'remark'
import { remarkWebfingerMentions } from '@fedikit/rehype-custom-emoji'

const file = await remark()
  .use(remarkWebfingerMentions)
  .process('Hello, @mozilla@mozilla.social!')

// Hello, [@mozilla@mozilla.social](https://mozilla.social/@mozilla)!\n
console.log(String(file))