Comments (13)
Thanks for the kind words!
I'm actually working on v2 of the library right this moment. I can quickly look into this.
from interweave.
from interweave.
Done! Thanks for the awesome idea.
from interweave.
Oh. Thanks. Those callbacks will definitely be useful. Are you working on this as a part of some project?
from interweave.
@anri-asaturov We use this a bit at my work, but besides that, mainly for fun. Wanted to learn more about emojis.
from interweave.
Quick question, if you don't mind - how do u publish npm package so /lib
becomes a root?
from interweave.
Just append the folder to the publish command: npm publish ./lib/
. Which I seem to forgot to do a lot, like I did with the 2.0.0 release. Had to bump a 2.0.1.
I'm also working on a new release/deploy tool that builds and stages everything to lib/, then deploys it as root.
from interweave.
Thanks. Btw, emoji enlargement doesn't work if convertEmoji=false, I'll try to fix that soon.
from interweave.
It'll only work if the Emoji
component is rendered. Unicode emojis will be rendered as is.
from interweave.
We could wrap them in a span
if they have to be enlarged. Or apply the enlargement class to parent node?
from interweave.
That may work. We would just need a way to cleanly verify that a span + unicode symbol is an emoji React element.
from interweave.
What if we just modify the same Emoji component to render unicode if that's the setting?
from interweave.
Yeah most likely. We can move this logic to a prop on the Emoji
component.
https://github.com/milesj/interweave/blob/master/src/matchers/Emoji.js#L29
<Emoji {...props} renderUnicode={this.options.renderUnicode} />
from interweave.
Related Issues (20)
- Is there any way to match html based on an elements class attribute? HOT 2
- Youtube embed video with the iframe is not loading the video on the browser. HOT 4
- Interweave: Missing emoji source data. HOT 19
- Transform Docs Update Suggestions
- Cannot resolve interweave HOT 1
- import error HOT 1
- Certain HTML attributes such as tabindex is not supported HOT 2
- Version 13.1.0 is missing from the CHANGELOG.md
- React JSX Support HOT 2
- SSR Hydration issue when email (text) is present in html content
- SSR Hydration issue when email (text) is present in html content
- Html content are wrapping with span element as parent element HOT 4
- ID attribute is not working HOT 7
- colons in hash part break links HOT 1
- why interweave transform attributes to lowercase? HOT 5
- Add Tailwind classes in my html content HOT 1
- React error when transforming HOT 2
- 'Interweave' cannot be used as a JSX component. HOT 1
- Broken emoji PNG-s in emoji-picker
- Performance significantly drops for nested HTML HOT 2
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 interweave.