Describe the bug
Hyperlinks are split into multiple links when text is highlighted. When a hyperlink whose text contains tokens the ReprHighlighter recognises (UUID, path, filename), it currently renders it as multiple clickable links, instead of just one.
Expected:
Video: https://github.com/user-attachments/assets/f9ac242b-e16d-446b-b736-67ee1977164c
Current behavior:
Video: https://github.com/user-attachments/assets/d75aa3b3-145c-479f-bf8d-21f93bb859d2
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? What terminal software are you using?
Mac iTerm2
I may ask you to copy and paste the output of the following commands. It may save some time if you do it now.
If you're using Rich in a terminal:
python -m rich.diagnose
pip freeze | grep rich
If you're using Rich in a Jupyter Notebook, run the following snippet in a cell
and paste the output in your bug report.
from rich.diagnose import report
report()
Describe the bug
Hyperlinks are split into multiple links when text is highlighted. When a hyperlink whose text contains tokens the ReprHighlighter recognises (UUID, path, filename), it currently renders it as multiple clickable links, instead of just one.
Expected:
Video: https://github.com/user-attachments/assets/f9ac242b-e16d-446b-b736-67ee1977164c
Current behavior:
Video: https://github.com/user-attachments/assets/d75aa3b3-145c-479f-bf8d-21f93bb859d2
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? What terminal software are you using?
Mac iTerm2
I may ask you to copy and paste the output of the following commands. It may save some time if you do it now.
If you're using Rich in a terminal:
If you're using Rich in a Jupyter Notebook, run the following snippet in a cell
and paste the output in your bug report.