Skip to content

Commit 2f502c2

Browse files
authored
Merge pull request #2852 from Textualize/fix-console-markup-live
fix markup in console live
2 parents c5f0890 + 6796675 commit 2f502c2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
- Fixed duplicate output in Jupyter https://github.com/Textualize/rich/pulls/2804
1919
- Filter ANSI character-encoding-change codes in `Text.from_ansi` parser
2020
- Fixes traceback failing when a frame filename is unreadable https://github.com/Textualize/rich/issues/2821
21+
- Fix for live update rendering console markup https://github.com/Textualize/rich/issues/2726
2122

2223
### Added
2324

rich/live.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ def update(self, renderable: RenderableType, *, refresh: bool = False) -> None:
210210
renderable (RenderableType): New renderable to use.
211211
refresh (bool, optional): Refresh the display. Defaults to False.
212212
"""
213+
if isinstance(renderable, str):
214+
renderable = self.console.render_str(renderable)
213215
with self._lock:
214216
self._renderable = renderable
215217
if refresh:

0 commit comments

Comments
 (0)