From abb5f01b5c6926264878151871301a37b487e226 Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Fri, 26 Nov 2021 05:42:26 +0100 Subject: [PATCH] fix markdown links to pasted imgs --- lua/telekasten.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/telekasten.lua b/lua/telekasten.lua index bf6ac39..c28c5c1 100644 --- a/lua/telekasten.lua +++ b/lua/telekasten.lua @@ -117,7 +117,7 @@ local imgFromClipboard = function() os.execute("xclip -selection clipboard -t image/png -o > " .. pngpath) if file_exists(pngpath) then if ZkCfg.image_link_style == "markdown" then - vim.api.nvim_put({ "![](" .. relpath .. "]" }, "", false, true) + vim.api.nvim_put({ "![](" .. relpath .. ")" }, "", false, true) else vim.api.nvim_put({ "![[" .. pngname .. "]]" }, "", false, true) end