git.iko.soy/typeable/pandoc
on rc/2.8.1 help sign in
typeable/pandoc/test/lua/smallcaps-title.lua
12 lines 397 B history raw
1return {
2 {
3 Meta = function(meta)
4 -- The call to `MetaInlines` is redundant and used for testing purposes
5 -- only. The explicit use of a MetaValue constructor is only useful when
6 -- used with an empty table: `MetaInlines{}` is read differently than
7 -- `MetaBlocks{}`.
8 meta.title = pandoc.MetaInlines{pandoc.SmallCaps(meta.title)}
9 return meta
10 end
11 }