From 9dfe65833ef6471353e8cd0c60ad531ab9064f74 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Thu, 30 Oct 2025 22:06:23 +0000 Subject: Update markdown parser for new heading parsing python-markdownify 1.2.0 changed the _convert_hN method on MarkdownConverters public (and renamed to convert_hN). Functionality remains the same, just needs a rename of the method. --- bot/exts/info/doc/_markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/info/doc/_markdown.py b/bot/exts/info/doc/_markdown.py index 52e00c2f3..fb0efe91d 100644 --- a/bot/exts/info/doc/_markdown.py +++ b/bot/exts/info/doc/_markdown.py @@ -30,7 +30,7 @@ class DocMarkdownConverter(markdownify.MarkdownConverter): bullet = bullets[depth % len(bullets)] return f"{bullet} {text}\n" - def _convert_hn(self, _n: int, el: PageElement, text: str, parent_tags: set[str]) -> str: + def convert_hN(self, _n: int, el: PageElement, text: str, parent_tags: set[str]) -> str: # noqa: N802 """Convert h tags to bold text with ** instead of adding #.""" if "_inline" in parent_tags: return text -- cgit v1.2.3