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

handle asia language not right #34

Closed
feifeiiiiiiiiiii opened this issue Feb 20, 2017 · 1 comment
Closed

handle asia language not right #34

feifeiiiiiiiiiii opened this issue Feb 20, 2017 · 1 comment

Comments

@feifeiiiiiiiiiii
Copy link

I found handle asia language not right, eg:

链接http://t.cn/RcPQ214

I check source and found use module linkify-it to handle text, I use linkify-it's demo and found not right parse

@tasti tasti mentioned this issue Jan 6, 2018
16 tasks
@tasti
Copy link
Owner

tasti commented Jan 7, 2018

@feifeiiiiiiiiiii - Can you see if this can be resolved through linkify-it?

Additionally, you'll have the flexibility to support this on your own in v1.0.0. For example:

const matchDecorator = (text) => {
  // Implement your matching logic here to support 链接http://t.cn/RcPQ214
};

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

matchDecorator lets you override the default linkify-it logic to match URLs however you'd like.

Any feedback is appreciated.

@tasti tasti closed this as completed 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

No branches or pull requests

2 participants