Closed awgymer closed 3 months ago
You can set word_wrap=True
on the Syntax class.
This does not fix the issue:
EDIT: Turns out you need to then disable soft_wrap
on the print
call!
That interplay is a little bit unexpected to me but hey ho
I hope we solved your problem.
If you like using Rich, you might also enjoy Textual
Describe the bug
I am trying to print some formatted/highlighted
markdown
to console with aSyntax
object but it always crops the end of long lines, regardless of my settings.Platform
Click to expand
Mac OS 13.5 Using terminal app with `zsh` Python 3.11 rich 13.6