markup in textog

This commit is contained in:
Will McGugan
2022-12-09 09:14:38 +00:00
parent c708e8a3df
commit e063cafcfb

View File

@@ -74,11 +74,11 @@ class TextLog(ScrollView, can_focus=True):
else: else:
if isinstance(content, str): if isinstance(content, str):
if self.markup: if self.markup:
content = Text.from_markup(content) renderable = Text.from_markup(content)
if self.highlight:
renderable = self.highlighter(content)
else: else:
renderable = Text(content) renderable = Text(content)
if self.highlight:
renderable = self.highlighter(content)
else: else:
renderable = cast(RenderableType, content) renderable = cast(RenderableType, content)