Closed nofacer closed 3 months ago
Describe the bug If there's number after hyphen it will be colored even I've escaped it.
from rich.console import Console from rich.markup import escape Console().rule(f"[on black]{escape('A-2')}[/on black]") Console().rule(f"[on black]{escape('A2')}[/on black]") Console().rule(f"[on black]{escape('A-A')}[/on black]")
Platform Windows, rich==13.7.1
We found the following entry in the FAQ which you may find helpful:
Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.
This is an automated reply, generated by FAQtory
disable highlight solves this highlight=False
I hope we solved your problem.
If you like using Rich, you might also enjoy Textual
Describe the bug If there's number after hyphen it will be colored even I've escaped it.
Platform Windows, rich==13.7.1