Skip to content

Commit 63d7cc5

Browse files
authored
Merge pull request #8 from hambergerpls/fix/sha256-blob-error
2 parents 9874f13 + 18aefde commit 63d7cc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/md-render/image.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ end
407407
---@return string
408408
local function mermaid_cache_path(source)
409409
local theme, bg_hex = mermaid_theme_args()
410-
local hash = vim.fn.sha256(source .. "\0" .. theme .. "\0" .. bg_hex):sub(1, 16)
410+
local hash = vim.fn.sha256(source .. "|" .. theme .. "|" .. bg_hex):sub(1, 16)
411411
return get_mermaid_cache_dir() .. "/" .. hash .. ".png"
412412
end
413413

0 commit comments

Comments
 (0)