Skip to content

Commit ee43879

Browse files
committed
fix(console): fix selective enabling of highlighting
1 parent a060eed commit ee43879

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- Progress track thread is now a daemon thread https://github.com/Textualize/rich/pull/3402
1818
- Fixed cached hash preservation upon clearing meta and links https://github.com/Textualize/rich/issues/2942
1919
- Fixed overriding the `background_color` of `Syntax` not including padding https://github.com/Textualize/rich/issues/3295
20+
- Fixed selective enabling of highlighting when disabled in the `Console` https://github.com/Textualize/rich/issues/3419
2021

2122
### Changed
2223

rich/console.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,11 @@ def check_text() -> None:
15351535
if isinstance(renderable, str):
15361536
append_text(
15371537
self.render_str(
1538-
renderable, emoji=emoji, markup=markup, highlighter=_highlighter
1538+
renderable,
1539+
emoji=emoji,
1540+
markup=markup,
1541+
highlight=highlight,
1542+
highlighter=_highlighter,
15391543
)
15401544
)
15411545
elif isinstance(renderable, Text):

0 commit comments

Comments
 (0)