pandoc/man/manfilter.lua
John MacFarlane 6b75d6e08c Use lua filter to generate man page from MANUAL.
Instead of three Haskell filters.

This is easier and faster.
2017-11-11 15:26:24 -08:00

19 lines
346 B
Lua

-- filters to create the pandoc man page from MANUAL.txt
-- capitalize headers
function Header(el)
if el.level == 1 then
return pandoc.walk_block(el, {
Str = function(el)
return pandoc.Str(el.text:upper())
end })
end
end
function Link(el)
return el.content
end
function Note(el)
return {}
end