Skip to content

Add option to overwrite the default prefilter for links#245

Closed
leanbalma wants to merge 1 commit intojonschlinkert:masterfrom
SpiderOak:linkify-prefilter
Closed

Add option to overwrite the default prefilter for links#245
leanbalma wants to merge 1 commit intojonschlinkert:masterfrom
SpiderOak:linkify-prefilter

Conversation

@leanbalma
Copy link
Copy Markdown

@leanbalma leanbalma commented Dec 1, 2016

This PR intents to fix some issues a few users have been having. For example, #183 and #134. The current implementation also won't linkify some valid links, like just "github.com".

What I did is introduce a new linkifyPrefilter option, which lets the user to write their own prefilter, instead of the default prefilter. The user could also make the function to return true if he/she wants to disable the prefilter.

I haven't written any test yet, but I'll be placed to do it if you agree with this PR.

This PR fixes #183.

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.

Www.xyz.com is not considered a link

1 participant