Remark plugin to replace your emoji with twemoji.
# npm
npm install remark-plugin-twemoji
# yarn
yarn add remark-plugin-twemoji
This plugin accepts an option
prop, valid options are listed here.
- Next.js Site
// next.config.js
const withMDX = require("@next/mdx")({
options: {
remarkPlugins: [require("remark-plugin-twemoji")],
},
});
module.exports = withMDX();
- Gatsby Site
// gatsby-config.js
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-mdx`,
options: {
remarkPlugins: [require(`remark-plugin-twemoji`)],
},
},
],
};