secluded/pandoc_config/images.lua

7 lines
123 B
Lua

function Image (img)
if img.src:sub(1,1) == '/' then
img.src = os.getenv 'WEBROOT' .. img.src
end
return img
end