diff options
author | 2023-08-06 04:25:58 +0200 | |
---|---|---|
committer | 2023-08-06 02:25:58 +0000 | |
commit | 2bc7d0848a00c13ef6bbd22f9854b1afc68bead8 (patch) | |
tree | e4530c1aa0da392c246f02b8908b0ed755472f1c | |
parent | Change DM users get when warned (#2696) (diff) |
Fix docs link markdown (#2708)
-rw-r--r-- | bot/exts/info/doc/_markdown.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/exts/info/doc/_markdown.py b/bot/exts/info/doc/_markdown.py index 315adda66..f3d769070 100644 --- a/bot/exts/info/doc/_markdown.py +++ b/bot/exts/info/doc/_markdown.py @@ -49,6 +49,8 @@ class DocMarkdownConverter(markdownify.MarkdownConverter): def convert_a(self, el: PageElement, text: str, convert_as_inline: bool) -> str: """Resolve relative URLs to `self.page_url`.""" el["href"] = urljoin(self.page_url, el["href"]) + # Discord doesn't handle titles properly, showing links with them as raw text. + el["title"] = None return super().convert_a(el, text, convert_as_inline) def convert_p(self, el: PageElement, text: str, convert_as_inline: bool) -> str: |