mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
- Move lua filter to separate file - Use a subshell to write `nixvim-header.5` - Use bash function to avoid repetition
15 lines
217 B
Lua
15 lines
217 B
Lua
local text = pandoc.text
|
|
|
|
function Header(el)
|
|
if el.level == 1 then
|
|
return el:walk({
|
|
Str = function(el)
|
|
return pandoc.Str(text.upper(el.text))
|
|
end,
|
|
})
|
|
end
|
|
end
|
|
|
|
function Link(el)
|
|
return el.content
|
|
end
|