Skip to content
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

Customization that varies per use #58

Open
gavrichards opened this issue Feb 19, 2018 · 1 comment
Open

Customization that varies per use #58

gavrichards opened this issue Feb 19, 2018 · 1 comment

Comments

@gavrichards
Copy link

I know that you can customize the global linkify instance, and that's great, but I'd like to be able to apply some customizations in some cases and different ones in others.

As an example, I'd like to convert @mentions and #hashtags for Twitter where I'm dealing with tweet text, but then also be able to do the same for Instagram, in the same app.

At the moment I can't see how this would be possible. If you could pass configuration into each instance that would achieve this, that would be great.

@tasti
Copy link
Owner

tasti commented Feb 20, 2018

I'm working on adding just that! Take a look at https://github.com/tasti/react-linkify/blob/master/src/components/Linkify.jsx#L12-L15 for a sneak peek.

I'll be working finalizing and documenting the API. Feel free to pass along any suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants