04032024-1

This commit is contained in:
foozzi 2024-03-04 10:05:46 -05:00
parent 765e3391a1
commit 3fb4cbb91b

View file

@ -13,6 +13,8 @@ function M.InsertMarkdownURL()
local m = string.match(html, pattern)
if m then title = m end
if title ~= "" then
title = title:gsub("%[", "(")
title = title:gsub("%]", ")")
local markdownLink = "[" .. title .. "](" .. url .. ")"
vim.api.nvim_put({markdownLink}, "", true, true)
-- vim.api.nvim_command("call append(line('.'), '" .. markdownLink .. "')")