diff options
| author | 2025-10-30 22:06:23 +0000 | |
|---|---|---|
| committer | 2025-11-10 18:41:30 +0000 | |
| commit | 9dfe65833ef6471353e8cd0c60ad531ab9064f74 (patch) | |
| tree | edb68b51e7afeced7da6adf94ac3c9725e0296ba | |
| parent | Downgrade pytest-subtests 0.14.1 to resolve DumpError (diff) | |
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.
| -rw-r--r-- | bot/exts/info/doc/_markdown.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |