diff options
| -rw-r--r-- | bot/cogs/doc/parsing.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/cogs/doc/parsing.py b/bot/cogs/doc/parsing.py index 050c49447..ac8a94e3f 100644 --- a/bot/cogs/doc/parsing.py +++ b/bot/cogs/doc/parsing.py @@ -65,6 +65,10 @@ class _DocMarkdownConverter(MarkdownConverter): bullet = bullets[depth % len(bullets)] return '%s %s\n' % (bullet, text or '') + def convert_hn(self, _n: int, el: PageElement, text: str) -> str: + """Convert h tags to bold text with ** instead of adding #.""" + return f"**{text}**\n\n" + def convert_code(self, el: PageElement, text: str) -> str: """Undo `markdownify`s underscore escaping.""" return f"`{text}`".replace('\\', '') |