Is it possible to have a custom render for non link text? #485
Unanswered
lgraziani2712
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm using linkify-html and I'm in need to parse hashtags, mentions and emojis (with twemoji). The thing is, I need twemoji to run on non link text and in the content of a link (but not the href attribute itself). If I parse emojis after running linkify-html, twemoji will parse the content inside href attributes too, breaking the links. If I run twemoji first, linkify wont deted hashtags with emojis correctly.
This is the solution I came with:
My question is: is it possible to avoid the
tokenize()
usage in favor of a custom render option for linkify-html?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions