04032024-1
This commit is contained in:
parent
765e3391a1
commit
3fb4cbb91b
1 changed files with 2 additions and 0 deletions
|
@ -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 .. "')")
|
||||
|
|
Loading…
Add table
Reference in a new issue