Comments (4)
Update: I'm using the feature in my blog now. Thanks! 👍
http://scripting.com/2017/07/25.html#a101356
from node-emoji.
I've taken the honer to implement this in #48
from node-emoji.
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 😁
from node-emoji.
@scripting glad to know it works fine 😁 thanks again for the PR, @smeijer !
from node-emoji.
Related Issues (20)
- Bug: emojis from Emoji Version 14.0 are not unemojified HOT 1
- Provide esm version HOT 2
- Convert to TypeScript
- Bump emojilib to 3.X HOT 1
- Problem with node-fetch and ERR_REQUIRE_ESM HOT 2
- emojify() misses some emojis in V2 HOT 1
- CJS support dropped in v2 HOT 1
- Tooling: add in more granular labels HOT 1
- Tooling: Add in Issue and PR Templates
- Add in JSDoc comments from DefinitelyTyped pull request
- `tsup` should be a dev dependency, rather than a dependency
- Typescript fix not released HOT 1
- Emojis from v1 not exist on v2 HOT 1
- Add a .extend(...) option to expand upon the built-in dictionary HOT 2
- 🛠 Tooling: Two workflows use the wrong org
- 🐛 Bug: CJS build of v2.1.1 imports an ESM-only module HOT 1
- 🛠 Tooling: Add test that CJS require() works (not just ESM import) HOT 4
- 🐛 Bug: Build error inside nuxt2 (Babel + Webpack) HOT 6
- 🚀 Feature: Add .only HOT 4
- 🛠 Tooling: Feature template includes Bug Report checklist
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-emoji.