@fedikit/remark-webfinger-mentions

0.0.1 • Public • Published

@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))

/@fedikit/remark-webfinger-mentions/

    Package Sidebar

    Install

    npm i @fedikit/remark-webfinger-mentions

    Weekly Downloads

    2

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    4.21 kB

    Total Files

    5

    Last publish

    Collaborators

    • kwaa