Skip to content

Commit 681918a

Browse files
committed
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.
1 parent bdb6cdd commit 681918a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/exts/info/doc/_markdown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def convert_li(self, el: PageElement, text: str, parent_tags: set[str]) -> str:
3030
bullet = bullets[depth % len(bullets)]
3131
return f"{bullet} {text}\n"
3232

33-
def _convert_hn(self, _n: int, el: PageElement, text: str, parent_tags: set[str]) -> str:
33+
def convert_hN(self, _n: int, el: PageElement, text: str, parent_tags: set[str]) -> str: # noqa: N802
3434
"""Convert h tags to bold text with ** instead of adding #."""
3535
if "_inline" in parent_tags:
3636
return text

0 commit comments

Comments
 (0)