ladybird/Meta/convert-markdown-links.lua
Ben Wiederhake 2e613db999 man.serenityos.org: Fix links to man(1), avoid unnecessary shells
This fixes the current bug at the end of less(1), which links to the
wrong file ".html" instead of "man.html".
2021-10-22 19:49:28 +03:00

4 lines
121 B
Lua

function Link(el)
el.target = string.gsub(el.target, "%.md", ".html") -- change .md to .html links
return el
end