-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure to add <span> around emoji? #44
Comments
Maybe we could add a way to customize the emojify function, by passing another function that transforms the emoji further, like this: emoji.emojify('I :heart: :coffee:!', (emojiCode, emojiName) => '<span>' + emojiCode + '</span>') That way we could even implement more complicated behaviour, like loading emoji as images: emoji.emojify('I :heart: :coffee:!', (emojiCode, emojiName) => '<img src="' + emojiName + '.png">') It would be great if you could send a PR for this feature 😁 |
I've taken the honer to implement this in #48 |
Update: I'm using the feature in my blog now. Thanks! 👍 |
@scripting glad to know it works fine 😁 thanks again for the PR, @smeijer ! |
Thanks for doing node-emoji! I use it in the software that generates my blog, http://scripting.com/.
I was wondering if there is a way to configure node-emoji to add a span around each character you generate so I could control the display with CSS.
I specifically want to bump the font-size on the emoji.
You can see why in the first item on today's blog.
http://scripting.com/2017/06/27.html
The cow is too small, but the text is just the right size. I'd set the size of the emoji to 1.1em to make it small bit bigger.
Again thanks for node-emoji! 😺
The text was updated successfully, but these errors were encountered: