Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

gatsby-remark-emojis

0.3.1 • Public • Published

gatsby-remark-emojis

Processes emoji in markdown and inlines <img> tags with the corresponding base64 corresponding of the image.

See all available emoji

Install

npm install --save gatsby-remark-emojis

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-transformer-remark`,
    options: {
      // In your gatsby-transformer-remark plugin array
      plugins: [{
        resolve: 'gatsby-remark-emojis',
        options: {
          // Deactivate the plugin globally (default: true)
          active : true,
          // Add a custom css class
          class  : 'emoji-icon',
          // Select the size (available size: 16, 24, 32, 64)
          size   : 64,
          // Add custom styles
          styles : {
            display      : 'inline',
            margin       : '0',
            'margin-top' : '1px',
            position     : 'relative',
            top          : '5px',
            width        : '25px'
          }
        }
      }]
    }
  }
]

License

This distribution is covered by the GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007.

Support & Contact

Having trouble with this repository? Check out the documentation at the repository's site or contact m@matchilling.com and we’ll help you sort it out.

Happy Coding

✌️

install

npm i gatsby-remark-emojis

Downloadsweekly downloads

1,587

version

0.3.1

license

GPL-3.0

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability