Skip to content

Commit

Permalink
Allow for inline fenced code and code blocks
Browse files Browse the repository at this point in the history
See #2676

Co-authored-by: TomJGooding <[email protected]>
  • Loading branch information
davep and TomJGooding committed Jun 19, 2023
1 parent 7d732eb commit e2dd711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textual/widgets/_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ def update(self, markdown: str) -> None:

stack[-1].set_content(content)
elif token.type in ("fence", "code_block"):
output.append(
(stack[-1]._blocks if stack else output).append(
MarkdownFence(
self,
token.content.rstrip(),
Expand Down

0 comments on commit e2dd711

Please sign in to comment.