Skip to content

Commit f495a6e

Browse files
committed
revert md widget old click
The MarkdownViewer no longer crahses on external link, but behvaiour with opens remains
1 parent 801b89c commit f495a6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/textual/widgets/_markdown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ async def _on_mount(self, _: Mount) -> None:
800800
await self.update(self._markdown)
801801

802802
def on_markdown_link_clicked(self, event: LinkClicked) -> None:
803-
if self.is_external_link(event.href) and self._open_links:
803+
if self._open_links:
804804
self.app.open_url(event.href)
805805

806806
def _watch_code_dark_theme(self) -> None:

0 commit comments

Comments
 (0)