We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9874f13 + 18aefde commit 63d7cc5Copy full SHA for 63d7cc5
1 file changed
lua/md-render/image.lua
@@ -407,7 +407,7 @@ end
407
---@return string
408
local function mermaid_cache_path(source)
409
local theme, bg_hex = mermaid_theme_args()
410
- local hash = vim.fn.sha256(source .. "\0" .. theme .. "\0" .. bg_hex):sub(1, 16)
+ local hash = vim.fn.sha256(source .. "|" .. theme .. "|" .. bg_hex):sub(1, 16)
411
return get_mermaid_cache_dir() .. "/" .. hash .. ".png"
412
end
413
0 commit comments