From 660c94fc9af91b2784174cd3a09799d08cdeca82 Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Sun, 13 Aug 2023 18:20:48 +0100 Subject: [PATCH] Correct logic for link description --- src/export/html.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/export/html.rs b/src/export/html.rs index de627d5..82df9f0 100644 --- a/src/export/html.rs +++ b/src/export/html.rs @@ -126,7 +126,7 @@ impl HtmlHandler for DefaultHtmlHandler { let link_extension = &link.path.split(".").last().unwrap(); // Orgmode considers something an image both if the pattern // matches /and/ the description is empty. - if image_pattern.contains(link_extension) && link.desc.is_some() { + if image_pattern.contains(link_extension) && link.desc.is_none() { write!( w, "\"{}\"",