1.0.1 • Published 4 years ago

remark-plugin-twemoji v1.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

remark-plugin-twemoji

Remark plugin to replace your emoji with twemoji.

Install

# npm
npm install remark-plugin-twemoji
# yarn
yarn add remark-plugin-twemoji

Usage

This plugin accepts an option prop, valid options are listed here.

  1. Next.js Site
// next.config.js
const withMDX = require("@next/mdx")({
  options: {
    remarkPlugins: [require("remark-plugin-twemoji")],
  },
});
module.exports = withMDX();
  1. Gatsby Site
// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-mdx`,
      options: {
        remarkPlugins: [require(`remark-plugin-twemoji`)],
      },
    },
  ],
};

MIT