Skip to content

Commit

Permalink
docs: fix variable name from url to img in usage example
Browse files Browse the repository at this point in the history
* fix: deal with lack of opts.attachment

* docs: add note for this change
  • Loading branch information
Bryant Paz committed Jan 9, 2025
1 parent 14e0427 commit 7487a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ This is a complete list of all of the options that can be passed to `require("ob
---@param img string
follow_img_func = function(img)
vim.fn.jobstart { "qlmanage", "-p", img } -- Mac OS quick look preview
-- vim.fn.jobstart({"xdg-open", url}) -- linux
-- vim.cmd(':silent exec "!start ' .. url .. '"') -- Windows
-- vim.fn.jobstart({"xdg-open", img}) -- linux
-- vim.cmd(':silent exec "!start ' .. img .. '"') -- Windows
end,

-- Optional, set to true if you use the Obsidian Advanced URI plugin.
Expand Down

0 comments on commit 7487a2e

Please sign in to comment.