libcap/doc/md2html.lua
Andrew G. Morgan a83d142eca More experiments with markdown as a representation for the man pages.
I'm leaning towards pandoc instead of man-to-md. Mostly because it has
greater coverage in terms of supported formats.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-07-11 17:19:52 -07:00

7 lines
240 B
Lua

-- This is the links-to-html.lua example from stackoverflow:
-- https://stackoverflow.com/questions/40993488/convert-markdown-links-to-html-with-pandoc
function Link(el)
el.target = string.gsub(el.target, "%.md", ".html")
return el
end