From 5a730d7a0a2e003c75389c80ec52a562bb2271f6 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Tue, 14 Feb 2023 16:48:25 +0000 Subject: [PATCH] typo and docstring --- examples/example.md | 2 +- src/textual/widgets/_markdown.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/example.md b/examples/example.md index fd1400cc2..83495ba2f 100644 --- a/examples/example.md +++ b/examples/example.md @@ -40,7 +40,7 @@ Two tildes indicates strikethrough, e.g. `~~cross out~~` render ~~cross out~~. ### Inline code ### -Inline cod is indicated by backticks. e.g. `import this`. +Inline code is indicated by backticks. e.g. `import this`. ## Fences diff --git a/src/textual/widgets/_markdown.py b/src/textual/widgets/_markdown.py index 82c798430..b685f0649 100644 --- a/src/textual/widgets/_markdown.py +++ b/src/textual/widgets/_markdown.py @@ -99,6 +99,7 @@ class Block(Static): self.update(text) async def action_link(self, href: str) -> None: + """Called on link click.""" await self.post_message(Markdown.LinkClicked(href, sender=self))