mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-10 11:27:06 +00:00
5be9052f5f
The flag 'lua53` must now be used with that package if pandoc is to be compiled against Lua 5.3.
10 lines
192 B
Lua
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
|