1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 10:18:15 +09:00
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