From ddfacb7a76ad393b947b4a4c136214e36e468425 Mon Sep 17 00:00:00 2001 From: twio142 <64556708+twio142@users.noreply.github.com> Date: Mon, 2 Feb 2026 20:18:14 +0100 Subject: [PATCH] fix: image with a web link not showing image icon Make sure image links always have the image icon, regardless of the link type. --- lua/render-markdown/render/inline/link.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/render-markdown/render/inline/link.lua b/lua/render-markdown/render/inline/link.lua index c905707..7b72ffc 100644 --- a/lua/render-markdown/render/inline/link.lua +++ b/lua/render-markdown/render/inline/link.lua @@ -28,11 +28,11 @@ function Render:setup() icon[1] = self.config.email autolink = true elseif self.node.type == 'image' then - icon[1] = self.config.image local destination = self.node:child('link_destination') if destination then self.context.config:set_link_text(destination.text, icon) end + icon[1] = self.config.image title = self.node:child('link_title') elseif self.node.type == 'inline_link' then local destination = self.node:child('link_destination')