File: smallcaps-title.lua

package info (click to toggle)
pandoc 2.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 17,456 kB
  • sloc: haskell: 55,993; xml: 3,297; makefile: 112; sh: 7
file content (12 lines) | stat: -rw-r--r-- 397 bytes parent folder | download | duplicates (4)
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
  }
}