diff --git a/rich/markdown.py b/rich/markdown.py index cd1ca2a7..ec10b702 100644 --- a/rich/markdown.py +++ b/rich/markdown.py @@ -53,7 +53,7 @@ class TextElement(MarkdownElement): def on_enter(self, context: MarkdownContext) -> None: self.style = context.enter_style(self.style_name) - self.text = Text(style=context.current_style) + self.text = Text(style=context.current_style, justify="left") def on_text(self, context: MarkdownContext, text: str) -> None: self.text.append(text, context.current_style) diff --git a/rich/style.py b/rich/style.py index 46f05c15..96002e08 100644 --- a/rich/style.py +++ b/rich/style.py @@ -118,9 +118,12 @@ class Style: return f'