Fix link building on text_to_dom.

This commit is contained in:
Sergio Martínez Portela 2022-09-29 23:24:20 +02:00
parent 3dc6213abb
commit 7beec0be05

View File

@ -210,6 +210,9 @@ def text_to_dom(tokens, item):
rng,
))
in_link = False
in_description = False
link_value = []
link_description = []
elif isinstance(tok, str) and in_link:
if in_description:
link_description.append(tok)