Merge pull request #1794 from Textualize/fix-markdown-link

Fix markdown links breaking
This commit is contained in:
Will McGugan
2023-02-15 09:36:05 +00:00
committed by GitHub

View File

@@ -501,7 +501,7 @@ class Markdown(Widget):
markdown = path.read_text(encoding="utf-8")
except Exception:
return False
await self.query("Block").remove()
await self.query("MarkdownBlock").remove()
await self.update(markdown)
return True