feat(image.doc): allow setting image.src with #set!. Closes #1276

This commit is contained in:
Folke Lemaitre 2025-02-19 15:17:32 +01:00
parent eaa458b32f
commit 65f89e2d6f
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -154,6 +154,7 @@ function M.find(buf, from, to)
---@type snacks.image.match
local img = {
ext = meta["image.ext"],
src = meta["image.src"],
id = ctx.pos.node:id(),
range = { range[1] + 1, range[2], range[4] + 1, range[5] },
pos = {