A bit of JS that replaces colon :emoji: in HTML with images
This is a front-end library that replaces text inside colons with a
span element of a particular CSS class that will fetch its corresponding emoji.
The emoji scales to the size of the font, so emoji specified in
<h1> tags will be larger than those in
Use in your project
npm install gemojify
Or just download the repository from GitHub.
Copy the contents of the
js directories into your project.
Inside your HTML, include a reference to
js/gemojify.js, and insert an element with the class
We :heart: emoji!:thumbsup: This paragraph will be processed :tada:This paragraph won't :cry: