secluded/pandoc_config/images.lua

7 lines
123 B
Lua
Raw Normal View History

2021-11-10 08:13:40 +00:00
function Image (img)
if img.src:sub(1,1) == '/' then
img.src = os.getenv 'WEBROOT' .. img.src
end
return img
end