aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2023-08-06 04:25:58 +0200
committerGravatar GitHub <[email protected]>2023-08-06 02:25:58 +0000
commit2bc7d0848a00c13ef6bbd22f9854b1afc68bead8 (patch)
treee4530c1aa0da392c246f02b8908b0ed755472f1c
parentChange DM users get when warned (#2696) (diff)
Fix docs link markdown (#2708)
-rw-r--r--bot/exts/info/doc/_markdown.py2
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: