From 2b2af7004a7e290b151e15bba3d9f1fc0545c819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Sat, 20 Aug 2022 15:22:16 +0200 Subject: [PATCH] Fix closing links when converting tokens to DOM. --- org_rw/org_rw.py | 1 + 1 file changed, 1 insertion(+) diff --git a/org_rw/org_rw.py b/org_rw/org_rw.py index 8ee4ddb..6bb96c3 100644 --- a/org_rw/org_rw.py +++ b/org_rw/org_rw.py @@ -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)