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

Added support for href decorators #21

Closed
wants to merge 1 commit into from

Conversation

marek-nogiec
Copy link

Hi, I needed the possibility to decorate the href in resulting links so I added it in a very simple way (hrefDecorator function passed as prop). Don't know how many people will need this but might be useful for things like link forwarding, changing domains etc.
I'm using it to pass user-generated links through a simple forwarding service which validates them and takes care of window.opener exploit.

@tasti
Copy link
Owner

tasti commented Jan 7, 2018

Support for href decorators will be available in v1.0.0. For example:

const hrefDecorator = (href) => ...;

<Linkify hrefDecorator={hrefDecorator}>
  ...
</Linkify>

Any feedback is appreciated.

@tasti tasti closed this Jan 7, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants