Skip to content

Commit

Permalink
revert md widget old click
Browse files Browse the repository at this point in the history
The MarkdownViewer no longer crahses on external link, but behvaiour with opens remains
  • Loading branch information
lowekoz committed Dec 4, 2024
1 parent 801b89c commit f495a6e
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 @@ -800,7 +800,7 @@ async def _on_mount(self, _: Mount) -> None:
await self.update(self._markdown)

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

def _watch_code_dark_theme(self) -> None:
Expand Down

0 comments on commit f495a6e

Please sign in to comment.