fix markdown links to pasted imgs

This commit is contained in:
Rene Schallner
2021-11-26 05:42:26 +01:00
parent 777f4197fc
commit abb5f01b5c

View File

@@ -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