her.esy.fun/engine/links-to-html.lua
Yann Esposito (Yogsototh) f841b92802
BRUT post + lua links fix
2024-07-25 23:58:42 +02:00

8 lines
284 B
Lua

-- links-to-html.lua
function Link(el)
-- this if is necessary to not match .org domains, but only .org files.
if (not (string.match(el.target, "https?://"))) then
el.target = string.gsub(string.gsub(el.target, "%.org", ".html"), "%.html::", ".html#" )
end
return el
end