diff --git a/lua/zotcite/get.lua b/lua/zotcite/get.lua index 8bad364..3ba142d 100644 --- a/lua/zotcite/get.lua +++ b/lua/zotcite/get.lua @@ -16,7 +16,10 @@ local M = {} local TranslateZPath = function(strg) local fpath = strg - if config.open_in_zotero and string.lower(strg):find("%.pdf$") then + if + config.open_in_zotero + and (string.lower(strg):find("%.pdf$") or string.lower(strg):find("%.html$")) + then local id = fpath:gsub(":.*", "") return "zotero://open-pdf/library/items/" .. id end