Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 696 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 696 Bytes

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)