Replies: 1 comment
-
Hi @pigwa88, most Linkify options support a function value that accepts the link, link type and link token as arguments and returns the desired option value. For const options = {
rel: (val, type, token) => {
if (val.includes('github.com') {
return 'follow';
} else {
return 'nofollow';
}
}
}; See the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I cant understand how I can format few links in individual way... for example github.com with rel:follow (not working).
How I can building something like a IF: "if(url=mywebiste.com){rel: follow,}" in const options?? is it possible?
(I will add that all formatting data will come from class=post)
Beta Was this translation helpful? Give feedback.
All reactions