From 7beec0be057e67ca3ec43e9b964d398207966450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Thu, 29 Sep 2022 23:24:20 +0200 Subject: [PATCH] Fix link building on text_to_dom. --- org_rw/org_rw.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org_rw/org_rw.py b/org_rw/org_rw.py index b806538..633fb2b 100644 --- a/org_rw/org_rw.py +++ b/org_rw/org_rw.py @@ -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)