-
Notifications
You must be signed in to change notification settings - Fork 81
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
Only colorize valid mentions #52
Comments
I've settled with a hack that calls (This works for me because in my case only one mention can be used at a time, see #51) |
I've seen issues with similar request. While it is absolutely possible to limit the mention colorization, I can't find a solution that we universally can agree is the best one to achieve it. For example, an extremely easy solution is to keep a list of Another solution is to provide Until we can agree for the best solution, this library keeps it as simple as colorizing all mentions. I would hope that there is some kind of error handling if the mentions interacted by users are indeed non-existent. |
In the mean time, please-please-please, make an option |
Really, I also need to set the color of mention only when it comes in start of word. No need of color while typing email id or any else word, which contains @ in between. Please fix this issue. |
@hendraanggrian |
Some mentions can be invalid. For example, Telegram only highlights mentions that are in fact valid and existing users.
A simple solution for that would be to have an option to disable auto-coloring, so that I can check for mention validity in a text-watcher and only call
colorize()
if that mention is in fact validThe text was updated successfully, but these errors were encountered: