Skip to content

fedikit/unified

Repository files navigation

fedikit/unified

Collection of unified plugins by FediKit project.

Rehype plugin to support custom emoji (emojo)

import { rehype } from 'rehype'
import { rehypeCustomEmoji, all } from '@fedikit/rehype-custom-emoji'

await rehype()
  .use(rehypeCustomEmoji, {
    emojis: await all('https://mastodon.social')
  })

Remark plugin to replace acct mentions with links

import { remark } from 'remark'
import { remarkWebfingerMentions } from '@fedikit/remark-webfinger-mentions'

await remark()
  .use(remarkWebfingerMentions)