Skip to content

Commit 55742b8

Browse files
committed
fix(markdown): disable auto links when converting to markdown
This fixes issues which causes extra < and > wrapped around hyperlink with contents matches its href.
1 parent 7480e42 commit 55742b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/utils/markdown.py

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def generate(html, **options):
6060

6161
result = TelegramMarkdownConverter(
6262
**options,
63+
autolinks=False,
6364
convert=['br', 'p', 'img', 'code', 'pre', 'ul', 'ol', 'li', 'a', 'sup', 'sub'],
6465
bullets='•••'
6566
).convert(html).strip()

0 commit comments

Comments
 (0)