6b75d6e08c
Instead of three Haskell filters. This is easier and faster.
19 lines
346 B
Lua
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
|