aboutsummaryrefslogtreecommitdiff
path: root/test/lua/smallcaps-title.lua
blob: b839ee1313d8a99c1da15f355ef8ffdd7901a447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
return {
  {
    Meta = function(meta)
      -- The call to `MetaInlines` is redundant and used for testing purposes
      -- only. The explicit use of a MetaValue constructor is only useful when
      -- used with an empty table: `MetaInlines{}` is read differently than
      -- `MetaBlocks{}`.
      meta.title = pandoc.MetaInlines{pandoc.SmallCaps(meta.title)}
      return meta
    end
  }
}