Fix closing links when converting tokens to DOM.

This commit is contained in:
Sergio Martínez Portela 2022-08-20 15:22:16 +02:00
parent 79fd20a472
commit 2b2af7004a

View File

@ -206,6 +206,7 @@ def text_to_dom(tokens, item):
"".join(link_description) if in_description else None,
rng,
))
in_link = False
elif isinstance(tok, str) and in_link:
if in_description:
link_description.append(tok)