aboutsummaryrefslogtreecommitdiff
path: root/test/lua/uppercase-header.lua
blob: 8e86911c0147cb7bd02b7c4f5ad1f591e4ca2068 (plain)
1
2
3
4
5
6
7
8
9
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