Fix closing links when converting tokens to DOM.
This commit is contained in:
parent
79fd20a472
commit
2b2af7004a
1 changed files with 1 additions and 0 deletions
|
@ -206,6 +206,7 @@ def text_to_dom(tokens, item):
|
||||||
"".join(link_description) if in_description else None,
|
"".join(link_description) if in_description else None,
|
||||||
rng,
|
rng,
|
||||||
))
|
))
|
||||||
|
in_link = False
|
||||||
elif isinstance(tok, str) and in_link:
|
elif isinstance(tok, str) and in_link:
|
||||||
if in_description:
|
if in_description:
|
||||||
link_description.append(tok)
|
link_description.append(tok)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue