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:
|
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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user