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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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