mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
fix markdown links to pasted imgs
This commit is contained in:
@@ -117,7 +117,7 @@ local imgFromClipboard = function()
|
|||||||
os.execute("xclip -selection clipboard -t image/png -o > " .. pngpath)
|
os.execute("xclip -selection clipboard -t image/png -o > " .. pngpath)
|
||||||
if file_exists(pngpath) then
|
if file_exists(pngpath) then
|
||||||
if ZkCfg.image_link_style == "markdown" then
|
if ZkCfg.image_link_style == "markdown" then
|
||||||
vim.api.nvim_put({ "
|
vim.api.nvim_put({ "" }, "", false, true)
|
||||||
else
|
else
|
||||||
vim.api.nvim_put({ "![[" .. pngname .. "]]" }, "", false, true)
|
vim.api.nvim_put({ "![[" .. pngname .. "]]" }, "", false, true)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user