Files
pandoc/pandoc-lua-engine/test/lua/uppercase-header.lua
Albert Krewinkel 5be9052f5f [API Change] Extract Lua code into new package pandoc-lua-engine
The flag 'lua53` must now be used with that package if pandoc is to be
compiled against Lua 5.3.
2022-09-30 08:33:40 -07:00

10 lines
192 B
Lua

local text = require 'text'
local function str_to_uppercase (s)
return pandoc.Str(text.upper(s.text))
end
function Header (el)
return pandoc.walk_block(el, {Str = str_to_uppercase})
end