mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
markup in textog
This commit is contained in:
@@ -74,11 +74,11 @@ class TextLog(ScrollView, can_focus=True):
|
||||
else:
|
||||
if isinstance(content, str):
|
||||
if self.markup:
|
||||
content = Text.from_markup(content)
|
||||
if self.highlight:
|
||||
renderable = self.highlighter(content)
|
||||
renderable = Text.from_markup(content)
|
||||
else:
|
||||
renderable = Text(content)
|
||||
if self.highlight:
|
||||
renderable = self.highlighter(content)
|
||||
else:
|
||||
renderable = cast(RenderableType, content)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user