diff --git a/src/textual/widgets/_markdown.py b/src/textual/widgets/_markdown.py index 7726cd08c4..be460cfcec 100644 --- a/src/textual/widgets/_markdown.py +++ b/src/textual/widgets/_markdown.py @@ -790,7 +790,7 @@ def update(self, markdown: str) -> None: style_stack.pop() stack[-1].set_content(content) - elif token.type == "fence": + elif token.type in ("fence", "code_block"): output.append( MarkdownFence( self,